提交 85e6c7a7 编写于 作者: K Kristoffer Ericson 提交者: Russell King

[ARM] 4810/1: - Fix 'section mismatch' building warnings

Warning message :
WARNING: vmlinux.o(.text+0x9afc): Section mismatch: reference to .init.text:sa1110_mb_enable (between 'sa1111_probe' and 'sa1111_remove')
WARNING: vmlinux.o(.text+0x13b1ac): Section mismatch: reference to .init.text:pcmcia_jornada720_init (between 'pcmcia_probe' and 'pcmcia_remove')

* fixes the 'section mismatch' building warnings for target sa1100. Solution is __init -> __devinit. Thanks to Randy Dunlap for pointing out the solution.
Signed-off-by: NKristoffer Ericson <kristoffer.ericson@gmail.com>
Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
上级 66a2c077
...@@ -470,7 +470,7 @@ void __init sa1110_mb_disable(void) ...@@ -470,7 +470,7 @@ void __init sa1110_mb_disable(void)
* If the system is going to use the SA-1111 DMA engines, set up * If the system is going to use the SA-1111 DMA engines, set up
* the memory bus request/grant pins. * the memory bus request/grant pins.
*/ */
void __init sa1110_mb_enable(void) void __devinit sa1110_mb_enable(void)
{ {
unsigned long flags; unsigned long flags;
......
...@@ -101,7 +101,7 @@ static struct pcmcia_low_level jornada720_pcmcia_ops = { ...@@ -101,7 +101,7 @@ static struct pcmcia_low_level jornada720_pcmcia_ops = {
.socket_suspend = sa1111_pcmcia_socket_suspend, .socket_suspend = sa1111_pcmcia_socket_suspend,
}; };
int __init pcmcia_jornada720_init(struct device *dev) int __devinit pcmcia_jornada720_init(struct device *dev)
{ {
int ret = -ENODEV; int ret = -ENODEV;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册