[PATCH] Add ccwgroup_bus_type probe and remove methods

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Russell King and committed by
Greg Kroah-Hartman
f9ccf456 4681fc32

+9 -7
+9 -7
drivers/s390/cio/ccwgroup.c
··· 52 52 return 0; 53 53 } 54 54 55 - static struct bus_type ccwgroup_bus_type = { 56 - .name = "ccwgroup", 57 - .match = ccwgroup_bus_match, 58 - .uevent = ccwgroup_uevent, 59 - }; 55 + static struct bus_type ccwgroup_bus_type; 60 56 61 57 static inline void 62 58 __ccwgroup_remove_symlinks(struct ccwgroup_device *gdev) ··· 385 389 return 0; 386 390 } 387 391 392 + static struct bus_type ccwgroup_bus_type = { 393 + .name = "ccwgroup", 394 + .match = ccwgroup_bus_match, 395 + .uevent = ccwgroup_uevent, 396 + .probe = ccwgroup_probe, 397 + .remove = ccwgroup_remove, 398 + }; 399 + 388 400 int 389 401 ccwgroup_driver_register (struct ccwgroup_driver *cdriver) 390 402 { ··· 400 396 cdriver->driver = (struct device_driver) { 401 397 .bus = &ccwgroup_bus_type, 402 398 .name = cdriver->name, 403 - .probe = ccwgroup_probe, 404 - .remove = ccwgroup_remove, 405 399 }; 406 400 407 401 return driver_register(&cdriver->driver);