Re[2]: [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 ?

Now I realize that was a mistake.
Thanks.

---
��.n��������+%������w��{.n�����{��W����ܨ}���Ơz�j:+v�����w����ޙ��&�)ߡ�a����z�ޗ���ݢj��w�f





[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