--- zzzz-none-000/linux-3.10.107/drivers/input/joystick/as5011.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/drivers/input/joystick/as5011.c 2021-02-04 17:41:59.000000000 +0000 @@ -234,7 +234,7 @@ int irq; int error; - plat_data = client->dev.platform_data; + plat_data = dev_get_platdata(&client->dev); if (!plat_data) return -EINVAL; @@ -288,6 +288,7 @@ if (irq < 0) { dev_err(&client->dev, "Failed to get irq number for button gpio\n"); + error = irq; goto err_free_button_gpio; }