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>
connection->state = GB_CONNECTION_STATE_DISABLED;
connection->dev.parent = &interface->dev;
- connection->dev.driver = NULL;
connection->dev.bus = &greybus_bus_type;
connection->dev.type = &greybus_connection_type;
connection->dev.groups = connection_groups;
/* Build up the interface device structures and register it with the
* driver core */
interface->dev.parent = &gmod->dev;
- interface->dev.driver = NULL;
interface->dev.bus = &greybus_bus_type;
interface->dev.type = &greybus_interface_type;
interface->dev.groups = interface_groups;
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;