sata: namespace curr_device variable
authorMike Frysinger <vapier@gentoo.org>
Mon, 15 Jun 2009 01:35:22 +0000 (21:35 -0400)
committerWolfgang Denk <wd@denx.de>
Fri, 17 Jul 2009 20:15:27 +0000 (22:15 +0200)
commit569460ebf14b87bd8fdb2352bde95d35ee96e13b
treefc59dfc9e8b70f18c275da33b1c84945e7a203ef
parent02e22c2de1ce2312f2636fa473a60c8d8f18d8aa
sata: namespace curr_device variable

The curr_device variable really should be namespaced with a "sata_" prefix
since it is only used by the sata code.  It also avoids random conflicts
with other pieces of code (like cmd_mmc):
common/libcommon.a(cmd_sata.o):(.data.curr_device+0x0):
multiple definition of `curr_device'
common/libcommon.a(cmd_mmc.o):(.data.curr_device+0x0): first defined here

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
common/cmd_sata.c
drivers/block/ata_piix.c