Commit c92cacc2 authored by Randy Dunlap's avatar Randy Dunlap Committed by Linus Torvalds

[PATCH] fix references to discarded sections

After disabling files that wouldn't build, there were 2 (in-kernel)
modules that referenced _init or _exit code sections when they
shouldn't.

This fixes those modules.
parent 7f4174f1
...@@ -120,7 +120,7 @@ static int DIVA_INIT_FUNCTION create_proc(void) ...@@ -120,7 +120,7 @@ static int DIVA_INIT_FUNCTION create_proc(void)
return (0); return (0);
} }
static void DIVA_EXIT_FUNCTION remove_proc(void) static void remove_proc(void)
{ {
remove_proc_entry(DRIVERLNAME, proc_net_isdn_eicon); remove_proc_entry(DRIVERLNAME, proc_net_isdn_eicon);
remove_proc_entry(main_proc_dir, proc_net_isdn); remove_proc_entry(main_proc_dir, proc_net_isdn);
......
...@@ -1787,7 +1787,7 @@ static int dscc4_init_ring(struct net_device *dev) ...@@ -1787,7 +1787,7 @@ static int dscc4_init_ring(struct net_device *dev)
return -ENOMEM; return -ENOMEM;
} }
static void __exit dscc4_remove_one(struct pci_dev *pdev) static void __devexit dscc4_remove_one(struct pci_dev *pdev)
{ {
struct dscc4_pci_priv *ppriv; struct dscc4_pci_priv *ppriv;
struct dscc4_dev_priv *root; struct dscc4_dev_priv *root;
...@@ -1867,7 +1867,7 @@ static struct pci_driver dscc4_driver = { ...@@ -1867,7 +1867,7 @@ static struct pci_driver dscc4_driver = {
.name = DRV_NAME, .name = DRV_NAME,
.id_table = dscc4_pci_tbl, .id_table = dscc4_pci_tbl,
.probe = dscc4_init_one, .probe = dscc4_init_one,
.remove = dscc4_remove_one, .remove = __devexit_p(dscc4_remove_one),
}; };
static int __init dscc4_init_module(void) static int __init dscc4_init_module(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment