mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-16 09:56:46 +00:00
pinctrl: k210: Make (p)clk local to k210_fpioa_probe()
There were never any users of k210_fpioa_data.clk and k210_fpioa_data.pclk outside k210_fpioa_probe(). Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Damien Le Moal <dlemoal@kernel.org> Link: https://lore.kernel.org/77f543046d4d5c19206f829ddcf8e093d3e3f6da.1725440917.git.geert+renesas@glider.be Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
4c9e8da4e7
commit
c919ca8617
@ -96,8 +96,6 @@ struct k210_fpioa_data {
|
|||||||
struct k210_fpioa __iomem *fpioa;
|
struct k210_fpioa __iomem *fpioa;
|
||||||
struct regmap *sysctl_map;
|
struct regmap *sysctl_map;
|
||||||
u32 power_offset;
|
u32 power_offset;
|
||||||
struct clk *clk;
|
|
||||||
struct clk *pclk;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#define K210_PIN_NAME(i) ("IO_" #i)
|
#define K210_PIN_NAME(i) ("IO_" #i)
|
||||||
@ -925,6 +923,7 @@ static int k210_fpioa_probe(struct platform_device *pdev)
|
|||||||
struct device *dev = &pdev->dev;
|
struct device *dev = &pdev->dev;
|
||||||
struct device_node *np = dev->of_node;
|
struct device_node *np = dev->of_node;
|
||||||
struct k210_fpioa_data *pdata;
|
struct k210_fpioa_data *pdata;
|
||||||
|
struct clk *clk, *pclk;
|
||||||
|
|
||||||
dev_info(dev, "K210 FPIOA pin controller\n");
|
dev_info(dev, "K210 FPIOA pin controller\n");
|
||||||
|
|
||||||
@ -939,13 +938,13 @@ static int k210_fpioa_probe(struct platform_device *pdev)
|
|||||||
if (IS_ERR(pdata->fpioa))
|
if (IS_ERR(pdata->fpioa))
|
||||||
return PTR_ERR(pdata->fpioa);
|
return PTR_ERR(pdata->fpioa);
|
||||||
|
|
||||||
pdata->clk = devm_clk_get_enabled(dev, "ref");
|
clk = devm_clk_get_enabled(dev, "ref");
|
||||||
if (IS_ERR(pdata->clk))
|
if (IS_ERR(clk))
|
||||||
return PTR_ERR(pdata->clk);
|
return PTR_ERR(clk);
|
||||||
|
|
||||||
pdata->pclk = devm_clk_get_optional_enabled(dev, "pclk");
|
pclk = devm_clk_get_optional_enabled(dev, "pclk");
|
||||||
if (IS_ERR(pdata->pclk))
|
if (IS_ERR(pclk))
|
||||||
return PTR_ERR(pdata->pclk);
|
return PTR_ERR(pclk);
|
||||||
|
|
||||||
pdata->sysctl_map =
|
pdata->sysctl_map =
|
||||||
syscon_regmap_lookup_by_phandle_args(np,
|
syscon_regmap_lookup_by_phandle_args(np,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user