[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20131124004132.6ca1c0e1@alan.etchedpixels.co.uk>
Date: Sun, 24 Nov 2013 00:41:32 +0000
From: One Thousand Gnomes <gnomes@...rguk.ukuu.org.uk>
To: "David E. Box" <david.e.box@...ux.intel.com>
Cc: tglx@...utronix.de, mingo@...hat.com, hpa@...or.com, rjw@...k.pl,
x86@...nel.org, linux-kernel@...r.kernel.org,
linux-acpi@...r.kernel.org
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@...ux.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists