Re: [PATCH] leds-alix2: add support for button connected to J15

From: Daniel Mack
Date: Wed Oct 21 2009 - 15:33:58 EST


Hi Dmitry,

On Tue, Oct 20, 2009 at 09:35:53PM -0700, Dmitry Torokhov wrote:
> On Tue, Oct 20, 2009 at 12:13:57PM +0200, Daniel Mack wrote:
> > +
> > + ret = input_register_polled_device(ipdev);
> > +
> > + if (ret) {
> > + input_free_polled_device(ipdev);
> > + ipdev = NULL;
> > + }
> > +
> > + return ret;
> > +}
>
> Ah, don't be lazy ;)

Ok ok, you're right, let's do it the clean way. Agreed :)

See the one below.

Thanks!

Daniel