diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-09-30 16:24:04 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-09-30 17:08:06 -0400 |
commit | 0d4a2f9a33ea0d9964afca92b9b62e943c00b904 (patch) | |
tree | f5a41fcc0cbe8eefc3182ef8eff30032666ee6a3 /net/irda | |
parent | 72d099e2571b3b1bcf8cddb917f0cde4e60c354d (diff) |
irda: add __init to irlan_open
irlan_open is only called by __init irlan_init in same module.
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/irda')
-rw-r--r-- | net/irda/irlan/irlan_common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/irda/irlan/irlan_common.c b/net/irda/irlan/irlan_common.c index 1bc49edf2296..5a2d0a695529 100644 --- a/net/irda/irlan/irlan_common.c +++ b/net/irda/irlan/irlan_common.c | |||
@@ -98,7 +98,7 @@ static const struct file_operations irlan_fops = { | |||
98 | extern struct proc_dir_entry *proc_irda; | 98 | extern struct proc_dir_entry *proc_irda; |
99 | #endif /* CONFIG_PROC_FS */ | 99 | #endif /* CONFIG_PROC_FS */ |
100 | 100 | ||
101 | static struct irlan_cb *irlan_open(__u32 saddr, __u32 daddr); | 101 | static struct irlan_cb __init *irlan_open(__u32 saddr, __u32 daddr); |
102 | static void __irlan_close(struct irlan_cb *self); | 102 | static void __irlan_close(struct irlan_cb *self); |
103 | static int __irlan_insert_param(struct sk_buff *skb, char *param, int type, | 103 | static int __irlan_insert_param(struct sk_buff *skb, char *param, int type, |
104 | __u8 value_byte, __u16 value_short, | 104 | __u8 value_byte, __u16 value_short, |
@@ -196,7 +196,7 @@ static void __exit irlan_cleanup(void) | |||
196 | * Open new instance of a client/provider, we should only register the | 196 | * Open new instance of a client/provider, we should only register the |
197 | * network device if this instance is ment for a particular client/provider | 197 | * network device if this instance is ment for a particular client/provider |
198 | */ | 198 | */ |
199 | static struct irlan_cb *irlan_open(__u32 saddr, __u32 daddr) | 199 | static struct irlan_cb __init *irlan_open(__u32 saddr, __u32 daddr) |
200 | { | 200 | { |
201 | struct net_device *dev; | 201 | struct net_device *dev; |
202 | struct irlan_cb *self; | 202 | struct irlan_cb *self; |