From 95bd99def54d972b2d528a91acb0152da0cdaeec Mon Sep 17 00:00:00 2001 From: Viresh Kumar Date: Fri, 14 Nov 2014 17:24:59 +0530 Subject: [PATCH] greybus: core: use 'drv' instead of dev->driver Signed-off-by: Viresh Kumar Signed-off-by: Greg Kroah-Hartman --- drivers/staging/greybus/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.20.1