[PATCH] regulator mc13783: bail out without platform data
From: s.hauer@pengutronix.de (Sascha Hauer)
Date: 2012-03-01 09:58:51
Also in:
lkml
From: s.hauer@pengutronix.de (Sascha Hauer)
Date: 2012-03-01 09:58:51
Also in:
lkml
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:quoted
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 |