greybus: core: use 'drv' instead of dev->driver
authorViresh Kumar <viresh.kumar@linaro.org>
Fri, 14 Nov 2014 11:54:59 +0000 (17:24 +0530)
committerGreg Kroah-Hartman <greg@kroah.com>
Fri, 14 Nov 2014 21:32:27 +0000 (13:32 -0800)
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/core.c

index 0f4a18b4b002ae02379f2b94ff81ac20f1fb60e3..4604649b5698dfd5709192bc9d00f0f41d6dee01 100644 (file)
@@ -32,7 +32,7 @@ EXPORT_SYMBOL_GPL(greybus_disabled);
 
 static int greybus_module_match(struct device *dev, struct device_driver *drv)
 {
-       struct greybus_driver *driver = to_greybus_driver(dev->driver);
+       struct greybus_driver *driver = to_greybus_driver(drv);
        struct gb_module *gmod = to_gb_module(dev);
        const struct greybus_module_id *id;