Re: [PATCH] regulator mc13783: bail out without platform data

From: Sascha Hauer
Date: Thu Mar 01 2012 - 04:58:49 EST


On Wed, Feb 29, 2012 at 11:19:51PM +0000, Mark Brown wrote:
> On Wed, Feb 29, 2012 at 09:01:40AM +0100, Sascha Hauer wrote:
> > the platform data pointer is used without checking it. Bail out
> > in the driver instead of crashing the kernel.
>
> Applied, thanks. Ideally the platform data would just specify the
> constraints and the driver would still be able to register the
> regulators even without constriants being provided to allow diagnostics.

Indeed. I can follow up on this when I find the time. For now I'm happy
with the kernel not crashing.

Sascha


--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
--
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/