diff options
author | David Brownell <dbrownell@users.sourceforge.net> | 2008-04-28 10:03:20 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-05-01 01:52:48 +0200 |
commit | 4356d73d028ad0726cfaf31ad30c5d28fcd98795 (patch) | |
tree | 4ca02a5ac47e6da7857c6a0caf93d06c9916f96c /drivers/pcmcia/cs_internal.h | |
parent | devres: support addresses greater than an unsigned long via dev_ioremap (diff) | |
download | linux-4356d73d028ad0726cfaf31ad30c5d28fcd98795.tar.xz linux-4356d73d028ad0726cfaf31ad30c5d28fcd98795.zip |
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, void release_resource_db(struct pcmcia_socket *s); /* In socket_sysfs.c */ -extern struct class_interface pccard_sysfs_interface; +extern int pccard_sysfs_add_socket(struct device *dev); +extern void pccard_sysfs_remove_socket(struct device *dev); /* In cs.c */ extern struct rw_semaphore pcmcia_socket_list_rwsem; |