mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
media: staging: media: Make use of devm_platform_ioremap_resource
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>
This commit is contained in:
parent
50df3be70a
commit
4b1d7c2760
1 changed files with 1 additions and 5 deletions
|
@ -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]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue