From: Andy Fleming Date: Fri, 30 Jan 2009 15:45:40 -0600 Subject: [U-Boot] [PATCH 4/8] Reduce the scope of PXA's mmc_read/mmc_write/mmc_bread functions In-Reply-To: <1233351944-723-3-git-send-email-afleming@freescale.com> References: <1233351944-723-1-git-send-email-afleming@freescale.com> <1233351944-723-2-git-send-email-afleming@freescale.com> <1233351944-723-3-git-send-email-afleming@freescale.com> Message-ID: <1233351944-723-4-git-send-email-afleming@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de These names are being taken over by the new MMC framework. Hopefuly the PXA can be easily ported, and these functions will go away entirely. Signed-off-by: Andy Fleming --- cpu/pxa/mmc.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cpu/pxa/mmc.c b/cpu/pxa/mmc.c index 8f5277e..de77c12 100644 --- a/cpu/pxa/mmc.c +++ b/cpu/pxa/mmc.c @@ -218,7 +218,7 @@ mmc_block_write(ulong dst, uchar * src, int len) int /****************************************************/ -mmc_read(ulong src, uchar * dst, int size) +pxa_mmc_read(long src, uchar * dst, int size) /****************************************************/ { ulong end, part_start, part_end, part_len, aligned_start, aligned_end; @@ -294,7 +294,7 @@ mmc_read(ulong src, uchar * dst, int size) int /****************************************************/ -mmc_write(uchar * src, ulong dst, int size) +pxa_mmc_write(uchar * src, ulong dst, int size) /****************************************************/ { ulong end, part_start, part_end, part_len, aligned_start, aligned_end; @@ -375,7 +375,7 @@ mmc_write(uchar * src, ulong dst, int size) return 0; } -ulong +static ulong /****************************************************/ mmc_bread(int dev_num, ulong blknr, lbaint_t blkcnt, void *dst) /****************************************************/ @@ -383,7 +383,7 @@ mmc_bread(int dev_num, ulong blknr, lbaint_t blkcnt, void *dst) int mmc_block_size = MMC_BLOCK_SIZE; ulong src = blknr * mmc_block_size + CONFIG_SYS_MMC_BASE; - mmc_read(src, (uchar *) dst, blkcnt * mmc_block_size); + pxa_mmc_read(src, (uchar *) dst, blkcnt * mmc_block_size); return blkcnt; } -- 1.5.4.GIT