Skip to content

Commit 45e6cc8

Browse files
committed
pinctrl: renesas: core: Drop unneeded #ifdef CONFIG_OF
As the of_node member of struct device always exists, and there is a dummy of of_device_get_match_data() for the !CONFIG_OF case, there is no longer a need to protect code using these interfaces with an #ifdef. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Link: https://lore.kernel.org/r/55d72ce46b43ec2f41681cb5ba7ca7fcebdb98d1.1679416005.git.geert+renesas@glider.be
1 parent 890c3a6 commit 45e6cc8

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

drivers/pinctrl/renesas/core.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1304,11 +1304,9 @@ static int sh_pfc_probe(struct platform_device *pdev)
13041304
struct sh_pfc *pfc;
13051305
int ret;
13061306

1307-
#ifdef CONFIG_OF
13081307
if (pdev->dev.of_node)
13091308
info = of_device_get_match_data(&pdev->dev);
13101309
else
1311-
#endif
13121310
info = (const void *)platform_get_device_id(pdev)->driver_data;
13131311

13141312
pfc = devm_kzalloc(&pdev->dev, sizeof(*pfc), GFP_KERNEL);

0 commit comments

Comments
 (0)