lkml.org 
[lkml]   [2015]   [May]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] usb: ulpi: don't register drivers if bus doesn't exist
Date
Greg KH <gregkh@linuxfoundation.org> writes:

> If there are other bus drivers that do this, I'll go fix them up,
> pointers to those files would be appreciated.

git grep -E 'if .*\.p\W' found a couple of interesting candidates you
might want to check out:

drivers/i2c/i2c-core.c: if (unlikely(WARN_ON(!i2c_bus_type.p))) {
drivers/i2c/i2c-core.c: if (unlikely(WARN_ON(!i2c_bus_type.p)))
drivers/spmi/spmi.c: if (WARN_ON(!spmi_bus_type.p))

And this looks somewhat suspicious too, but could very well be OK for
all I know (very close to nothing :)

drivers/gpio/gpiolib-sysfs.c: if (!gpio_class.p) {
drivers/gpio/gpiolib-sysfs.c: if (!gpio_class.p)



Bjørn


\
 
 \ /
  Last update: 2015-05-25 19:21    [W:0.096 / U:0.156 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site