From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dmitry Torokhov Subject: Re: [PATCH 03/14] input: utilize new device_add_cdev helper function Date: Thu, 23 Feb 2017 00:37:03 -0800 Message-ID: <20170223083703.GF18639@dtor-ws> References: <1487653253-11497-1-git-send-email-logang@deltatee.com> <1487653253-11497-4-git-send-email-logang@deltatee.com> Reply-To: rtc-linux-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Sender: rtc-linux-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Content-Disposition: inline In-Reply-To: <1487653253-11497-4-git-send-email-logang-OTvnGxWRz7hWk0Htik3J/w@public.gmane.org> List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , To: Logan Gunthorpe Cc: Greg Kroah-Hartman , Dan Williams , Alexander Viro , Johannes Thumshirn , Jan Kara , Arnd Bergmann , Sajjan Vikas C , Linus Walleij , Alexandre Courbot , Peter Huewe , Marcel Selhorst , Jarkko Sakkinen , Jason Gunthorpe , Olof Johansson , Doug Ledford , Sean Hefty , Hal Rosenstock , Dmitry Vyukov , Haggai Eran , Parav Pandit , Leon Romanovsky , Jonathan Cameron , Hartmut Knaack List-Id: linux-gpio@vger.kernel.org On Mon, Feb 20, 2017 at 10:00:42PM -0700, Logan Gunthorpe wrote: > Signed-off-by: Logan Gunthorpe > --- Please add some more verbage, otherwise Acked-by: Dmitry Torokhov > drivers/input/evdev.c | 3 +-- > drivers/input/joydev.c | 3 +-- > drivers/input/mousedev.c | 3 +-- > 3 files changed, 3 insertions(+), 6 deletions(-) > > diff --git a/drivers/input/evdev.c b/drivers/input/evdev.c > index e9ae3d5..a3407ea 100644 > --- a/drivers/input/evdev.c > +++ b/drivers/input/evdev.c > @@ -1416,8 +1416,7 @@ static int evdev_connect(struct input_handler *handler, struct input_dev *dev, > goto err_free_evdev; > > cdev_init(&evdev->cdev, &evdev_fops); > - evdev->cdev.kobj.parent = &evdev->dev.kobj; > - error = cdev_add(&evdev->cdev, evdev->dev.devt, 1); > + error = device_add_cdev(&evdev->dev, &evdev->cdev); > if (error) > goto err_unregister_handle; > > diff --git a/drivers/input/joydev.c b/drivers/input/joydev.c > index abd18f3..012e06f 100644 > --- a/drivers/input/joydev.c > +++ b/drivers/input/joydev.c > @@ -905,8 +905,7 @@ static int joydev_connect(struct input_handler *handler, struct input_dev *dev, > goto err_free_joydev; > > cdev_init(&joydev->cdev, &joydev_fops); > - joydev->cdev.kobj.parent = &joydev->dev.kobj; > - error = cdev_add(&joydev->cdev, joydev->dev.devt, 1); > + error = device_add_cdev(&joydev->dev, &joydev->cdev); > if (error) > goto err_unregister_handle; > > diff --git a/drivers/input/mousedev.c b/drivers/input/mousedev.c > index b604564..efd8666 100644 > --- a/drivers/input/mousedev.c > +++ b/drivers/input/mousedev.c > @@ -901,8 +901,7 @@ static struct mousedev *mousedev_create(struct input_dev *dev, > } > > cdev_init(&mousedev->cdev, &mousedev_fops); > - mousedev->cdev.kobj.parent = &mousedev->dev.kobj; > - error = cdev_add(&mousedev->cdev, mousedev->dev.devt, 1); > + error = device_add_cdev(&mousedev->dev, &mousedev->cdev); > if (error) > goto err_unregister_handle; > > -- > 2.1.4 > -- Dmitry -- You received this message because you are subscribed to "rtc-linux". Membership options at http://groups.google.com/group/rtc-linux . Please read http://groups.google.com/group/rtc-linux/web/checklist before submitting a driver. --- You received this message because you are subscribed to the Google Groups "rtc-linux" group. To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/d/optout. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-x242.google.com (mail-pg0-x242.google.com [IPv6:2607:f8b0:400e:c05::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id B91BB82166 for ; Thu, 23 Feb 2017 00:37:07 -0800 (PST) Received: by mail-pg0-x242.google.com with SMTP id 5so3806648pgj.0 for ; Thu, 23 Feb 2017 00:37:07 -0800 (PST) Date: Thu, 23 Feb 2017 00:37:03 -0800 From: Dmitry Torokhov Subject: Re: [PATCH 03/14] input: utilize new device_add_cdev helper function Message-ID: <20170223083703.GF18639@dtor-ws> References: <1487653253-11497-1-git-send-email-logang@deltatee.com> <1487653253-11497-4-git-send-email-logang@deltatee.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1487653253-11497-4-git-send-email-logang@deltatee.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-nvdimm-bounces@lists.01.org Sender: "Linux-nvdimm" To: Logan Gunthorpe Cc: Alessandro Zummo , Jan Kara , linux-iio@vger.kernel.org, linux-pci@vger.kernel.org, Linus Walleij , Jarkko Sakkinen , Alexandre Bounine , Alexandre Belloni , Peter Meerwald-Stadler , linux-scsi@vger.kernel.org, Sean Hefty , Parav Pandit , Peter Huewe , Alexandre Courbot , Lars-Peter Clausen , "James E.J. Bottomley" , rtc-linux@googlegroups.com, Leon Romanovsky , linux-nvdimm@lists.01.org, linux-rdma@vger.kernel.org, Richard Weinberger , Jason Gunthorpe , Marek Vasut , Doug Ledford , tpmdd-devel@lists.sourceforge.net, Hans Verkuil , Matt Porter , Hal Rosenstock , linux-media@vger.kernel.org, Boaz Harrosh , Arnd Bergmann , Boris Brezillon , Sajjan Vikas C , linux-input@vger.kernel.org, Marcel Selhorst , Vladimir Zapolskiy , Joe Perches , Cyrille Pitchen , Benny Halevy , Alexander Viro , Bjorn Helgaas , Mauro Carvalho Chehab , Dmitry Vyukov , Haggai Eran , Lorenzo Stoakes , "Martin K. Petersen" , Artem Bityutskiy , Greg Kroah-Hartman , linux-gpio@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Stephen Bates , Hartmut Knaack , Olof Johansson , linux-mtd@lists.infradead.org, Andrew Morton , Brian Norris , David Woodhouse , Jonathan Cameron , osd-dev@open-osd.org List-ID: On Mon, Feb 20, 2017 at 10:00:42PM -0700, Logan Gunthorpe wrote: > Signed-off-by: Logan Gunthorpe > --- Please add some more verbage, otherwise Acked-by: Dmitry Torokhov > drivers/input/evdev.c | 3 +-- > drivers/input/joydev.c | 3 +-- > drivers/input/mousedev.c | 3 +-- > 3 files changed, 3 insertions(+), 6 deletions(-) > > diff --git a/drivers/input/evdev.c b/drivers/input/evdev.c > index e9ae3d5..a3407ea 100644 > --- a/drivers/input/evdev.c > +++ b/drivers/input/evdev.c > @@ -1416,8 +1416,7 @@ static int evdev_connect(struct input_handler *handler, struct input_dev *dev, > goto err_free_evdev; > > cdev_init(&evdev->cdev, &evdev_fops); > - evdev->cdev.kobj.parent = &evdev->dev.kobj; > - error = cdev_add(&evdev->cdev, evdev->dev.devt, 1); > + error = device_add_cdev(&evdev->dev, &evdev->cdev); > if (error) > goto err_unregister_handle; > > diff --git a/drivers/input/joydev.c b/drivers/input/joydev.c > index abd18f3..012e06f 100644 > --- a/drivers/input/joydev.c > +++ b/drivers/input/joydev.c > @@ -905,8 +905,7 @@ static int joydev_connect(struct input_handler *handler, struct input_dev *dev, > goto err_free_joydev; > > cdev_init(&joydev->cdev, &joydev_fops); > - joydev->cdev.kobj.parent = &joydev->dev.kobj; > - error = cdev_add(&joydev->cdev, joydev->dev.devt, 1); > + error = device_add_cdev(&joydev->dev, &joydev->cdev); > if (error) > goto err_unregister_handle; > > diff --git a/drivers/input/mousedev.c b/drivers/input/mousedev.c > index b604564..efd8666 100644 > --- a/drivers/input/mousedev.c > +++ b/drivers/input/mousedev.c > @@ -901,8 +901,7 @@ static struct mousedev *mousedev_create(struct input_dev *dev, > } > > cdev_init(&mousedev->cdev, &mousedev_fops); > - mousedev->cdev.kobj.parent = &mousedev->dev.kobj; > - error = cdev_add(&mousedev->cdev, mousedev->dev.devt, 1); > + error = device_add_cdev(&mousedev->dev, &mousedev->cdev); > if (error) > goto err_unregister_handle; > > -- > 2.1.4 > -- Dmitry _______________________________________________ Linux-nvdimm mailing list Linux-nvdimm@lists.01.org https://lists.01.org/mailman/listinfo/linux-nvdimm From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg0-x241.google.com ([2607:f8b0:400e:c05::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cgou0-0007VZ-IR for linux-mtd@lists.infradead.org; Thu, 23 Feb 2017 08:37:30 +0000 Received: by mail-pg0-x241.google.com with SMTP id 5so3806643pgj.0 for ; Thu, 23 Feb 2017 00:37:07 -0800 (PST) Date: Thu, 23 Feb 2017 00:37:03 -0800 From: Dmitry Torokhov To: Logan Gunthorpe Cc: Greg Kroah-Hartman , Dan Williams , Alexander Viro , Johannes Thumshirn , Jan Kara , Arnd Bergmann , Sajjan Vikas C , Linus Walleij , Alexandre Courbot , Peter Huewe , Marcel Selhorst , Jarkko Sakkinen , Jason Gunthorpe , Olof Johansson , Doug Ledford , Sean Hefty , Hal Rosenstock , Dmitry Vyukov , Haggai Eran , Parav Pandit , Leon Romanovsky , Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Hans Verkuil , Mauro Carvalho Chehab , Artem Bityutskiy , Richard Weinberger , David Woodhouse , Brian Norris , Boris Brezillon , Marek Vasut , Cyrille Pitchen , Matt Porter , Alexandre Bounine , Andrew Morton , Joe Perches , Lorenzo Stoakes , Vladimir Zapolskiy , Alessandro Zummo , Alexandre Belloni , Boaz Harrosh , Benny Halevy , "James E.J. Bottomley" , "Martin K. Petersen" , Stephen Bates , Bjorn Helgaas , linux-pci@vger.kernel.org, osd-dev@open-osd.org, linux-scsi@vger.kernel.org, rtc-linux@googlegroups.com, linux-mtd@lists.infradead.org, linux-media@vger.kernel.org, linux-iio@vger.kernel.org, linux-rdma@vger.kernel.org, tpmdd-devel@lists.sourceforge.net, linux-gpio@vger.kernel.org, linux-input@vger.kernel.org, linux-nvdimm@lists.01.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 03/14] input: utilize new device_add_cdev helper function Message-ID: <20170223083703.GF18639@dtor-ws> References: <1487653253-11497-1-git-send-email-logang@deltatee.com> <1487653253-11497-4-git-send-email-logang@deltatee.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1487653253-11497-4-git-send-email-logang@deltatee.com> List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, Feb 20, 2017 at 10:00:42PM -0700, Logan Gunthorpe wrote: > Signed-off-by: Logan Gunthorpe > --- Please add some more verbage, otherwise Acked-by: Dmitry Torokhov > drivers/input/evdev.c | 3 +-- > drivers/input/joydev.c | 3 +-- > drivers/input/mousedev.c | 3 +-- > 3 files changed, 3 insertions(+), 6 deletions(-) > > diff --git a/drivers/input/evdev.c b/drivers/input/evdev.c > index e9ae3d5..a3407ea 100644 > --- a/drivers/input/evdev.c > +++ b/drivers/input/evdev.c > @@ -1416,8 +1416,7 @@ static int evdev_connect(struct input_handler *handler, struct input_dev *dev, > goto err_free_evdev; > > cdev_init(&evdev->cdev, &evdev_fops); > - evdev->cdev.kobj.parent = &evdev->dev.kobj; > - error = cdev_add(&evdev->cdev, evdev->dev.devt, 1); > + error = device_add_cdev(&evdev->dev, &evdev->cdev); > if (error) > goto err_unregister_handle; > > diff --git a/drivers/input/joydev.c b/drivers/input/joydev.c > index abd18f3..012e06f 100644 > --- a/drivers/input/joydev.c > +++ b/drivers/input/joydev.c > @@ -905,8 +905,7 @@ static int joydev_connect(struct input_handler *handler, struct input_dev *dev, > goto err_free_joydev; > > cdev_init(&joydev->cdev, &joydev_fops); > - joydev->cdev.kobj.parent = &joydev->dev.kobj; > - error = cdev_add(&joydev->cdev, joydev->dev.devt, 1); > + error = device_add_cdev(&joydev->dev, &joydev->cdev); > if (error) > goto err_unregister_handle; > > diff --git a/drivers/input/mousedev.c b/drivers/input/mousedev.c > index b604564..efd8666 100644 > --- a/drivers/input/mousedev.c > +++ b/drivers/input/mousedev.c > @@ -901,8 +901,7 @@ static struct mousedev *mousedev_create(struct input_dev *dev, > } > > cdev_init(&mousedev->cdev, &mousedev_fops); > - mousedev->cdev.kobj.parent = &mousedev->dev.kobj; > - error = cdev_add(&mousedev->cdev, mousedev->dev.devt, 1); > + error = device_add_cdev(&mousedev->dev, &mousedev->cdev); > if (error) > goto err_unregister_handle; > > -- > 2.1.4 > -- Dmitry From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Sender: rtc-linux@googlegroups.com Received: from mail-pg0-x243.google.com (mail-pg0-x243.google.com. [2607:f8b0:400e:c05::243]) by gmr-mx.google.com with ESMTPS id f7si744461pfk.5.2017.02.23.00.37.07 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Feb 2017 00:37:07 -0800 (PST) Received: by mail-pg0-x243.google.com with SMTP id 1so3791721pgz.2 for ; Thu, 23 Feb 2017 00:37:07 -0800 (PST) Date: Thu, 23 Feb 2017 00:37:03 -0800 From: Dmitry Torokhov To: Logan Gunthorpe Cc: Greg Kroah-Hartman , Dan Williams , Alexander Viro , Johannes Thumshirn , Jan Kara , Arnd Bergmann , Sajjan Vikas C , Linus Walleij , Alexandre Courbot , Peter Huewe , Marcel Selhorst , Jarkko Sakkinen , Jason Gunthorpe , Olof Johansson , Doug Ledford , Sean Hefty , Hal Rosenstock , Dmitry Vyukov , Haggai Eran , Parav Pandit , Leon Romanovsky , Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Hans Verkuil , Mauro Carvalho Chehab , Artem Bityutskiy , Richard Weinberger , David Woodhouse , Brian Norris , Boris Brezillon , Marek Vasut , Cyrille Pitchen , Matt Porter , Alexandre Bounine , Andrew Morton , Joe Perches , Lorenzo Stoakes , Vladimir Zapolskiy , Alessandro Zummo , Alexandre Belloni , Boaz Harrosh , Benny Halevy , "James E.J. Bottomley" , "Martin K. Petersen" , Stephen Bates , Bjorn Helgaas , linux-pci@vger.kernel.org, osd-dev@open-osd.org, linux-scsi@vger.kernel.org, rtc-linux@googlegroups.com, linux-mtd@lists.infradead.org, linux-media@vger.kernel.org, linux-iio@vger.kernel.org, linux-rdma@vger.kernel.org, tpmdd-devel@lists.sourceforge.net, linux-gpio@vger.kernel.org, linux-input@vger.kernel.org, linux-nvdimm@lists.01.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [rtc-linux] Re: [PATCH 03/14] input: utilize new device_add_cdev helper function Message-ID: <20170223083703.GF18639@dtor-ws> References: <1487653253-11497-1-git-send-email-logang@deltatee.com> <1487653253-11497-4-git-send-email-logang@deltatee.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 In-Reply-To: <1487653253-11497-4-git-send-email-logang@deltatee.com> Reply-To: rtc-linux@googlegroups.com List-ID: List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , On Mon, Feb 20, 2017 at 10:00:42PM -0700, Logan Gunthorpe wrote: > Signed-off-by: Logan Gunthorpe > --- Please add some more verbage, otherwise Acked-by: Dmitry Torokhov > drivers/input/evdev.c | 3 +-- > drivers/input/joydev.c | 3 +-- > drivers/input/mousedev.c | 3 +-- > 3 files changed, 3 insertions(+), 6 deletions(-) > > diff --git a/drivers/input/evdev.c b/drivers/input/evdev.c > index e9ae3d5..a3407ea 100644 > --- a/drivers/input/evdev.c > +++ b/drivers/input/evdev.c > @@ -1416,8 +1416,7 @@ static int evdev_connect(struct input_handler *handler, struct input_dev *dev, > goto err_free_evdev; > > cdev_init(&evdev->cdev, &evdev_fops); > - evdev->cdev.kobj.parent = &evdev->dev.kobj; > - error = cdev_add(&evdev->cdev, evdev->dev.devt, 1); > + error = device_add_cdev(&evdev->dev, &evdev->cdev); > if (error) > goto err_unregister_handle; > > diff --git a/drivers/input/joydev.c b/drivers/input/joydev.c > index abd18f3..012e06f 100644 > --- a/drivers/input/joydev.c > +++ b/drivers/input/joydev.c > @@ -905,8 +905,7 @@ static int joydev_connect(struct input_handler *handler, struct input_dev *dev, > goto err_free_joydev; > > cdev_init(&joydev->cdev, &joydev_fops); > - joydev->cdev.kobj.parent = &joydev->dev.kobj; > - error = cdev_add(&joydev->cdev, joydev->dev.devt, 1); > + error = device_add_cdev(&joydev->dev, &joydev->cdev); > if (error) > goto err_unregister_handle; > > diff --git a/drivers/input/mousedev.c b/drivers/input/mousedev.c > index b604564..efd8666 100644 > --- a/drivers/input/mousedev.c > +++ b/drivers/input/mousedev.c > @@ -901,8 +901,7 @@ static struct mousedev *mousedev_create(struct input_dev *dev, > } > > cdev_init(&mousedev->cdev, &mousedev_fops); > - mousedev->cdev.kobj.parent = &mousedev->dev.kobj; > - error = cdev_add(&mousedev->cdev, mousedev->dev.devt, 1); > + error = device_add_cdev(&mousedev->dev, &mousedev->cdev); > if (error) > goto err_unregister_handle; > > -- > 2.1.4 > -- Dmitry -- You received this message because you are subscribed to "rtc-linux". Membership options at http://groups.google.com/group/rtc-linux . Please read http://groups.google.com/group/rtc-linux/web/checklist before submitting a driver. --- You received this message because you are subscribed to the Google Groups "rtc-linux" group. To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/d/optout. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dmitry Torokhov Subject: Re: [PATCH 03/14] input: utilize new device_add_cdev helper function Date: Thu, 23 Feb 2017 00:37:03 -0800 Message-ID: <20170223083703.GF18639@dtor-ws> References: <1487653253-11497-1-git-send-email-logang@deltatee.com> <1487653253-11497-4-git-send-email-logang@deltatee.com> Reply-To: rtc-linux-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: Greg Kroah-Hartman , Dan Williams , Alexander Viro , Johannes Thumshirn , Jan Kara , Arnd Bergmann , Sajjan Vikas C , Linus Walleij , Alexandre Courbot , Peter Huewe , Marcel Selhorst , Jarkko Sakkinen , Jason Gunthorpe , Olof Johansson , Doug Ledford , Sean Hefty , Hal Rosenstock , Dmitry Vyukov , Haggai Eran , Parav Pandit , Leon Romanovsky , Jonathan Cameron , Hartmut Knaack Return-path: Sender: rtc-linux-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Content-Disposition: inline In-Reply-To: <1487653253-11497-4-git-send-email-logang-OTvnGxWRz7hWk0Htik3J/w@public.gmane.org> List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , List-Id: linux-fsdevel.vger.kernel.org On Mon, Feb 20, 2017 at 10:00:42PM -0700, Logan Gunthorpe wrote: > Signed-off-by: Logan Gunthorpe > --- Please add some more verbage, otherwise Acked-by: Dmitry Torokhov > drivers/input/evdev.c | 3 +-- > drivers/input/joydev.c | 3 +-- > drivers/input/mousedev.c | 3 +-- > 3 files changed, 3 insertions(+), 6 deletions(-) > > diff --git a/drivers/input/evdev.c b/drivers/input/evdev.c > index e9ae3d5..a3407ea 100644 > --- a/drivers/input/evdev.c > +++ b/drivers/input/evdev.c > @@ -1416,8 +1416,7 @@ static int evdev_connect(struct input_handler *handler, struct input_dev *dev, > goto err_free_evdev; > > cdev_init(&evdev->cdev, &evdev_fops); > - evdev->cdev.kobj.parent = &evdev->dev.kobj; > - error = cdev_add(&evdev->cdev, evdev->dev.devt, 1); > + error = device_add_cdev(&evdev->dev, &evdev->cdev); > if (error) > goto err_unregister_handle; > > diff --git a/drivers/input/joydev.c b/drivers/input/joydev.c > index abd18f3..012e06f 100644 > --- a/drivers/input/joydev.c > +++ b/drivers/input/joydev.c > @@ -905,8 +905,7 @@ static int joydev_connect(struct input_handler *handler, struct input_dev *dev, > goto err_free_joydev; > > cdev_init(&joydev->cdev, &joydev_fops); > - joydev->cdev.kobj.parent = &joydev->dev.kobj; > - error = cdev_add(&joydev->cdev, joydev->dev.devt, 1); > + error = device_add_cdev(&joydev->dev, &joydev->cdev); > if (error) > goto err_unregister_handle; > > diff --git a/drivers/input/mousedev.c b/drivers/input/mousedev.c > index b604564..efd8666 100644 > --- a/drivers/input/mousedev.c > +++ b/drivers/input/mousedev.c > @@ -901,8 +901,7 @@ static struct mousedev *mousedev_create(struct input_dev *dev, > } > > cdev_init(&mousedev->cdev, &mousedev_fops); > - mousedev->cdev.kobj.parent = &mousedev->dev.kobj; > - error = cdev_add(&mousedev->cdev, mousedev->dev.devt, 1); > + error = device_add_cdev(&mousedev->dev, &mousedev->cdev); > if (error) > goto err_unregister_handle; > > -- > 2.1.4 > -- Dmitry -- You received this message because you are subscribed to "rtc-linux". Membership options at http://groups.google.com/group/rtc-linux . Please read http://groups.google.com/group/rtc-linux/web/checklist before submitting a driver. --- You received this message because you are subscribed to the Google Groups "rtc-linux" group. To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/d/optout.