From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Subject: Re: [PATCH 1/4] staging: uio: Simplify the lifetime logic of struct uio_device. Date: Fri, 9 Jan 2015 15:27:12 -0800 Message-ID: <20150109232712.GA1878@kroah.com> References: <1418759544-2610-1-git-send-email-mandeep.sandhu@cyaninc.com> <1418759544-2610-2-git-send-email-mandeep.sandhu@cyaninc.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: hjk@hansjkoch.de, linux-kernel@vger.kernel.org, viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org To: Mandeep Sandhu Return-path: Content-Disposition: inline In-Reply-To: <1418759544-2610-2-git-send-email-mandeep.sandhu@cyaninc.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Tue, Dec 16, 2014 at 11:52:21AM -0800, Mandeep Sandhu wrote: > Embed struct device into struct uio_device, and use > the refcounting and the release method of struct device > to control struct uio_device. > > This allows device_create and device_destroy to be replaced > with the more standard device_register and device_unregister, > and allows the struct device reference count to act as a > reference count on struct idev as well. > > Tested-by: Mandeep Sandhu > Signed-off-by: Mandeep Sandhu > --- > drivers/uio/uio.c | 41 ++++++++++++++++++++++++++--------------- > include/linux/uio_driver.h | 3 ++- > 2 files changed, 28 insertions(+), 16 deletions(-) The subject makes no sense, this has nothing to do with the staging tree :( Please fix up and resend this series. thanks, greg k-h