From: Wolfgang Denk Date: Fri, 23 Sep 2005 11:12:15 +0000 (+0200) Subject: More cleanup: get rid or redundand #defines X-Git-Tag: LABEL_2006_03_12_0025~170 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9ea4b5886a3aa18bae73d0b6b311f7b93e762faa;p=oweals%2Fu-boot.git More cleanup: get rid or redundand #defines --- diff --git a/board/esd/ocrtc/cmd_ocrtc.c b/board/esd/ocrtc/cmd_ocrtc.c index e113d5cab6..ffbb4adddc 100644 --- a/board/esd/ocrtc/cmd_ocrtc.c +++ b/board/esd/ocrtc/cmd_ocrtc.c @@ -24,15 +24,12 @@ #include #include #include +#include #include <405gp_pci.h> #if (CONFIG_COMMANDS & CFG_CMD_BSP) -#define AMCC_VENDOR_ID 0x1014 -#define PPC405_DEVICE_ID 0x0156 - - /* * Set device number on pci board */ @@ -43,7 +40,7 @@ int do_setdevice(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) u32 addr; while (bdf >= 0) { - if ((bdf = pci_find_device(AMCC_VENDOR_ID, PPC405_DEVICE_ID, idx++)) < 0) { + if ((bdf = pci_find_device(PCI_VENDOR_ID_IBM, PCI_DEVICE_ID_IBM_405GP, idx++)) < 0) { break; } printf("Found device nr %d at %x!\n", idx-1, bdf);