diff options
author | Simon Glass | 2015-11-19 20:26:56 -0700 |
---|---|---|
committer | Simon Glass | 2015-12-01 06:26:36 -0700 |
commit | 871bc923740538959dff818f382cbcce0282fa52 (patch) | |
tree | a3dfea2ed24b9d26b584353d8a2fdcfddd41c5ff | |
parent | fde7e18938d84950979beccb4b2b279efb19c4bd (diff) |
dm: pci: Avoid a driver model build error with CONFIG_CMD_PCI_ENUM
This is not supported with driver model, so print a message instead of
generating a build error. Rescanning PCI is not yet implemented.
This function will be implemented later once some additional PCI driver
model improvements are merged. It was confirmed on the mailing list
that no one on the tegra side will miss this feature, so it is disabled
for tegra.
Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Stephen Warren <swarren@nvidia.com>
-rw-r--r-- | common/cmd_pci.c | 4 | ||||
-rw-r--r-- | include/configs/apalis_t30.h | 1 | ||||
-rw-r--r-- | include/configs/beaver.h | 1 | ||||
-rw-r--r-- | include/configs/cardhu.h | 1 | ||||
-rw-r--r-- | include/configs/jetson-tk1.h | 1 | ||||
-rw-r--r-- | include/configs/p2371-2180.h | 1 | ||||
-rw-r--r-- | include/configs/trimslice.h | 1 |
7 files changed, 4 insertions, 6 deletions
diff --git a/common/cmd_pci.c b/common/cmd_pci.c index 802e4330440..2eafd5cc98e 100644 --- a/common/cmd_pci.c +++ b/common/cmd_pci.c @@ -458,7 +458,11 @@ static int do_pci(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) return pci_cfg_display(bdf, addr, size, value); #ifdef CONFIG_CMD_PCI_ENUM case 'e': +# ifdef CONFIG_DM_PCI + printf("This command is not yet supported with driver model\n"); +# else pci_init(); +# endif return 0; #endif case 'n': /* next */ diff --git a/include/configs/apalis_t30.h b/include/configs/apalis_t30.h index 7552a809db7..e1eb700404c 100644 --- a/include/configs/apalis_t30.h +++ b/include/configs/apalis_t30.h @@ -51,7 +51,6 @@ #define CONFIG_PCI #define CONFIG_PCI_PNP #define CONFIG_CMD_PCI -#define CONFIG_CMD_PCI_ENUM /* PCI networking support */ #define CONFIG_E1000_NO_NVM diff --git a/include/configs/beaver.h b/include/configs/beaver.h index 6dff1b9d0e2..3bed9a4f0ef 100644 --- a/include/configs/beaver.h +++ b/include/configs/beaver.h @@ -73,7 +73,6 @@ #define CONFIG_PCI #define CONFIG_PCI_PNP #define CONFIG_CMD_PCI -#define CONFIG_CMD_PCI_ENUM /* PCI networking support */ #define CONFIG_RTL8169 diff --git a/include/configs/cardhu.h b/include/configs/cardhu.h index 664e79b0634..c26a25cb228 100644 --- a/include/configs/cardhu.h +++ b/include/configs/cardhu.h @@ -75,7 +75,6 @@ #define CONFIG_PCI #define CONFIG_PCI_PNP #define CONFIG_CMD_PCI -#define CONFIG_CMD_PCI_ENUM /* PCI networking support */ #define CONFIG_RTL8169 diff --git a/include/configs/jetson-tk1.h b/include/configs/jetson-tk1.h index 6cb064a27d7..23b2e436167 100644 --- a/include/configs/jetson-tk1.h +++ b/include/configs/jetson-tk1.h @@ -60,7 +60,6 @@ #define CONFIG_PCI #define CONFIG_PCI_PNP #define CONFIG_CMD_PCI -#define CONFIG_CMD_PCI_ENUM /* PCI networking support */ #define CONFIG_RTL8169 diff --git a/include/configs/p2371-2180.h b/include/configs/p2371-2180.h index 46a801d9b69..7dbf4221f43 100644 --- a/include/configs/p2371-2180.h +++ b/include/configs/p2371-2180.h @@ -56,7 +56,6 @@ #define CONFIG_PCI #define CONFIG_PCI_PNP #define CONFIG_CMD_PCI -#define CONFIG_CMD_PCI_ENUM /* PCI networking support */ #define CONFIG_RTL8169 diff --git a/include/configs/trimslice.h b/include/configs/trimslice.h index c70fa08e780..8761f8de093 100644 --- a/include/configs/trimslice.h +++ b/include/configs/trimslice.h @@ -58,7 +58,6 @@ #define CONFIG_PCI #define CONFIG_PCI_PNP #define CONFIG_CMD_PCI -#define CONFIG_CMD_PCI_ENUM /* PCI networking support */ #define CONFIG_RTL8169 |