]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/acpi/bay.c
ACPI: bay: use IS_ERR for return of register_platform_device_simple
[linux-2.6-omap-h63xx.git] / drivers / acpi / bay.c
index 73dc10db4a8880833dbbf3f488a37db2c359e7c8..9c28081ba6a67b9036dcf3c4253207d0ddf0de26 100644 (file)
@@ -283,7 +283,7 @@ static int bay_add(acpi_handle handle, int id)
 
        /* initialize platform device stuff */
        pdev = platform_device_register_simple(ACPI_BAY_CLASS, id, NULL, 0);
-       if (pdev == NULL) {
+       if (IS_ERR(pdev)) {
                printk(KERN_ERR PREFIX "Error registering bay device\n");
                goto bay_add_err;
        }