]> git.baikalelectronics.ru Git - kernel.git/commit
[ARM] fix build-breaking ed0338d commit
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Thu, 2 Apr 2009 22:23:43 +0000 (23:23 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 2 Apr 2009 22:23:43 +0000 (23:23 +0100)
commit5e131339fa0eb29786f6c01a87fd8ddd2b93d432
tree415e6bdd27caace2145c3d7f1c38a5af77613cf6
parentc9d483b88e6c405be8fcb2226f40d27de07bb316
[ARM] fix build-breaking ed0338d commit

The commit:

    platform driver: fix incorrect use of 'platform_bus_type' with 'struct device_driver'

contains this:

-static int __exit pxa2xx_flash_remove(struct device *dev)
+static int __exit pxa2xx_flash_remove(struct platform_device *dev)
...
-       .remove         = __exit_p(pxa2xx_flash_remove),
+       .remove         = __devexit_p(pxa2xx_flash_remove),

which leads to the following build error:

`pxa2xx_flash_remove' referenced in section `.data' of drivers/built-in.o: defined in discarded section `.exit.text' of drivers/built-in.o

This is not the only instance of it in this patch - all __exit_p's
touched by this patch have been converted to __devexit_p's without
regard to the original function.

Let's revert this change and, if we are going to convert functions
to be __devexit/__devinit, lets have that as a _separate_ patch doing
just that change.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/mtd/maps/pxa2xx-flash.c