diff options
author | Juha Yrjola juha.yrjola <at solidboot.com> | 2006-11-11 17:42:39 -0500 |
---|---|---|
committer | Pierre Ossman <drzeus@drzeus.cx> | 2006-12-01 12:02:03 -0500 |
commit | c5cb431d27237937e1b04a888bf2f8863f06fa2d (patch) | |
tree | 596b790fb3350a34008e660fc575d8d8274e0a4f /drivers/mmc/omap.c | |
parent | f4204fdf05e70cdbff1f657e3ed78eddd3d6267f (diff) |
Make general code cleanups
This patch is part of Juha Yrjola's and Komal Shah's earlier patch to
make general code cleanups
Signed-off-by: Carlos Eduardo Aguiar <carlos.aguiar <at> indt.org.br>
Signed-off-by: Juha Yrjola <juha.yrjola <at> solidboot.com>
Signed-off-by: Komal Shah <komal_shah802003 <at> yahoo.com>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Diffstat (limited to 'drivers/mmc/omap.c')
-rw-r--r-- | drivers/mmc/omap.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/drivers/mmc/omap.c b/drivers/mmc/omap.c index 4e46750e8d0a..f8830c527603 100644 --- a/drivers/mmc/omap.c +++ b/drivers/mmc/omap.c | |||
@@ -581,12 +581,6 @@ static void mmc_omap_switch_timer(unsigned long arg) | |||
581 | schedule_work(&host->switch_work); | 581 | schedule_work(&host->switch_work); |
582 | } | 582 | } |
583 | 583 | ||
584 | /* FIXME: Handle card insertion and removal properly. Maybe use a mask | ||
585 | * for MMC state? */ | ||
586 | static void mmc_omap_switch_callback(unsigned long data, u8 mmc_mask) | ||
587 | { | ||
588 | } | ||
589 | |||
590 | static void mmc_omap_switch_handler(void *data) | 584 | static void mmc_omap_switch_handler(void *data) |
591 | { | 585 | { |
592 | struct mmc_omap_host *host = (struct mmc_omap_host *) data; | 586 | struct mmc_omap_host *host = (struct mmc_omap_host *) data; |
@@ -824,7 +818,6 @@ mmc_omap_prepare_data(struct mmc_omap_host *host, struct mmc_request *req) | |||
824 | return; | 818 | return; |
825 | } | 819 | } |
826 | 820 | ||
827 | |||
828 | block_size = data->blksz; | 821 | block_size = data->blksz; |
829 | 822 | ||
830 | OMAP_MMC_WRITE(host, NBLK, data->blocks - 1); | 823 | OMAP_MMC_WRITE(host, NBLK, data->blocks - 1); |
@@ -896,7 +889,6 @@ static void mmc_omap_request(struct mmc_host *mmc, struct mmc_request *req) | |||
896 | static void innovator_fpga_socket_power(int on) | 889 | static void innovator_fpga_socket_power(int on) |
897 | { | 890 | { |
898 | #if defined(CONFIG_MACH_OMAP_INNOVATOR) && defined(CONFIG_ARCH_OMAP15XX) | 891 | #if defined(CONFIG_MACH_OMAP_INNOVATOR) && defined(CONFIG_ARCH_OMAP15XX) |
899 | |||
900 | if (on) { | 892 | if (on) { |
901 | fpga_write(fpga_read(OMAP1510_FPGA_POWER) | (1 << 3), | 893 | fpga_write(fpga_read(OMAP1510_FPGA_POWER) | (1 << 3), |
902 | OMAP1510_FPGA_POWER); | 894 | OMAP1510_FPGA_POWER); |
@@ -978,7 +970,7 @@ static void mmc_omap_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) | |||
978 | case MMC_POWER_UP: | 970 | case MMC_POWER_UP: |
979 | case MMC_POWER_ON: | 971 | case MMC_POWER_ON: |
980 | mmc_omap_power(host, 1); | 972 | mmc_omap_power(host, 1); |
981 | dsor |= 1<<11; | 973 | dsor |= 1 << 11; |
982 | break; | 974 | break; |
983 | } | 975 | } |
984 | 976 | ||
@@ -997,8 +989,8 @@ static void mmc_omap_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) | |||
997 | /* Send clock cycles, poll completion */ | 989 | /* Send clock cycles, poll completion */ |
998 | OMAP_MMC_WRITE(host, IE, 0); | 990 | OMAP_MMC_WRITE(host, IE, 0); |
999 | OMAP_MMC_WRITE(host, STAT, 0xffff); | 991 | OMAP_MMC_WRITE(host, STAT, 0xffff); |
1000 | OMAP_MMC_WRITE(host, CMD, 1<<7); | 992 | OMAP_MMC_WRITE(host, CMD, 1 << 7); |
1001 | while (0 == (OMAP_MMC_READ(host, STAT) & 1)); | 993 | while ((OMAP_MMC_READ(host, STAT) & 1) == 0); |
1002 | OMAP_MMC_WRITE(host, STAT, 1); | 994 | OMAP_MMC_WRITE(host, STAT, 1); |
1003 | } | 995 | } |
1004 | clk_disable(host->fclk); | 996 | clk_disable(host->fclk); |
@@ -1093,7 +1085,7 @@ static int __init mmc_omap_probe(struct platform_device *pdev) | |||
1093 | mmc->ops = &mmc_omap_ops; | 1085 | mmc->ops = &mmc_omap_ops; |
1094 | mmc->f_min = 400000; | 1086 | mmc->f_min = 400000; |
1095 | mmc->f_max = 24000000; | 1087 | mmc->f_max = 24000000; |
1096 | mmc->ocr_avail = MMC_VDD_32_33|MMC_VDD_33_34; | 1088 | mmc->ocr_avail = MMC_VDD_32_33 | MMC_VDD_33_34; |
1097 | mmc->caps = MMC_CAP_MULTIWRITE | MMC_CAP_BYTEBLOCK; | 1089 | mmc->caps = MMC_CAP_MULTIWRITE | MMC_CAP_BYTEBLOCK; |
1098 | 1090 | ||
1099 | if (minfo->wire4) | 1091 | if (minfo->wire4) |