Skip to content

Commit

Permalink
[drivers] make mmc.c power off ioctl unconditional
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Hall <hsw@openmoko.com>
  • Loading branch information
hxw committed Nov 26, 2009
1 parent 2cdc31b commit c1a3ca9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions samo-lib/drivers/src/mmc.c
Expand Up @@ -496,9 +496,7 @@ DRESULT mmc_disk_ioctl(BYTE drv, BYTE ctrl, void *buff)
if (ctrl == CTRL_POWER) {
switch (*ptr) {
case 0: // Sub control code == 0 (POWER_OFF)
if (chk_power()) {
turn_off_power(); // Power off
}
turn_off_power(); // Power off
res = RES_OK;
break;
case 1: // Sub control code == 1 (POWER_ON)
Expand Down

0 comments on commit c1a3ca9

Please sign in to comment.