--- zzzz-none-000/linux-3.10.107/drivers/regulator/userspace-consumer.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/drivers/regulator/userspace-consumer.c 2021-02-04 17:41:59.000000000 +0000 @@ -111,7 +111,7 @@ struct userspace_consumer_data *drvdata; int ret; - pdata = pdev->dev.platform_data; + pdata = dev_get_platdata(&pdev->dev); if (!pdata) return -EINVAL;