Commit a536a9b2 authored by David S. Miller's avatar David S. Miller

[NET]: Zap non-netdevice usage of SET_MODULE_OWNER.

parent f110e985
...@@ -2013,7 +2013,7 @@ static int __init apm_init(void) ...@@ -2013,7 +2013,7 @@ static int __init apm_init(void)
apm_proc = create_proc_info_entry("apm", 0, NULL, apm_get_info); apm_proc = create_proc_info_entry("apm", 0, NULL, apm_get_info);
if (apm_proc) if (apm_proc)
SET_MODULE_OWNER(apm_proc); apm_proc->owner = THIS_MODULE;
kernel_thread(apm, NULL, CLONE_FS | CLONE_FILES | CLONE_SIGHAND | SIGCHLD); kernel_thread(apm, NULL, CLONE_FS | CLONE_FILES | CLONE_SIGHAND | SIGCHLD);
......
...@@ -757,7 +757,7 @@ int __init i8k_init(void) ...@@ -757,7 +757,7 @@ int __init i8k_init(void)
return -ENOENT; return -ENOENT;
} }
proc_i8k->proc_fops = &i8k_fops; proc_i8k->proc_fops = &i8k_fops;
SET_MODULE_OWNER(proc_i8k); proc_i8k->owner = THIS_MODULE;
printk(KERN_INFO printk(KERN_INFO
"Dell laptop SMM driver v%s Massimo Dal Zotto (dz@debian.org)\n", "Dell laptop SMM driver v%s Massimo Dal Zotto (dz@debian.org)\n",
......
...@@ -587,7 +587,7 @@ act2000_alloccard(int bus, int port, int irq, char *id) ...@@ -587,7 +587,7 @@ act2000_alloccard(int bus, int port, int irq, char *id)
INIT_WORK(&card->rcv_tq, (void *) (void *) actcapi_dispatch, card); INIT_WORK(&card->rcv_tq, (void *) (void *) actcapi_dispatch, card);
INIT_WORK(&card->poll_tq, (void *) (void *) act2000_receive, card); INIT_WORK(&card->poll_tq, (void *) (void *) act2000_receive, card);
init_timer(&card->ptimer); init_timer(&card->ptimer);
SET_MODULE_OWNER(&card->interface); card->interface.owner = THIS_MODULE;
card->interface.channels = ACT2000_BCH; card->interface.channels = ACT2000_BCH;
card->interface.maxbufsize = 4000; card->interface.maxbufsize = 4000;
card->interface.command = if_command; card->interface.command = if_command;
......
...@@ -834,7 +834,7 @@ eicon_alloccard(int Type, int membase, int irq, char *id, int card_id) ...@@ -834,7 +834,7 @@ eicon_alloccard(int Type, int membase, int irq, char *id, int card_id)
tasklet_init(&card->snd_tq, eicon_transmit, (unsigned long)card); tasklet_init(&card->snd_tq, eicon_transmit, (unsigned long)card);
tasklet_init(&card->rcv_tq, eicon_rcv_dispatch, (unsigned long)card); tasklet_init(&card->rcv_tq, eicon_rcv_dispatch, (unsigned long)card);
tasklet_init(&card->ack_tq, eicon_ack_dispatch, (unsigned long)card); tasklet_init(&card->ack_tq, eicon_ack_dispatch, (unsigned long)card);
SET_MODULE_OWNER(&card->interface); card->interface.owner = THIS_MODULE;
card->interface.maxbufsize = 4000; card->interface.maxbufsize = 4000;
card->interface.command = if_command; card->interface.command = if_command;
card->interface.writebuf_skb = if_sendbuf; card->interface.writebuf_skb = if_sendbuf;
......
...@@ -118,7 +118,7 @@ static int __init b1isa_probe(struct pci_dev *pdev) ...@@ -118,7 +118,7 @@ static int __init b1isa_probe(struct pci_dev *pdev)
cinfo->capi_ctrl.procinfo = b1isa_procinfo; cinfo->capi_ctrl.procinfo = b1isa_procinfo;
cinfo->capi_ctrl.ctr_read_proc = b1ctl_read_proc; cinfo->capi_ctrl.ctr_read_proc = b1ctl_read_proc;
strcpy(cinfo->capi_ctrl.name, card->name); strcpy(cinfo->capi_ctrl.name, card->name);
SET_MODULE_OWNER(&cinfo->capi_ctrl); cinfo->capi_ctrl.owner = THIS_MODULE;
retval = attach_capi_ctr(&cinfo->capi_ctrl); retval = attach_capi_ctr(&cinfo->capi_ctrl);
if (retval) { if (retval) {
......
...@@ -111,7 +111,7 @@ static int b1pci_probe(struct capicardparams *p, struct pci_dev *pdev) ...@@ -111,7 +111,7 @@ static int b1pci_probe(struct capicardparams *p, struct pci_dev *pdev)
cinfo->capi_ctrl.procinfo = b1pci_procinfo; cinfo->capi_ctrl.procinfo = b1pci_procinfo;
cinfo->capi_ctrl.ctr_read_proc = b1ctl_read_proc; cinfo->capi_ctrl.ctr_read_proc = b1ctl_read_proc;
strcpy(cinfo->capi_ctrl.name, card->name); strcpy(cinfo->capi_ctrl.name, card->name);
SET_MODULE_OWNER(&cinfo->capi_ctrl); cinfo->capi_ctrl.owner = THIS_MODULE;
retval = attach_capi_ctr(&cinfo->capi_ctrl); retval = attach_capi_ctr(&cinfo->capi_ctrl);
if (retval) { if (retval) {
...@@ -249,7 +249,7 @@ static int b1pciv4_probe(struct capicardparams *p, struct pci_dev *pdev) ...@@ -249,7 +249,7 @@ static int b1pciv4_probe(struct capicardparams *p, struct pci_dev *pdev)
cinfo->capi_ctrl.procinfo = b1pciv4_procinfo; cinfo->capi_ctrl.procinfo = b1pciv4_procinfo;
cinfo->capi_ctrl.ctr_read_proc = b1dmactl_read_proc; cinfo->capi_ctrl.ctr_read_proc = b1dmactl_read_proc;
strcpy(cinfo->capi_ctrl.name, card->name); strcpy(cinfo->capi_ctrl.name, card->name);
SET_MODULE_OWNER(&cinfo->capi_ctrl); cinfo->capi_ctrl.owner = THIS_MODULE;
retval = attach_capi_ctr(&cinfo->capi_ctrl); retval = attach_capi_ctr(&cinfo->capi_ctrl);
if (retval) { if (retval) {
......
...@@ -105,7 +105,7 @@ static int b1pcmcia_add_card(unsigned int port, unsigned irq, ...@@ -105,7 +105,7 @@ static int b1pcmcia_add_card(unsigned int port, unsigned irq,
cinfo->capi_ctrl.procinfo = b1pcmcia_procinfo; cinfo->capi_ctrl.procinfo = b1pcmcia_procinfo;
cinfo->capi_ctrl.ctr_read_proc = b1ctl_read_proc; cinfo->capi_ctrl.ctr_read_proc = b1ctl_read_proc;
strcpy(cinfo->capi_ctrl.name, card->name); strcpy(cinfo->capi_ctrl.name, card->name);
SET_MODULE_OWNER(&cinfo->capi_ctrl); cinfo->capi_ctrl.owner = THIS_MODULE;
retval = attach_capi_ctr(&cinfo->capi_ctrl); retval = attach_capi_ctr(&cinfo->capi_ctrl);
if (retval) { if (retval) {
......
...@@ -1166,7 +1166,7 @@ static int c4_add_card(struct capicardparams *p, struct pci_dev *dev, ...@@ -1166,7 +1166,7 @@ static int c4_add_card(struct capicardparams *p, struct pci_dev *dev,
cinfo->capi_ctrl.procinfo = c4_procinfo; cinfo->capi_ctrl.procinfo = c4_procinfo;
cinfo->capi_ctrl.ctr_read_proc = c4_read_proc; cinfo->capi_ctrl.ctr_read_proc = c4_read_proc;
strcpy(cinfo->capi_ctrl.name, card->name); strcpy(cinfo->capi_ctrl.name, card->name);
SET_MODULE_OWNER(&cinfo->capi_ctrl); cinfo->capi_ctrl.owner = THIS_MODULE;
retval = attach_capi_ctr(&cinfo->capi_ctrl); retval = attach_capi_ctr(&cinfo->capi_ctrl);
if (retval) { if (retval) {
......
...@@ -411,7 +411,7 @@ static int __init t1isa_probe(struct pci_dev *pdev, int cardnr) ...@@ -411,7 +411,7 @@ static int __init t1isa_probe(struct pci_dev *pdev, int cardnr)
cinfo->capi_ctrl.procinfo = t1isa_procinfo; cinfo->capi_ctrl.procinfo = t1isa_procinfo;
cinfo->capi_ctrl.ctr_read_proc = b1ctl_read_proc; cinfo->capi_ctrl.ctr_read_proc = b1ctl_read_proc;
strcpy(cinfo->capi_ctrl.name, card->name); strcpy(cinfo->capi_ctrl.name, card->name);
SET_MODULE_OWNER(&cinfo->capi_ctrl); cinfo->capi_ctrl.owner = THIS_MODULE;
retval = attach_capi_ctr(&cinfo->capi_ctrl); retval = attach_capi_ctr(&cinfo->capi_ctrl);
if (retval) { if (retval) {
......
...@@ -119,7 +119,7 @@ static int t1pci_add_card(struct capicardparams *p, struct pci_dev *pdev) ...@@ -119,7 +119,7 @@ static int t1pci_add_card(struct capicardparams *p, struct pci_dev *pdev)
cinfo->capi_ctrl.procinfo = t1pci_procinfo; cinfo->capi_ctrl.procinfo = t1pci_procinfo;
cinfo->capi_ctrl.ctr_read_proc = b1dmactl_read_proc; cinfo->capi_ctrl.ctr_read_proc = b1dmactl_read_proc;
strcpy(cinfo->capi_ctrl.name, card->name); strcpy(cinfo->capi_ctrl.name, card->name);
SET_MODULE_OWNER(&cinfo->capi_ctrl); cinfo->capi_ctrl.owner = THIS_MODULE;
retval = attach_capi_ctr(&cinfo->capi_ctrl); retval = attach_capi_ctr(&cinfo->capi_ctrl);
if (retval) { if (retval) {
......
...@@ -149,7 +149,7 @@ void diva_os_set_controller_struct(struct capi_ctr *ctrl) ...@@ -149,7 +149,7 @@ void diva_os_set_controller_struct(struct capi_ctr *ctrl)
ctrl->load_firmware = 0; ctrl->load_firmware = 0;
ctrl->reset_ctr = 0; ctrl->reset_ctr = 0;
ctrl->ctr_read_proc = diva_ctl_read_proc; ctrl->ctr_read_proc = diva_ctl_read_proc;
SET_MODULE_OWNER(ctrl); ctrl->owner = THIS_MODULE;
} }
/* /*
......
...@@ -913,7 +913,7 @@ eicon_alloccard(DESCRIPTOR *d) ...@@ -913,7 +913,7 @@ eicon_alloccard(DESCRIPTOR *d)
skb_queue_head_init(&card->sackq); skb_queue_head_init(&card->sackq);
skb_queue_head_init(&card->statq); skb_queue_head_init(&card->statq);
card->statq_entries = 0; card->statq_entries = 0;
SET_MODULE_OWNER(&card->interface); card->interface.owner = THIS_MODULE;
card->interface.maxbufsize = 4000; card->interface.maxbufsize = 4000;
card->interface.command = if_command; card->interface.command = if_command;
card->interface.writebuf_skb = if_sendbuf; card->interface.writebuf_skb = if_sendbuf;
......
...@@ -889,7 +889,7 @@ static int __devinit checkcard(int cardnr, char *id, int *busy_flag) ...@@ -889,7 +889,7 @@ static int __devinit checkcard(int cardnr, char *id, int *busy_flag)
"HiSax: Card Type %d out of range\n", card->typ); "HiSax: Card Type %d out of range\n", card->typ);
goto outf_cs; goto outf_cs;
} }
SET_MODULE_OWNER(&cs->iif); cs->iif.owner = THIS_MODULE;
strcpy(cs->iif.id, id); strcpy(cs->iif.id, id);
cs->iif.channels = 2; cs->iif.channels = 2;
cs->iif.maxbufsize = MAX_DATA_SIZE; cs->iif.maxbufsize = MAX_DATA_SIZE;
......
...@@ -293,7 +293,7 @@ new_adapter(struct pci_dev *pdev) ...@@ -293,7 +293,7 @@ new_adapter(struct pci_dev *pdev)
memset(adapter, 0, sizeof(struct fritz_adapter)); memset(adapter, 0, sizeof(struct fritz_adapter));
SET_MODULE_OWNER(&adapter->isac.hisax_d_if); adapter->isac.hisax_d_if.owner = THIS_MODULE;
adapter->isac.hisax_d_if.ifc.priv = &adapter->isac; adapter->isac.hisax_d_if.ifc.priv = &adapter->isac;
adapter->isac.hisax_d_if.ifc.l2l1 = isac_d_l2l1; adapter->isac.hisax_d_if.ifc.l2l1 = isac_d_l2l1;
......
...@@ -827,7 +827,7 @@ new_adapter(struct pci_dev *pdev) ...@@ -827,7 +827,7 @@ new_adapter(struct pci_dev *pdev)
memset(adapter, 0, sizeof(struct fritz_adapter)); memset(adapter, 0, sizeof(struct fritz_adapter));
SET_MODULE_OWNER(&adapter->isac.hisax_d_if); adapter->isac.hisax_d_if.owner = THIS_MODULE;
adapter->isac.hisax_d_if.ifc.priv = &adapter->isac; adapter->isac.hisax_d_if.ifc.priv = &adapter->isac;
adapter->isac.hisax_d_if.ifc.l2l1 = isac_d_l2l1; adapter->isac.hisax_d_if.ifc.l2l1 = isac_d_l2l1;
......
...@@ -1484,7 +1484,7 @@ new_adapter(struct pci_dev *pdev) ...@@ -1484,7 +1484,7 @@ new_adapter(struct pci_dev *pdev)
memset(adapter, 0, sizeof(struct hfcpci_adapter)); memset(adapter, 0, sizeof(struct hfcpci_adapter));
SET_MODULE_OWNER(&adapter->d_if); adapter->d_if.owner = THIS_MODULE;
adapter->d_if.ifc.priv = adapter; adapter->d_if.ifc.priv = adapter;
adapter->d_if.ifc.l2l1 = hfcpci_d_l2l1; adapter->d_if.ifc.l2l1 = hfcpci_d_l2l1;
......
...@@ -80,7 +80,7 @@ static int probe_st5481(struct usb_interface *intf, ...@@ -80,7 +80,7 @@ static int probe_st5481(struct usb_interface *intf,
adapter->number_of_leds = number_of_leds; adapter->number_of_leds = number_of_leds;
adapter->usb_dev = dev; adapter->usb_dev = dev;
SET_MODULE_OWNER(&adapter->hisax_d_if); adapter->hisax_d_if.owner = THIS_MODULE;
adapter->hisax_d_if.ifc.priv = adapter; adapter->hisax_d_if.ifc.priv = adapter;
adapter->hisax_d_if.ifc.l2l1 = st5481_d_l2l1; adapter->hisax_d_if.ifc.l2l1 = st5481_d_l2l1;
......
...@@ -778,7 +778,7 @@ hycapi_capi_create(hysdn_card *card) ...@@ -778,7 +778,7 @@ hycapi_capi_create(hysdn_card *card)
ctrl->procinfo = hycapi_procinfo; ctrl->procinfo = hycapi_procinfo;
ctrl->ctr_read_proc = hycapi_read_proc; ctrl->ctr_read_proc = hycapi_read_proc;
strcpy(ctrl->name, cinfo->cardname); strcpy(ctrl->name, cinfo->cardname);
SET_MODULE_OWNER(ctrl); ctrl->owner = THIS_MODULE;
retval = attach_capi_ctr(ctrl); retval = attach_capi_ctr(ctrl);
if (retval) { if (retval) {
......
...@@ -1545,7 +1545,7 @@ icn_initcard(int port, char *id) ...@@ -1545,7 +1545,7 @@ icn_initcard(int port, char *id)
} }
memset((char *) card, 0, sizeof(icn_card)); memset((char *) card, 0, sizeof(icn_card));
card->port = port; card->port = port;
SET_MODULE_OWNER(&card->interface); card->interface.owner = THIS_MODULE;
card->interface.hl_hdrlen = 1; card->interface.hl_hdrlen = 1;
card->interface.channels = ICN_BCH; card->interface.channels = ICN_BCH;
card->interface.maxbufsize = 4000; card->interface.maxbufsize = 4000;
......
...@@ -1450,7 +1450,7 @@ isdnloop_initcard(char *id) ...@@ -1450,7 +1450,7 @@ isdnloop_initcard(char *id)
return (isdnloop_card *) 0; return (isdnloop_card *) 0;
} }
memset((char *) card, 0, sizeof(isdnloop_card)); memset((char *) card, 0, sizeof(isdnloop_card));
SET_MODULE_OWNER(&card->interface); card->interface.owner = THIS_MODULE;
card->interface.channels = ISDNLOOP_BCH; card->interface.channels = ISDNLOOP_BCH;
card->interface.hl_hdrlen = 1; /* scratch area for storing ack flag*/ card->interface.hl_hdrlen = 1; /* scratch area for storing ack flag*/
card->interface.maxbufsize = 4000; card->interface.maxbufsize = 4000;
......
...@@ -171,7 +171,7 @@ int pcbit_init_dev(int board, int mem_base, int irq) ...@@ -171,7 +171,7 @@ int pcbit_init_dev(int board, int mem_base, int irq)
dev->dev_if = dev_if; dev->dev_if = dev_if;
SET_MODULE_OWNER(dev_if); dev_if->owner = THIS_MODULE;
dev_if->channels = 2; dev_if->channels = 2;
......
...@@ -287,7 +287,7 @@ static int __init sc_init(void) ...@@ -287,7 +287,7 @@ static int __init sc_init(void)
} }
memset(interface, 0, sizeof(isdn_if)); memset(interface, 0, sizeof(isdn_if));
SET_MODULE_OWNER(interface); interface->owner = THIS_MODULE;
interface->hl_hdrlen = 0; interface->hl_hdrlen = 0;
interface->channels = channels; interface->channels = channels;
interface->maxbufsize = BUFFER_SIZE; interface->maxbufsize = BUFFER_SIZE;
......
...@@ -132,7 +132,7 @@ static int __devinit tpam_probe(struct pci_dev *dev, const struct pci_device_id ...@@ -132,7 +132,7 @@ static int __devinit tpam_probe(struct pci_dev *dev, const struct pci_device_id
copy_to_pam_dword(card, (void *)0x01840070, 0x00000010); copy_to_pam_dword(card, (void *)0x01840070, 0x00000010);
/* fill the ISDN link layer structure */ /* fill the ISDN link layer structure */
SET_MODULE_OWNER(&card->interface); card->interface.owner = THIS_MODULE;
card->interface.channels = TPAM_NBCHANNEL; card->interface.channels = TPAM_NBCHANNEL;
card->interface.maxbufsize = TPAM_MAXBUFSIZE; card->interface.maxbufsize = TPAM_MAXBUFSIZE;
card->interface.features = card->interface.features =
......
...@@ -524,7 +524,7 @@ static int __init apm_emu_init(void) ...@@ -524,7 +524,7 @@ static int __init apm_emu_init(void)
apm_proc = create_proc_info_entry("apm", 0, NULL, apm_emu_get_info); apm_proc = create_proc_info_entry("apm", 0, NULL, apm_emu_get_info);
if (apm_proc) if (apm_proc)
SET_MODULE_OWNER(apm_proc); apm_proc->owner = THIS_MODULE;
misc_register(&apm_device); misc_register(&apm_device);
......
...@@ -858,7 +858,7 @@ static int munich_probe(void) ...@@ -858,7 +858,7 @@ static int munich_probe(void)
board->linecode = SLICECOM_LINECODE_DEFAULT; board->linecode = SLICECOM_LINECODE_DEFAULT;
board->clock_source = SLICECOM_CLOCK_SOURCE_DEFAULT; board->clock_source = SLICECOM_CLOCK_SOURCE_DEFAULT;
board->loopback = SLICECOM_LOOPBACK_DEFAULT; board->loopback = SLICECOM_LOOPBACK_DEFAULT;
SET_MODULE_OWNER(board); board->owner = THIS_MODULE;
} }
else else
{ {
......
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
#include <linux/errno.h> /* return codes */ #include <linux/errno.h> /* return codes */
#include <linux/if_arp.h> /* ARPHRD_HWX25 */ #include <linux/if_arp.h> /* ARPHRD_HWX25 */
#include <linux/kernel.h> /* printk(), and other useful stuff */ #include <linux/kernel.h> /* printk(), and other useful stuff */
#include <linux/module.h> /* SET_MODULE_OWNER */ #include <linux/module.h>
#include <linux/string.h> /* inline memset(), etc. */ #include <linux/string.h> /* inline memset(), etc. */
#include <linux/slab.h> /* kmalloc(), kfree() */ #include <linux/slab.h> /* kmalloc(), kfree() */
#include <linux/stddef.h> /* offsetof(), etc. */ #include <linux/stddef.h> /* offsetof(), etc. */
......
...@@ -578,7 +578,7 @@ int __init esp4_init(void) ...@@ -578,7 +578,7 @@ int __init esp4_init(void)
decap_data_too_small(); decap_data_too_small();
} }
SET_MODULE_OWNER(&esp_type); esp_type.owner = THIS_MODULE;
if (xfrm_register_type(&esp_type, AF_INET) < 0) { if (xfrm_register_type(&esp_type, AF_INET) < 0) {
printk(KERN_INFO "ip esp init: can't add xfrm type\n"); printk(KERN_INFO "ip esp init: can't add xfrm type\n");
return -EAGAIN; return -EAGAIN;
......
...@@ -400,7 +400,7 @@ static struct inet_protocol ipcomp4_protocol = { ...@@ -400,7 +400,7 @@ static struct inet_protocol ipcomp4_protocol = {
static int __init ipcomp4_init(void) static int __init ipcomp4_init(void)
{ {
SET_MODULE_OWNER(&ipcomp_type); ipcomp_type.owner = THIS_MODULE;
if (xfrm_register_type(&ipcomp_type, AF_INET) < 0) { if (xfrm_register_type(&ipcomp_type, AF_INET) < 0) {
printk(KERN_INFO "ipcomp init: can't add xfrm type\n"); printk(KERN_INFO "ipcomp init: can't add xfrm type\n");
return -EAGAIN; return -EAGAIN;
......
...@@ -229,7 +229,7 @@ static struct inet_protocol ipip_protocol = { ...@@ -229,7 +229,7 @@ static struct inet_protocol ipip_protocol = {
static int __init ipip_init(void) static int __init ipip_init(void)
{ {
SET_MODULE_OWNER(&ipip_type); ipip_type.owner = THIS_MODULE;
if (xfrm_register_type(&ipip_type, AF_INET) < 0) { if (xfrm_register_type(&ipip_type, AF_INET) < 0) {
printk(KERN_INFO "ipip init: can't add xfrm type\n"); printk(KERN_INFO "ipip init: can't add xfrm type\n");
return -EAGAIN; return -EAGAIN;
......
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