Re: [PATCH 1/3] leds: leds-mc13783: Prepare driver to support MC13892 LEDs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

@@ -341,51 +362,55 @@ static int mc13783_led_probe(struct platform_device *pdev)

  err_register:
  	for (i = i - 1; i >= 0; i--) {
-		led_classdev_unregister(&led[i].cdev);
  		cancel_work_sync(&led[i].work);
+		led_classdev_unregister(&led[i].cdev);
  	}

  	return ret;
  }

+static int mc13xxx_led_remove(struct platform_device *pdev)
(..)

  	for (i = 0; i < pdata->num_leds; i++) {
-		led_classdev_unregister(&led[i].cdev);
  		cancel_work_sync(&led[i].work);
+		led_classdev_unregister(&led[i].cdev);
  	}



Why changing the order ?

Thanks,

Philippe
--
To unsubscribe from this list: send the line "unsubscribe linux-leds" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux