|
@@ -75,9 +75,9 @@ static int hi65xx_powerkey_probe(struct platform_device *pdev)
|
|
|
struct input_dev *input;
|
|
|
int irq, i, error;
|
|
|
|
|
|
- input = devm_input_allocate_device(&pdev->dev);
|
|
|
+ input = devm_input_allocate_device(dev);
|
|
|
if (!input) {
|
|
|
- dev_err(&pdev->dev, "failed to allocate input device\n");
|
|
|
+ dev_err(dev, "failed to allocate input device\n");
|
|
|
return -ENOMEM;
|
|
|
}
|
|
|
|
|
@@ -111,12 +111,11 @@ static int hi65xx_powerkey_probe(struct platform_device *pdev)
|
|
|
|
|
|
error = input_register_device(input);
|
|
|
if (error) {
|
|
|
- dev_err(&pdev->dev, "failed to register input device: %d\n",
|
|
|
- error);
|
|
|
+ dev_err(dev, "failed to register input device: %d\n", error);
|
|
|
return error;
|
|
|
}
|
|
|
|
|
|
- device_init_wakeup(&pdev->dev, 1);
|
|
|
+ device_init_wakeup(dev, 1);
|
|
|
|
|
|
return 0;
|
|
|
}
|