]> git.sur5r.net Git - u-boot/blobdiff - common/cmd_ide.c
disk/part.c: Make features optional
[u-boot] / common / cmd_ide.c
index 7fbc05331001569bef457ddcd594d713718c8c0e..2e8c6e044a2962f72982b722bba96649da637fac 100644 (file)
@@ -719,10 +719,12 @@ void ide_init (void)
 
 /* ------------------------------------------------------------------------- */
 
+#ifdef CONFIG_PARTITIONS
 block_dev_desc_t * ide_get_dev(int dev)
 {
        return (dev < CONFIG_SYS_IDE_MAXDEVICE) ? &ide_dev_desc[dev] : NULL;
 }
+#endif
 
 
 #ifdef CONFIG_IDE_8xx_DIRECT