Explorar o código

[PATCH] Add superhyway_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>
Russell King %!s(int64=19) %!d(string=hai) anos
pai
achega
ff2dae7977
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      drivers/sh/superhyway/superhyway.c

+ 2 - 2
drivers/sh/superhyway/superhyway.c

@@ -175,8 +175,6 @@ int superhyway_register_driver(struct superhyway_driver *drv)
 {
 {
 	drv->drv.name	= drv->name;
 	drv->drv.name	= drv->name;
 	drv->drv.bus	= &superhyway_bus_type;
 	drv->drv.bus	= &superhyway_bus_type;
-	drv->drv.probe	= superhyway_device_probe;
-	drv->drv.remove	= superhyway_device_remove;
 
 
 	return driver_register(&drv->drv);
 	return driver_register(&drv->drv);
 }
 }
@@ -213,6 +211,8 @@ struct bus_type superhyway_bus_type = {
 #ifdef CONFIG_SYSFS
 #ifdef CONFIG_SYSFS
 	.dev_attrs	= superhyway_dev_attrs,
 	.dev_attrs	= superhyway_dev_attrs,
 #endif
 #endif
+	.probe		= superhyway_device_probe,
+	.remove		= superhyway_device_remove,
 };
 };
 
 
 static int __init superhyway_bus_init(void)
 static int __init superhyway_bus_init(void)