diff options
author | David Brownell <dbrownell@users.sourceforge.net> | 2008-04-28 04:03:20 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-04-30 19:52:48 -0400 |
commit | 4356d73d028ad0726cfaf31ad30c5d28fcd98795 (patch) | |
tree | 4ca02a5ac47e6da7857c6a0caf93d06c9916f96c /drivers/pcmcia/cs_internal.h | |
parent | 4f452e8aa492c0b8028ca9b4bdb4d018ba28c6c7 (diff) |
pcmcia: remove pccard_sysfs_interface warnings
Make the PCMCIA core stop using class_interface to hide socket attribute
registration. This removes the associated section mismatch warnings, and
helps get to the point where that mechanism can finally be removed.
Simplify that attribute registration by using an attribute_group.
This is a net shrink in object size.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/pcmcia/cs_internal.h')
-rw-r--r-- | drivers/pcmcia/cs_internal.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pcmcia/cs_internal.h b/drivers/pcmcia/cs_internal.h index 9fa207e3c7b3..e7d5d141f24d 100644 --- a/drivers/pcmcia/cs_internal.h +++ b/drivers/pcmcia/cs_internal.h | |||
@@ -121,7 +121,8 @@ struct resource *pcmcia_find_mem_region(u_long base, u_long num, u_long align, | |||
121 | void release_resource_db(struct pcmcia_socket *s); | 121 | void release_resource_db(struct pcmcia_socket *s); |
122 | 122 | ||
123 | /* In socket_sysfs.c */ | 123 | /* In socket_sysfs.c */ |
124 | extern struct class_interface pccard_sysfs_interface; | 124 | extern int pccard_sysfs_add_socket(struct device *dev); |
125 | extern void pccard_sysfs_remove_socket(struct device *dev); | ||
125 | 126 | ||
126 | /* In cs.c */ | 127 | /* In cs.c */ |
127 | extern struct rw_semaphore pcmcia_socket_list_rwsem; | 128 | extern struct rw_semaphore pcmcia_socket_list_rwsem; |