|
@@ -83,7 +83,7 @@ void __init gpmc_smsc911x_init(struct omap_smsc911x_platform_data *gpmc_cfg)
|
|
|
pdev = platform_device_register_resndata(NULL, "smsc911x", gpmc_cfg->id,
|
|
|
gpmc_smsc911x_resources, ARRAY_SIZE(gpmc_smsc911x_resources),
|
|
|
&gpmc_smsc911x_config, sizeof(gpmc_smsc911x_config));
|
|
|
- if (!pdev) {
|
|
|
+ if (IS_ERR(pdev)) {
|
|
|
pr_err("Unable to register platform device\n");
|
|
|
gpio_free(gpmc_cfg->gpio_reset);
|
|
|
goto free2;
|