freemyipod r637 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r636‎ | r637 | r638 >
Date:23:18, 20 February 2011
Author:theseven
Status:new
Tags:
Comment:
emCORE: Fix duplicate definition of ata_num_drives for the iPod Classic
Modified paths:
  • /emcore/trunk/constants/mmc.h (modified) (history)
  • /emcore/trunk/target/ipodclassic/storage_ata.c (modified) (history)

Diff [purge]

Index: emcore/trunk/target/ipodclassic/storage_ata.c
@@ -544,11 +544,6 @@
545545 return ata_powered;
546546 }
547547
548 -int ata_num_drives(void)
549 -{
550 - return 1;
551 -}
552 -
553548 int ata_set_feature(uint32_t feature, uint32_t param)
554549 {
555550 PASS_RC(ata_wait_for_rdy(500000), 1, 0);
@@ -1116,7 +1111,6 @@
11171112 return 0;
11181113 }
11191114
1120 -#ifdef CONFIG_STORAGE_MULTI
11211115 int ata_num_drives(int first_drive)
11221116 {
11231117 /* We don't care which logical drive number(s) we have been assigned */
@@ -1124,7 +1118,6 @@
11251119
11261120 return 1;
11271121 }
1128 -#endif
11291122
11301123 void INT_ATA()
11311124 {
Index: emcore/trunk/constants/mmc.h
@@ -21,8 +21,8 @@
2222 //
2323
2424
25 -#ifndef __CONSTANTS_MMC_H__
26 -#define __CONSTANTS_MMC_H__
 25+#ifndef __CONSTANTS_MMC_H__
 26+#define __CONSTANTS_MMC_H__
2727
2828
2929 #include "global.h"