summaryrefslogtreecommitdiff
path: root/drivers/staging/greybus/module.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2014-11-13 18:14:34 +0530
committerGreg Kroah-Hartman <greg@kroah.com>2014-11-14 13:16:05 -0800
commit669f5faf84998227b2604d310a7f33ac90189b8c (patch)
tree4216f3638e8a055d6f122344bebee1828bbd9793 /drivers/staging/greybus/module.c
parent35a52cafbc214844f5940fe756bc2af01d987626 (diff)
greybus: don't set ->dev.driver to NULL when it is already NULL
Parent objects of 'dev' are allocated with kzalloc() and so all of their fields are initialized with 0. Hence no need of marking them NULL again. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
Diffstat (limited to 'drivers/staging/greybus/module.c')
-rw-r--r--drivers/staging/greybus/module.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/greybus/module.c b/drivers/staging/greybus/module.c
index 9cf98cd8d53d..f5d7dc84c1d1 100644
--- a/drivers/staging/greybus/module.c
+++ b/drivers/staging/greybus/module.c
@@ -90,7 +90,6 @@ struct gb_module *gb_module_create(struct greybus_host_device *hd, u8 module_id)
spin_unlock_irq(&gb_modules_lock);
gmod->dev.parent = hd->parent;
- gmod->dev.driver = NULL;
gmod->dev.bus = &greybus_bus_type;
gmod->dev.type = &greybus_module_type;
gmod->dev.groups = greybus_module_groups;