Re: [PATCH] mfd wm8350: allocate irq descs dynamically

From: Mark Brown
Date: Thu May 19 2011 - 17:04:42 EST


On Thu, May 19, 2011 at 08:56:48PM +0200, Sascha Hauer wrote:

> - if (!pdata || !pdata->irq_base) {
> - dev_warn(wm8350->dev, "No interrupt support, no IRQ base\n");
> + if (!pdata) {
> + dev_warn(wm8350->dev, "No interrupt support, no platform data\n");

This isn't terribly good, the only reason we're checking pdata here is
because we can't dereference it to look up irq_base if it's not there.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/