Re: [PATCH v2] [media] media-device: handle errors at media_device_init()

2015-12-21 Thread Javier Martinez Canillas
Hello Mauro, On 12/15/2015 09:22 AM, Mauro Carvalho Chehab wrote: > Changeset 43ac4401dca9 ("[media] media-device: split media > initialization and registration") broke media device register > into two separate functions, but introduced a BUG_ON() and > made media_device_init() void. It also intro

[PATCH v2] [media] media-device: handle errors at media_device_init()

2015-12-15 Thread Mauro Carvalho Chehab
Changeset 43ac4401dca9 ("[media] media-device: split media initialization and registration") broke media device register into two separate functions, but introduced a BUG_ON() and made media_device_init() void. It also introduced several warnings. Instead of adding BUG_ON(), let's revert to WARN_O