Re: [PATCH] mfd: check for NULL platform data

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Uwe Kleine-König
Date: Thursday, November 11, 2010 - 8:44 am

Hi Fabio,

On Thu, Nov 11, 2010 at 06:58:14AM -0800, Fabio Estevam wrote:
I'm not sure it's really needed to catch this error.  Not passing pdata
isn't sensible and then maybe failing with a bang is better than
handling silently.

And if you want to break probing, do you really want to return 0, i.e.
let the binding succeed?  IMHO (if you really want to handle pdata ==
NULL) you should fail before allocating the private data with
-ESOMETHINGSENSIBLE.

Thanks,
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] mfd: check for NULL platform data, Fabio Estevam, (Thu Nov 11, 7:58 am)
Re: [PATCH] mfd: check for NULL platform data, Uwe Kleine-König, (Thu Nov 11, 8:44 am)
Re: [PATCH] mfd: check for NULL platform data, Samuel Ortiz, (Fri Nov 26, 3:23 am)