]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
pata_platform: __pata_platform_remove() shouldn't be in discard section
authorSonic Zhang <sonic.zhang@analog.com>
Wed, 7 Jan 2009 16:37:12 +0000 (00:37 +0800)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 8 Jan 2009 21:10:29 +0000 (16:10 -0500)
commit78a7ba47fbc34a387e6347179ba571236596efbb
tree5dd7a365550c09828366268a9c6b36c8a50282b5
parent1564a187b4a7f43746da764347df16bf9095f92e
pata_platform: __pata_platform_remove() shouldn't be in discard section

--
  UPD     include/linux/compile.h
`___pata_platform_remove' referenced in section `__ksymtab_gpl' of
drivers/built-in.o: defined in discarded section `.devexit.text' of
drivers/built-in.o
make: *** [.tmp_vmlinux1] Error 1
--

__pata_platform_remove() should not be in discarded section
__pata_platform_remove(struct device *dev) is invoked in both
pata_platform.c and pata_of_platform.c by reomve function defined in
discarded section ".devexit.text". An exported function should not be put
into discarded section.

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/pata_platform.c