greybus: core: use 'drv' instead of dev->driver

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
This commit is contained in:
Viresh Kumar 2014-11-14 17:24:59 +05:30 committed by Greg Kroah-Hartman
parent 3dc05f1871
commit 95bd99def5
1 changed files with 1 additions and 1 deletions

View 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;