Input: use dev_get_platdata()
[linux-2.6-microblaze.git] / drivers / input / keyboard / ep93xx_keypad.c
index 47206bd..e598762 100644 (file)
@@ -244,7 +244,7 @@ static int ep93xx_keypad_probe(struct platform_device *pdev)
        if (!keypad)
                return -ENOMEM;
 
-       keypad->pdata = pdev->dev.platform_data;
+       keypad->pdata = dev_get_platdata(&pdev->dev);
        if (!keypad->pdata) {
                err = -EINVAL;
                goto failed_free;