forked from len0rd/rockbox
imx233: fix to typo and remove a forgotten panic
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31269 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
489296afa3
commit
39148be8ac
3 changed files with 2 additions and 5 deletions
|
@ -266,7 +266,7 @@ unsigned imx233_get_clock_freq(enum imx233_clock_t clk)
|
||||||
{
|
{
|
||||||
case CLK_PLL: /* PLL: 480MHz when enable */
|
case CLK_PLL: /* PLL: 480MHz when enable */
|
||||||
return imx233_is_clock_enable(CLK_PLL) ? 480000 : 0;
|
return imx233_is_clock_enable(CLK_PLL) ? 480000 : 0;
|
||||||
case CLK_XTAL: /* crytsal: 24MHz */
|
case CLK_XTAL: /* crystal: 24MHz */
|
||||||
return 24000;
|
return 24000;
|
||||||
case CLK_CPU:
|
case CLK_CPU:
|
||||||
{
|
{
|
||||||
|
|
|
@ -206,7 +206,7 @@ static int transfer_sectors(IF_MD2(int drive,) unsigned long start, int count, v
|
||||||
start += mmc_window_start;
|
start += mmc_window_start;
|
||||||
if((start + count) > mmc_window_end)
|
if((start + count) > mmc_window_end)
|
||||||
return -201;
|
return -201;
|
||||||
/* get mutex (needed because we done multiple commands for count > 0 */
|
/* get mutex (needed because we do multiple commands for count > 0) */
|
||||||
mutex_lock(&mmc_mutex);
|
mutex_lock(&mmc_mutex);
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
uint32_t resp;
|
uint32_t resp;
|
||||||
|
|
|
@ -372,9 +372,6 @@ static int transfer_sectors(IF_MD2(int drive,) unsigned long start, int count, v
|
||||||
ret = -23;
|
ret = -23;
|
||||||
Lend:
|
Lend:
|
||||||
mutex_unlock(&sd_mutex);
|
mutex_unlock(&sd_mutex);
|
||||||
if(ret != 0)
|
|
||||||
panicf("transfer_sectors(%d,%d,%d,%d,%d,%d)", drive, start, count, read,
|
|
||||||
old_start, old_count);
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue