X-Git-Url: http://git.samba.org/samba.git/?p=sfrench%2Fcifs-2.6.git;a=blobdiff_plain;f=arch%2Farm%2Fmach-omap1%2Fboard-ams-delta.c;fp=arch%2Farm%2Fmach-omap1%2Fboard-ams-delta.c;h=b6e814166ee03615bbda86dfd039e0fda021d502;hp=1b15d593837ed78ea22298ccc4ae60cb3de166f1;hb=11e600a8c79db090688475074a6ad13234f07541;hpb=81717283cf2c4c4d9bf8fd618cd6e5bdfe082edd diff --git a/arch/arm/mach-omap1/board-ams-delta.c b/arch/arm/mach-omap1/board-ams-delta.c index 1b15d593837e..b6e814166ee0 100644 --- a/arch/arm/mach-omap1/board-ams-delta.c +++ b/arch/arm/mach-omap1/board-ams-delta.c @@ -749,7 +749,7 @@ static void __init ams_delta_init(void) ARRAY_SIZE(ams_delta_gpio_tables)); leds_pdev = gpio_led_register_device(PLATFORM_DEVID_NONE, &leds_pdata); - if (!IS_ERR(leds_pdev)) { + if (!IS_ERR_OR_NULL(leds_pdev)) { leds_gpio_table.dev_id = dev_name(&leds_pdev->dev); gpiod_add_lookup_table(&leds_gpio_table); }