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/ |
--