From 526304e1cec3fd532c9712b330b2ee469586cf13 Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Sat, 1 Nov 2008 16:49:38 +0000 Subject: fix reds git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18962 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/storage.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'firmware/export/storage.h') diff --git a/firmware/export/storage.h b/firmware/export/storage.h index 95e42f67f4..8a0219c523 100644 --- a/firmware/export/storage.h +++ b/firmware/export/storage.h @@ -102,6 +102,7 @@ static inline int storage_soft_reset(void) } static inline int storage_init(void) { +#ifndef SIMULATOR #if (CONFIG_STORAGE & STORAGE_ATA) return ata_init(); #elif (CONFIG_STORAGE & STORAGE_SD) @@ -113,6 +114,15 @@ static inline int storage_init(void) #else #error No storage driver! #endif +#else + return 0; +#endif +} +static inline void storage_close(void) +{ +#if (CONFIG_STORAGE & STORAGE_ATA) + ata_close(); +#endif } static inline int storage_read_sectors(IF_MV2(int drive,) unsigned long start, int count, void* buf) { -- cgit v1.2.3