[PATCH] mtd: sst25l: fix section markings

Artem Bityutskiy dedekind1 at gmail.com
Thu May 12 08:28:02 EDT 2011


On Mon, 2011-05-09 at 10:07 -0400, Mike Frysinger wrote:
> The previous section mismatch fix for this driver wasn't entirely correct.
> The sst25l_flash_info array is now used in the devinit probe func, but is
> marked as initdata, so building results in the warning:
> 
> WARNING: drivers/mtd/devices/sst25l.o(.devinit.text): Section mismatch
> 	in reference from the function sst25l_probe()
> 	to the variable .init.data:sst25l_flash_info
> 
> Further, the remove func should be devexit rather than exit to match the
> probe func.
> 
> Signed-off-by: Mike Frysinger <vapier at gentoo.org>

Pushed to l2-mtd-2.6.git, thanks.

-- 
Best Regards,
Artem Bityutskiy (Артём Битюцкий)




More information about the linux-mtd mailing list