Messages in this thread | | | Date | Sun, 24 Nov 2013 00:41:32 +0000 | From | One Thousand Gnomes <> | Subject | Re: [PATCH 1/2] New Driver for IOSF-SB MBI access on Intel SOCs |
| |
On Thu, 21 Nov 2013 22:05:56 -0800 "David E. Box" <david.e.box@linux.intel.com> wrote:
> +static int iosf_mbi_probe(struct platform_device *pdev) > +{ > + struct resource *mem; > + > + /* Get and map MBI address space */ > + mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); > + iosf_mbi_data.addr = devm_ioremap_resource(&pdev->dev, mem);
Purely "defensive driv(er)ing" but platform_get_resource can return NULL
Alan
| |