uio_pdrv: set memory mapping name
PATCH 1/1 uio_pdrv: set memory mapping name
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.
Signed-off-by Manuel Traut <[email protected]>
Reported-by Stefan Staedtler <[email protected]>
Tested-by Stefan Staedtler <[email protected]>
drivers/uio/uio_pdrv_genirq.c +1 -0
@@ -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; }
drivers/uio/uio_pdrv.c +1 -0
@@ -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; }
Quoted 2 lines · Manuel Traut
If uio_pdrv[_genirq] is used, the uio maps have currently no name set. This patch sets the
uio_memname 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" <[email protected]>
Quoted 30 lines
Signed-off-by Manuel Traut <[email protected]>Reported-by Stefan Staedtler <[email protected]>Tested-by Stefan Staedtler <[email protected]>drivers/uio/uio_pdrv_genirq.c +1
-0@@ -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; }drivers/uio/uio_pdrv.c +1
-0@@ -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; }