diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2012-05-19 21:06:13 +0800 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2012-05-19 07:59:11 -0700 |
commit | 3e48b1baa042a4d5e92f373fc945a4aa0081178b (patch) | |
tree | 5abbe3dccc4903bd6851804c3bdcfcc6305735a2 /drivers | |
parent | a0f5e3631b07cabf624e7d818df76d47d9d21017 (diff) | |
download | linux-3.10-3e48b1baa042a4d5e92f373fc945a4aa0081178b.tar.gz linux-3.10-3e48b1baa042a4d5e92f373fc945a4aa0081178b.tar.bz2 linux-3.10-3e48b1baa042a4d5e92f373fc945a4aa0081178b.zip |
mtd: nand: gpmi: fix compile error caused by pinctrl call
Fix following compile error caused by commit 39febc0 (mtd: nand: gpmi:
adopt pinctrl support).
CC drivers/mtd/nand/gpmi-nand/gpmi-nand.o
drivers/mtd/nand/gpmi-nand/gpmi-nand.c: In function ‘acquire_resources’:
drivers/mtd/nand/gpmi-nand/gpmi-nand.c:499:45: error: ‘pdev’ undeclared (first use in this function)
Reported-by: Subodh Nijsure <snijsure@grid-net.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mtd/nand/gpmi-nand/gpmi-nand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/gpmi-nand/gpmi-nand.c b/drivers/mtd/nand/gpmi-nand/gpmi-nand.c index 8478fd9701a..b68e04310bd 100644 --- a/drivers/mtd/nand/gpmi-nand/gpmi-nand.c +++ b/drivers/mtd/nand/gpmi-nand/gpmi-nand.c @@ -496,7 +496,7 @@ static int __devinit acquire_resources(struct gpmi_nand_data *this) if (ret) goto exit_dma_channels; - pinctrl = devm_pinctrl_get_select_default(&pdev->dev); + pinctrl = devm_pinctrl_get_select_default(&this->pdev->dev); if (IS_ERR(pinctrl)) { ret = PTR_ERR(pinctrl); goto exit_pin; |