Commit eca9c47b authored by Henrik Kretzschmar's avatar Henrik Kretzschmar Committed by Florian Tobias Schandinat

fbdev: section cleanup in viafb driver

This patch moves two functions from .devexit to .text,
which are called on the probe error path.
Also a function which is called by probe is moved
from .text to .devinit.

WARNING: vmlinux.o(.devinit.text+0x2ca5): Section mismatch in reference
from the function via_pci_probe() to the function
devexit.text:via_teardown_subdevs()
The function __devinit via_pci_probe() references
a function __devexit via_teardown_subdevs().
This is often seen when error handling in the init function
uses functionality in the exit path.
The fix is often to remove the __devexit annotation of
via_teardown_subdevs() so it may be used outside an exit section.

WARNING: vmlinux.o(.devinit.text+0x2cb1): Section mismatch in reference
from the function via_pci_probe() to the function
devexit.text:via_pci_teardown_mmio()
The function __devinit via_pci_probe() references
a function __devexit via_pci_teardown_mmio().
This is often seen when error handling in the init function
uses functionality in the exit path.
The fix is often to remove the __devexit annotation of
via_pci_teardown_mmio() so it may be used outside an exit section.
Signed-off-by: default avatarHenrik Kretzschmar <henne@nachtwindheim.de>
Signed-off-by: default avatarFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
parent af29a5b1
...@@ -64,7 +64,7 @@ static inline int viafb_mmio_read(int reg) ...@@ -64,7 +64,7 @@ static inline int viafb_mmio_read(int reg)
*/ */
static u32 viafb_enabled_ints; static u32 viafb_enabled_ints;
static void viafb_int_init(void) static void __devinit viafb_int_init(void)
{ {
viafb_enabled_ints = 0; viafb_enabled_ints = 0;
...@@ -489,7 +489,7 @@ static int __devinit via_pci_setup_mmio(struct viafb_dev *vdev) ...@@ -489,7 +489,7 @@ static int __devinit via_pci_setup_mmio(struct viafb_dev *vdev)
return ret; return ret;
} }
static void __devexit via_pci_teardown_mmio(struct viafb_dev *vdev) static void via_pci_teardown_mmio(struct viafb_dev *vdev)
{ {
iounmap(vdev->fbmem); iounmap(vdev->fbmem);
iounmap(vdev->engine_mmio); iounmap(vdev->engine_mmio);
...@@ -548,7 +548,7 @@ static int __devinit via_setup_subdevs(struct viafb_dev *vdev) ...@@ -548,7 +548,7 @@ static int __devinit via_setup_subdevs(struct viafb_dev *vdev)
return 0; return 0;
} }
static void __devexit via_teardown_subdevs(void) static void via_teardown_subdevs(void)
{ {
int i; int i;
......
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