Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pinctrl: remove orphaned exported ".remove" function

The Kconfig currently controlling compilation of this code is:

drivers/pinctrl/freescale/Kconfig:config PINCTRL_MXS
drivers/pinctrl/freescale/Kconfig: bool

...meaning that it currently is not being built as a module by anyone.

It also doesn't have any modular functionality, so it doesn't need
module.h included at all.

What it does have is an exported function that was used as a shared
".remove" by other drivers, but those use cases (imx23 and imx28)
are now gone, and hence this can disappear as well.

Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: linux-gpio@vger.kernel.org
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Paul Gortmaker and committed by
Linus Walleij
11884b18 37824c12

-13
-12
drivers/pinctrl/freescale/pinctrl-mxs.c
··· 12 12 #include <linux/err.h> 13 13 #include <linux/init.h> 14 14 #include <linux/io.h> 15 - #include <linux/module.h> 16 15 #include <linux/of.h> 17 16 #include <linux/of_address.h> 18 17 #include <linux/pinctrl/machine.h> ··· 552 553 return ret; 553 554 } 554 555 EXPORT_SYMBOL_GPL(mxs_pinctrl_probe); 555 - 556 - int mxs_pinctrl_remove(struct platform_device *pdev) 557 - { 558 - struct mxs_pinctrl_data *d = platform_get_drvdata(pdev); 559 - 560 - pinctrl_unregister(d->pctl); 561 - iounmap(d->base); 562 - 563 - return 0; 564 - } 565 - EXPORT_SYMBOL_GPL(mxs_pinctrl_remove);
-1
drivers/pinctrl/freescale/pinctrl-mxs.h
··· 86 86 87 87 int mxs_pinctrl_probe(struct platform_device *pdev, 88 88 struct mxs_pinctrl_soc_data *soc); 89 - int mxs_pinctrl_remove(struct platform_device *pdev); 90 89 91 90 #endif /* __PINCTRL_MXS_H */