Re: [RFC] Device: device_get_binding() returns NULL if device fails initialization

Daniel Leung <daniel.leung@...>

On Thu, Apr 14, 2016 at 09:15:50AM +0000, Davidoaia, Bogdan M wrote:

I didn't catch this at first, but the patch causes a problem for the
Grove LCD driver (not sure if this problem is also present for other

The way it was written, the Grove LCD driver doesn't use the driver_api
pointer at all (there is no LCD API). As such, it is NULL by default and
the call to device_get_binding will return NULL even though the device
was correctly initialized.
Thank you for letting me know. I will send a patch to fix it.

Daniel Leung

Join to automatically receive all group messages.