mpc5200: digsy_mtc: Fix extension board detection
authorAnatolij Gustschin <agust@denx.de>
Wed, 7 Dec 2011 06:05:55 +0000 (06:05 +0000)
committerWolfgang Denk <wd@denx.de>
Mon, 12 Dec 2011 07:17:05 +0000 (08:17 +0100)
commit02ab0970b3ae7b2d535a1231ad259e3114d09772
tree7917eae245a8871c19e8af7367f57239e5215ce0
parentb2eb7d9bc6032e16b7dd898f7c0ea654f63b61db
mpc5200: digsy_mtc: Fix extension board detection

Switch to extension board detection using pci_find_device()
instead of detecting by i2c access to EEPROM device on
extension board.

This is a cleaner detection method since EEPROM addresses
can be different on different board revisions. This also
avoids "i2c_read: failed to address chip" error messages
in the boot log on boards without extension board which
may confuse users.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
board/intercontrol/digsy_mtc/digsy_mtc.c
include/configs/digsy_mtc.h