On Thu, May 02, 2013 at 11:18:35PM +0300, Leon Romanovsky wrote:
> On Wed, Apr 24, 2013 at 5:47 AM, Wei Yongjun <[email protected]> wrote:
> > From: Wei Yongjun <[email protected]>
> >
> > input_free_device() should only be used if input_register_device()
> > was not called yet or if it failed. Once device was unregistered
> > use input_unregister_device() and memory will be freed once last
> > reference to the device is dropped.
> >
> > Signed-off-by: Wei Yongjun <[email protected]>
> > ---
> >  drivers/staging/nvec/nvec_kbd.c | 1 -
> >  1 file changed, 1 deletion(-)
> >
> > diff --git a/drivers/staging/nvec/nvec_kbd.c 
> > b/drivers/staging/nvec/nvec_kbd.c
> > index 7445ce6..bdf5a64 100644
> > --- a/drivers/staging/nvec/nvec_kbd.c
> > +++ b/drivers/staging/nvec/nvec_kbd.c
> > @@ -170,7 +170,6 @@ fail:
> >  static int nvec_kbd_remove(struct platform_device *pdev)
> >  {
> >         input_unregister_device(keys_dev.input);
> > -       input_free_device(keys_dev.input);
> >
> >         return 0;
> >  }
> >
> 
> Hi Greg and Wei,
> I sent patch which converts nvec-kbd to managed device (devm_*), so
> this patch is not needed.

I agree, yours is the correct fix for this, I'll take your patch
instead.

thanks,

greg k-h
_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel

Reply via email to