Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753204Ab2KKMnT (ORCPT ); Sun, 11 Nov 2012 07:43:19 -0500 Received: from www.hansjkoch.de ([178.63.77.200]:51272 "EHLO www.hansjkoch.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753181Ab2KKMnR (ORCPT ); Sun, 11 Nov 2012 07:43:17 -0500 Date: Sun, 11 Nov 2012 13:43:10 +0100 From: "Hans J. Koch" To: Manuel Traut Cc: linux-kernel@vger.kernel.org, "Hans J. Koch" , Greg Kroah-Hartman , Stefan Staedtler , Magnus Damm , Uwe Kleine-Koenig Subject: Re: [PATCH] uio_pdrv: set memory mapping name Message-ID: <20121111124310.GA4313@local> References: <20121109060640.GW15531@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20121109060640.GW15531@linutronix.de> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1564 Lines: 43 On Fri, Nov 09, 2012 at 07:06:40AM +0100, Manuel Traut wrote: > If uio_pdrv[_genirq] is used, the uio maps have currently no name set. > This patch sets the uio_mem name to the name of the memory resource. Looks fine to me. I added the driver's authors to Cc. Signed-off-by: "Hans J. Koch" > > Signed-off-by: Manuel Traut > Reported-by: Stefan Staedtler > Tested-by: Stefan Staedtler > > diff --git a/drivers/uio/uio_pdrv_genirq.c b/drivers/uio/uio_pdrv_genirq.c > index 42202cd..ac988ce 100644 > --- a/drivers/uio/uio_pdrv_genirq.c > +++ b/drivers/uio/uio_pdrv_genirq.c > @@ -172,6 +172,7 @@ static int uio_pdrv_genirq_probe(struct platform_device *pdev) > uiomem->memtype = UIO_MEM_PHYS; > uiomem->addr = r->start; > uiomem->size = resource_size(r); > + uiomem->name = r->name; > ++uiomem; > } > > diff --git a/drivers/uio/uio_pdrv.c b/drivers/uio/uio_pdrv.c > index 72d3646..39be9e0 100644 > --- a/drivers/uio/uio_pdrv.c > +++ b/drivers/uio/uio_pdrv.c > @@ -60,6 +60,7 @@ static int uio_pdrv_probe(struct platform_device *pdev) > uiomem->memtype = UIO_MEM_PHYS; > uiomem->addr = r->start; > uiomem->size = resource_size(r); > + uiomem->name = r->name; > ++uiomem; > } > > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/