mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-12-20 08:52:12 +01:00
gpio: renesas: Drop pfc_offset parsing
The PFC offset is no longer used directly in the driver since commit
fbf26bea3964 ("gpio: renesas: Migrate to pinctrl GPIO accessors")
Drop the pfc_offset parsing.
Fixes: fbf26bea3964 ("gpio: renesas: Migrate to pinctrl GPIO accessors")
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
This commit is contained in:
parent
3d50dba3a3
commit
0a6b4b1c36
@ -38,7 +38,6 @@ DECLARE_GLOBAL_DATA_PTR;
|
|||||||
struct rcar_gpio_priv {
|
struct rcar_gpio_priv {
|
||||||
void __iomem *regs;
|
void __iomem *regs;
|
||||||
u32 quirks;
|
u32 quirks;
|
||||||
int pfc_offset;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static int rcar_gpio_get_value(struct udevice *dev, unsigned offset)
|
static int rcar_gpio_get_value(struct udevice *dev, unsigned offset)
|
||||||
@ -154,7 +153,6 @@ static int rcar_gpio_probe(struct udevice *dev)
|
|||||||
|
|
||||||
ret = fdtdec_parse_phandle_with_args(gd->fdt_blob, node, "gpio-ranges",
|
ret = fdtdec_parse_phandle_with_args(gd->fdt_blob, node, "gpio-ranges",
|
||||||
NULL, 3, 0, &args);
|
NULL, 3, 0, &args);
|
||||||
priv->pfc_offset = ret == 0 ? args.args[1] : -1;
|
|
||||||
uc_priv->gpio_count = ret == 0 ? args.args[2] : RCAR_MAX_GPIO_PER_BANK;
|
uc_priv->gpio_count = ret == 0 ? args.args[2] : RCAR_MAX_GPIO_PER_BANK;
|
||||||
|
|
||||||
ret = clk_get_by_index(dev, 0, &clk);
|
ret = clk_get_by_index(dev, 0, &clk);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user