--- zzzz-none-000/linux-3.10.107/drivers/input/misc/cma3000_d0x.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/drivers/input/misc/cma3000_d0x.c 2021-02-04 17:41:59.000000000 +0000 @@ -284,7 +284,7 @@ struct cma3000_accl_data *cma3000_init(struct device *dev, int irq, const struct cma3000_bus_ops *bops) { - const struct cma3000_platform_data *pdata = dev->platform_data; + const struct cma3000_platform_data *pdata = dev_get_platdata(dev); struct cma3000_accl_data *data; struct input_dev *input_dev; int rev;