From: Taylor Hutt <[email protected]>

This change removes warnings about 'scsi_device_list' being declared
but never used.

Signed-off-by: Taylor Hutt <[email protected]>
Signed-off-by: Simon Glass <[email protected]>
---
 common/cmd_scsi.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/common/cmd_scsi.c b/common/cmd_scsi.c
index f64d6f4..f58a220 100644
--- a/common/cmd_scsi.c
+++ b/common/cmd_scsi.c
@@ -60,7 +60,9 @@ struct scsi_device {
 #define SCSI_DEV_LIST {SCSI_VEND_ID, SCSI_DEV_ID}
 #endif
 
+#ifdef CONFIG_PCI
 static struct scsi_device scsi_device_list[] = { SCSI_DEV_LIST };
+#endif
 static ccb tempccb;    /* temporary scsi command buffer */
 
 static unsigned char tempbuff[512]; /* temporary data buffer */
-- 
1.7.7.3

_______________________________________________
U-Boot mailing list
[email protected]
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to