Skip to content

Commit

Permalink
pinctrl: remove orphaned exported ".remove" function
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Gortmaker authored and Linus Walleij committed Jun 29, 2016
1 parent 37824c1 commit 11884b1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
12 changes: 0 additions & 12 deletions drivers/pinctrl/freescale/pinctrl-mxs.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include <linux/err.h>
#include <linux/init.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_address.h>
#include <linux/pinctrl/machine.h>
Expand Down Expand Up @@ -553,14 +552,3 @@ int mxs_pinctrl_probe(struct platform_device *pdev,
return ret;
}
EXPORT_SYMBOL_GPL(mxs_pinctrl_probe);

int mxs_pinctrl_remove(struct platform_device *pdev)
{
struct mxs_pinctrl_data *d = platform_get_drvdata(pdev);

pinctrl_unregister(d->pctl);
iounmap(d->base);

return 0;
}
EXPORT_SYMBOL_GPL(mxs_pinctrl_remove);
1 change: 0 additions & 1 deletion drivers/pinctrl/freescale/pinctrl-mxs.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,5 @@ struct mxs_pinctrl_soc_data {

int mxs_pinctrl_probe(struct platform_device *pdev,
struct mxs_pinctrl_soc_data *soc);
int mxs_pinctrl_remove(struct platform_device *pdev);

#endif /* __PINCTRL_MXS_H */

0 comments on commit 11884b1

Please sign in to comment.