> >+ res = platform_get_resource(pdev, IORESOURCE_MEM, 0); > > Error checking on *res*...? > > We should *return* on platform_get_resource() failure.. > > >+ base = devm_ioremap_resource(&pdev->dev, res); Nope. devm_ioremap_resource does that.
Attachment:
signature.asc
Description: Digital signature