diff options
author | Bjorn Helgaas <bjorn.helgaas@hp.com> | 2007-08-15 10:32:12 -0600 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2007-08-24 01:27:24 -0400 |
commit | 4f0217e30249ac0eb13b65ef64f2aee627465da2 (patch) | |
tree | a3a46b93bcd2356ee7c364bb3323ef70d23b1c41 /drivers/pnp/isapnp | |
parent | 6c504d30a48157b7c05a0dfb6a799c72095e957d (diff) | |
download | kernel_samsung_tuna-4f0217e30249ac0eb13b65ef64f2aee627465da2.zip kernel_samsung_tuna-4f0217e30249ac0eb13b65ef64f2aee627465da2.tar.gz kernel_samsung_tuna-4f0217e30249ac0eb13b65ef64f2aee627465da2.tar.bz2 |
PNP: remove MODULE infrastructure
We don't support building any part of PNP as a module (*drivers* can be
modules, of course, but the PNP infrastructure itself can not). Since
MODULE will never be defined, remove the ifdefs and dead code.
Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Acked-by: Adam Belay <abelay@novell.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/pnp/isapnp')
-rw-r--r-- | drivers/pnp/isapnp/proc.c | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/drivers/pnp/isapnp/proc.c b/drivers/pnp/isapnp/proc.c index 3fbc0f9..560ccb6 100644 --- a/drivers/pnp/isapnp/proc.c +++ b/drivers/pnp/isapnp/proc.c @@ -112,33 +112,6 @@ static int isapnp_proc_attach_device(struct pnp_dev *dev) return 0; } -#ifdef MODULE -static int __exit isapnp_proc_detach_device(struct pnp_dev *dev) -{ - struct pnp_card *bus = dev->card; - struct proc_dir_entry *de; - char name[16]; - - if (!(de = bus->procdir)) - return -EINVAL; - sprintf(name, "%02x", dev->number); - remove_proc_entry(name, de); - return 0; -} - -static int __exit isapnp_proc_detach_bus(struct pnp_card *bus) -{ - struct proc_dir_entry *de; - char name[16]; - - if (!(de = bus->procdir)) - return -EINVAL; - sprintf(name, "%02x", bus->number); - remove_proc_entry(name, isapnp_proc_bus_dir); - return 0; -} -#endif /* MODULE */ - int __init isapnp_proc_init(void) { struct pnp_dev *dev; @@ -149,21 +122,3 @@ int __init isapnp_proc_init(void) } return 0; } - -#ifdef MODULE -int __exit isapnp_proc_done(void) -{ - struct pnp_dev *dev; - struct pnp_bus *card; - - isapnp_for_each_dev(dev) { - isapnp_proc_detach_device(dev); - } - isapnp_for_each_card(card) { - isapnp_proc_detach_bus(card); - } - if (isapnp_proc_bus_dir) - remove_proc_entry("isapnp", proc_bus); - return 0; -} -#endif /* MODULE */ |