Because the input_get_new_minor function is not in the whitelist, and Google thinks that a normal input driver should not use those functions, so use the alloc_chrdev_region function to obtain the device number, which is used to create node under the path /sys/class/touchscreen/. Change-Id: Iedd2abdc6b772b62ea95c1edcd9eabc4b1256eec Reviewed-on: https://gerrit.mot.com/1758757 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Jichao Zou <zoujc@motorola.com> Reviewed-by: Konstantin Makariev <kmakariev@motorola.com> Submit-Approved: Jira Key