aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/keyboard/spear-keyboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/keyboard/spear-keyboard.c')
-rw-r--r--drivers/input/keyboard/spear-keyboard.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/input/keyboard/spear-keyboard.c b/drivers/input/keyboard/spear-keyboard.c
index 7111124b5362..85ff530d9a91 100644
--- a/drivers/input/keyboard/spear-keyboard.c
+++ b/drivers/input/keyboard/spear-keyboard.c
@@ -191,12 +191,6 @@ static int spear_kbd_probe(struct platform_device *pdev)
191 int irq; 191 int irq;
192 int error; 192 int error;
193 193
194 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
195 if (!res) {
196 dev_err(&pdev->dev, "no keyboard resource defined\n");
197 return -EBUSY;
198 }
199
200 irq = platform_get_irq(pdev, 0); 194 irq = platform_get_irq(pdev, 0);
201 if (irq < 0) { 195 if (irq < 0) {
202 dev_err(&pdev->dev, "not able to get irq for the device\n"); 196 dev_err(&pdev->dev, "not able to get irq for the device\n");
@@ -228,6 +222,7 @@ static int spear_kbd_probe(struct platform_device *pdev)
228 kbd->suspended_rate = pdata->suspended_rate; 222 kbd->suspended_rate = pdata->suspended_rate;
229 } 223 }
230 224
225 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
231 kbd->io_base = devm_ioremap_resource(&pdev->dev, res); 226 kbd->io_base = devm_ioremap_resource(&pdev->dev, res);
232 if (IS_ERR(kbd->io_base)) 227 if (IS_ERR(kbd->io_base))
233 return PTR_ERR(kbd->io_base); 228 return PTR_ERR(kbd->io_base);