ARM: at91/dt: sam9x5 crystals under the clocks node
[linux-2.6-block.git] / drivers / leds / leds-sunfire.c
index 388632d23d447130ca3a8368cd48bae9a9b410eb..0b8cc4a021a684b249dc28b1539c1f515516c1b7 100644 (file)
@@ -135,10 +135,8 @@ static int sunfire_led_generic_probe(struct platform_device *pdev,
        }
 
        p = devm_kzalloc(&pdev->dev, sizeof(*p), GFP_KERNEL);
-       if (!p) {
-               dev_err(&pdev->dev, "Could not allocate struct sunfire_drvdata\n");
+       if (!p)
                return -ENOMEM;
-       }
 
        for (i = 0; i < NUM_LEDS_PER_BOARD; i++) {
                struct led_classdev *lp = &p->leds[i].led_cdev;