mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-15 02:05:33 +00:00
isdn: Cleanup Sections in PCMCIA driver avma1
Compiling this driver gave a section mismatch, so I reviewed the init/exit paths of the driver and made the correct changes. WARNING: drivers/isdn/hisax/built-in.o(.text+0x56512): Section mismatch in reference from the function avma1cs_config() to the function .devinit.text:hisax_init_pcmcia() The function avma1cs_config() references the function __devinit hisax_init_pcmcia(). This is often because avma1cs_config lacks a __devinit annotation or the annotation of hisax_init_pcmcia is wrong. Signed-off-by: Henrik Kretzschmar <henne@nachtwindheim.de> Acked-by: Karsten Keil <keil@b1-systems.de> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
158e33d1c6
commit
a465870a80
@ -50,7 +50,7 @@ module_param(isdnprot, int, 0);
|
|||||||
handler.
|
handler.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static int avma1cs_config(struct pcmcia_device *link);
|
static int avma1cs_config(struct pcmcia_device *link) __devinit ;
|
||||||
static void avma1cs_release(struct pcmcia_device *link);
|
static void avma1cs_release(struct pcmcia_device *link);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -59,7 +59,7 @@ static void avma1cs_release(struct pcmcia_device *link);
|
|||||||
needed to manage one actual PCMCIA card.
|
needed to manage one actual PCMCIA card.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static void avma1cs_detach(struct pcmcia_device *p_dev);
|
static void avma1cs_detach(struct pcmcia_device *p_dev) __devexit ;
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -99,7 +99,7 @@ typedef struct local_info_t {
|
|||||||
|
|
||||||
======================================================================*/
|
======================================================================*/
|
||||||
|
|
||||||
static int avma1cs_probe(struct pcmcia_device *p_dev)
|
static int __devinit avma1cs_probe(struct pcmcia_device *p_dev)
|
||||||
{
|
{
|
||||||
local_info_t *local;
|
local_info_t *local;
|
||||||
|
|
||||||
@ -140,7 +140,7 @@ static int avma1cs_probe(struct pcmcia_device *p_dev)
|
|||||||
|
|
||||||
======================================================================*/
|
======================================================================*/
|
||||||
|
|
||||||
static void avma1cs_detach(struct pcmcia_device *link)
|
static void __devexit avma1cs_detach(struct pcmcia_device *link)
|
||||||
{
|
{
|
||||||
dev_dbg(&link->dev, "avma1cs_detach(0x%p)\n", link);
|
dev_dbg(&link->dev, "avma1cs_detach(0x%p)\n", link);
|
||||||
avma1cs_release(link);
|
avma1cs_release(link);
|
||||||
@ -174,7 +174,7 @@ static int avma1cs_configcheck(struct pcmcia_device *p_dev,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int avma1cs_config(struct pcmcia_device *link)
|
static int __devinit avma1cs_config(struct pcmcia_device *link)
|
||||||
{
|
{
|
||||||
local_info_t *dev;
|
local_info_t *dev;
|
||||||
int i;
|
int i;
|
||||||
@ -282,7 +282,7 @@ static struct pcmcia_driver avma1cs_driver = {
|
|||||||
.name = "avma1_cs",
|
.name = "avma1_cs",
|
||||||
},
|
},
|
||||||
.probe = avma1cs_probe,
|
.probe = avma1cs_probe,
|
||||||
.remove = avma1cs_detach,
|
.remove = __devexit_p(avma1cs_detach),
|
||||||
.id_table = avma1cs_ids,
|
.id_table = avma1cs_ids,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user