mtd: gpmi-nand: don't use devm_pinctrl_get_select_default() in probe
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Mon Aug 5 16:59:06 EDT 2013
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=9f7f7d8c062331cf4218e0ef2fa573913bad337f
Commit: 9f7f7d8c062331cf4218e0ef2fa573913bad337f
Parent: 96f2a4a1a77a60a55cc15e13938bd3f2d0ee86bc
Author: Wolfram Sang <wsa at the-dreams.de>
AuthorDate: Wed Jul 10 16:57:41 2013 +0100
Committer: David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Mon Aug 5 21:01:20 2013 +0100
mtd: gpmi-nand: don't use devm_pinctrl_get_select_default() in probe
Since commit ab78029 (drivers/pinctrl: grab default handles from device core),
we can rely on device core for setting the default pins. Compile tested only.
Acked-by: Linus Walleij <linus.walleij at linaro.org> (personally at LCE13)
Signed-off-by: Wolfram Sang <wsa at the-dreams.de>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
drivers/mtd/nand/gpmi-nand/gpmi-nand.c | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/drivers/mtd/nand/gpmi-nand/gpmi-nand.c b/drivers/mtd/nand/gpmi-nand/gpmi-nand.c
index b741a6c..ef0978e 100644
--- a/drivers/mtd/nand/gpmi-nand/gpmi-nand.c
+++ b/drivers/mtd/nand/gpmi-nand/gpmi-nand.c
@@ -26,7 +26,6 @@
#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/mtd/partitions.h>
-#include <linux/pinctrl/consumer.h>
#include <linux/of.h>
#include <linux/of_device.h>
#include <linux/of_mtd.h>
@@ -520,7 +519,6 @@ err_clock:
static int acquire_resources(struct gpmi_nand_data *this)
{
- struct pinctrl *pinctrl;
int ret;
ret = acquire_register_block(this, GPMI_NAND_GPMI_REGS_ADDR_RES_NAME);
@@ -539,19 +537,12 @@ static int acquire_resources(struct gpmi_nand_data *this)
if (ret)
goto exit_dma_channels;
- pinctrl = devm_pinctrl_get_select_default(&this->pdev->dev);
- if (IS_ERR(pinctrl)) {
- ret = PTR_ERR(pinctrl);
- goto exit_pin;
- }
-
ret = gpmi_get_clks(this);
if (ret)
goto exit_clock;
return 0;
exit_clock:
-exit_pin:
release_dma_channels(this);
exit_dma_channels:
release_bch_irq(this);
More information about the linux-mtd-cvs
mailing list