[PATCH] Driver core: pass interface to class interface methods
Driver core: pass interface to class intreface methods Pass interface as argument to add() and remove() class interface methods. This way a subsystem can implement generic add/remove handlers and then call interface-specific ones. Signed-off-by: Dmitry Torokhov <dtor@mail.ru> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
7bd7b09142
commit
d8539d81ae
@@ -1157,7 +1157,8 @@ static struct pcmcia_callback pcmcia_bus_callback = {
|
||||
.requery = pcmcia_bus_rescan,
|
||||
};
|
||||
|
||||
static int __devinit pcmcia_bus_add_socket(struct class_device *class_dev)
|
||||
static int __devinit pcmcia_bus_add_socket(struct class_device *class_dev,
|
||||
struct class_interface *class_intf)
|
||||
{
|
||||
struct pcmcia_socket *socket = class_get_devdata(class_dev);
|
||||
int ret;
|
||||
@@ -1192,7 +1193,8 @@ static int __devinit pcmcia_bus_add_socket(struct class_device *class_dev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void pcmcia_bus_remove_socket(struct class_device *class_dev)
|
||||
static void pcmcia_bus_remove_socket(struct class_device *class_dev,
|
||||
struct class_interface *class_intf)
|
||||
{
|
||||
struct pcmcia_socket *socket = class_get_devdata(class_dev);
|
||||
|
||||
|
Reference in New Issue
Block a user