From: Viresh Kumar Date: Fri, 14 Nov 2014 11:54:59 +0000 (+0530) Subject: greybus: core: use 'drv' instead of dev->driver X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=95bd99def54d972b2d528a91acb0152da0cdaeec;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git greybus: core: use 'drv' instead of dev->driver Signed-off-by: Viresh Kumar Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/core.c b/drivers/staging/greybus/core.c index 0f4a18b4b002..4604649b5698 100644 --- a/drivers/staging/greybus/core.c +++ b/drivers/staging/greybus/core.c @@ -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;