Lines Matching refs:kempld_pdev
127 static struct platform_device *kempld_pdev; variable
134 kempld_pdev = platform_device_alloc("kempld", -1); in kempld_create_platform_device()
135 if (!kempld_pdev) in kempld_create_platform_device()
138 ret = platform_device_add_data(kempld_pdev, pdata, sizeof(*pdata)); in kempld_create_platform_device()
142 ret = platform_device_add_resources(kempld_pdev, pdata->ioresource, 1); in kempld_create_platform_device()
146 ret = platform_device_add(kempld_pdev); in kempld_create_platform_device()
152 platform_device_put(kempld_pdev); in kempld_create_platform_device()
493 if (kempld_pdev == NULL) { in kempld_probe()
501 } else if (kempld_pdev != pdev) { in kempld_probe()
971 if (kempld_pdev) in kempld_exit()
972 platform_device_unregister(kempld_pdev); in kempld_exit()