Lines Matching refs:pdevs
153 static struct platform_device **pdevs; variable
346 platform_device_unregister(pdevs[i]); in x86_android_tablet_remove()
348 kfree(pdevs); in x86_android_tablet_remove()
442 pdevs = kcalloc(dev_info->pdev_count + 1, sizeof(*pdevs), GFP_KERNEL); in x86_android_tablet_probe()
443 if (!pdevs) { in x86_android_tablet_probe()
450 pdevs[i] = platform_device_register_full(&dev_info->pdev_info[i]); in x86_android_tablet_probe()
451 if (IS_ERR(pdevs[i])) { in x86_android_tablet_probe()
452 ret = PTR_ERR(pdevs[i]); in x86_android_tablet_probe()
502 pdevs[pdev_count] = platform_device_register_data(&pdev->dev, "gpio-keys", in x86_android_tablet_probe()
505 if (IS_ERR(pdevs[pdev_count])) { in x86_android_tablet_probe()
506 ret = PTR_ERR(pdevs[pdev_count]); in x86_android_tablet_probe()