Skip to content

Commit

Permalink
media: staging: media: Make use of devm_platform_ioremap_resource
Browse files Browse the repository at this point in the history
Fix below issue reported by coccicheck
drivers/staging//media/omap4iss/iss.c:915:1-15: WARNING: Use
devm_platform_ioremap_resource for iss -> regs [ res ]

Signed-off-by: Hariprasad Kelam <hariprasad.kelam@gmail.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
  • Loading branch information
Hariprasad Kelam authored and Mauro Carvalho Chehab committed Oct 16, 2019
1 parent 50df3be commit 4b1d7c2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions drivers/staging/media/omap4iss/iss.c
Original file line number Diff line number Diff line change
Expand Up @@ -908,11 +908,7 @@ static int iss_map_mem_resource(struct platform_device *pdev,
struct iss_device *iss,
enum iss_mem_resources res)
{
struct resource *mem;

mem = platform_get_resource(pdev, IORESOURCE_MEM, res);

iss->regs[res] = devm_ioremap_resource(iss->dev, mem);
iss->regs[res] = devm_platform_ioremap_resource(pdev, res);

return PTR_ERR_OR_ZERO(iss->regs[res]);
}
Expand Down

0 comments on commit 4b1d7c2

Please sign in to comment.