ide: Correct IDE_BUS(dev) macro
authorLuka Perkov <uboot@lukaperkov.net>
Mon, 14 May 2012 09:29:10 +0000 (09:29 +0000)
committerTom Rini <trini@ti.com>
Mon, 8 Oct 2012 18:12:08 +0000 (11:12 -0700)
commit8a10180d62bb50a1f19441494bf9a5cea29ccfda
tree505a88c4cc85c2abed5849d83934864ddf452043
parent633efe9c2356be452ab79e964e3a83d78648a62c
ide: Correct IDE_BUS(dev) macro

The IDE_BUS(dev) macro was previously doing dev >> 1.  This however is a
mis-match of the usage in common/cmd_ide.c and would cause boards with
multiple ports / devices to not correctly detect all devices.  For more
details please see:
http://lists.denx.de/pipermail/u-boot/2012-April/122525.html

[Tom Rini: Reword commit message only]

Tested-by: Luka Perkov <uboot@lukaperkov.net>
Signed-off-by: Simon Baatz <gmbnomis@gmail.com>
Signed-off-by: Tom Rini <trini@ti.com>
include/ide.h