[PATCH v5 0/3] return EINVAL error instead of BUG_ON()

2018-05-16 Thread Florian Schmaus
This patch series makes driver_register() emit an error message and return a failure code instead of triggering a BUG_ON(). The first patch will cause driver_register() to fail gracefully if the driver's bus was not initialized while printing out the name of the faulty driver *and* the name of

[PATCH v5 0/3] return EINVAL error instead of BUG_ON()

2018-05-16 Thread Florian Schmaus
This patch series makes driver_register() emit an error message and return a failure code instead of triggering a BUG_ON(). The first patch will cause driver_register() to fail gracefully if the driver's bus was not initialized while printing out the name of the faulty driver *and* the name of