summaryrefslogtreecommitdiff
path: root/api/api_storage.c
diff options
context:
space:
mode:
authorJon Loeliger <jdl@freescale.com>2008-02-14 14:07:21 -0600
committerJon Loeliger <jdl@freescale.com>2008-02-14 14:07:21 -0600
commit746c4b9490495dc4381dbcc49f40078d423e0a48 (patch)
treee726020abb9e37df1fca19d8895bf203b27612d1 /api/api_storage.c
parent3f2ac8f928c76cbd2374437b2d079f8b4324aaba (diff)
parentfe891ecf4d187e9d11dde869ed4623af52b54451 (diff)
downloadu-boot-imx-746c4b9490495dc4381dbcc49f40078d423e0a48.zip
u-boot-imx-746c4b9490495dc4381dbcc49f40078d423e0a48.tar.gz
u-boot-imx-746c4b9490495dc4381dbcc49f40078d423e0a48.tar.bz2
Merge commit 'wd/master'
Diffstat (limited to 'api/api_storage.c')
-rw-r--r--api/api_storage.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/api/api_storage.c b/api/api_storage.c
index 7cd4efb..7e63240 100644
--- a/api/api_storage.c
+++ b/api/api_storage.c
@@ -61,21 +61,21 @@ static struct stor_spec specs[ENUM_MAX] = { { 0, 0, 0, 0, "" }, };
void dev_stor_init(void)
{
-#if (CONFIG_COMMANDS & CFG_CMD_IDE)
+#if defined(CONFIG_CMD_IDE)
specs[ENUM_IDE].max_dev = CFG_IDE_MAXDEVICE;
specs[ENUM_IDE].enum_started = 0;
specs[ENUM_IDE].enum_ended = 0;
specs[ENUM_IDE].type = DEV_TYP_STOR | DT_STOR_IDE;
specs[ENUM_IDE].name = "ide";
#endif
-#if (CONFIG_COMMANDS & CFG_CMD_USB)
+#if defined(CONFIG_CMD_USB)
specs[ENUM_USB].max_dev = USB_MAX_STOR_DEV;
specs[ENUM_USB].enum_started = 0;
specs[ENUM_USB].enum_ended = 0;
specs[ENUM_USB].type = DEV_TYP_STOR | DT_STOR_USB;
specs[ENUM_USB].name = "usb";
#endif
-#if (CONFIG_COMMANDS & CFG_CMD_SCSI)
+#if defined(CONFIG_CMD_SCSI)
specs[ENUM_SCSI].max_dev = CFG_SCSI_MAX_DEVICE;
specs[ENUM_SCSI].enum_started = 0;
specs[ENUM_SCSI].enum_ended = 0;