aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAndy Shevchenko <ext-andriy.shevchenko@nokia.com>2011-07-13 11:16:29 -0400
committerChris Ball <cjb@laptop.org>2011-07-21 10:35:01 -0400
commit6b206efeccacafc8cd0cc0b72ff92f2be175ca9e (patch)
tree73bb5625c2ad6f887f07c14dff0796e541a61066 /drivers
parent699b958ba0608cde3b767d0d7445f080cc3fe975 (diff)
mmc: omap_hsmmc: move hardcoded frequency constants to defines
Move the min and max frequency constants to the definition block in the source file. Signed-off-by: Andy Shevchenko <ext-andriy.shevchenko@nokia.com> Signed-off-by: Adrian Hunter <adrian.hunter@nokia.com> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mmc/host/omap_hsmmc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c
index 274b6c3ce02..b0b52ced455 100644
--- a/drivers/mmc/host/omap_hsmmc.c
+++ b/drivers/mmc/host/omap_hsmmc.c
@@ -120,6 +120,8 @@
120#define MMC_AUTOSUSPEND_DELAY 100 120#define MMC_AUTOSUSPEND_DELAY 100
121#define MMC_TIMEOUT_MS 20 121#define MMC_TIMEOUT_MS 20
122#define OMAP_MMC_MASTER_CLOCK 96000000 122#define OMAP_MMC_MASTER_CLOCK 96000000
123#define OMAP_MMC_MIN_CLOCK 400000
124#define OMAP_MMC_MAX_CLOCK 52000000
123#define DRIVER_NAME "omap_hsmmc" 125#define DRIVER_NAME "omap_hsmmc"
124 126
125/* 127/*
@@ -1932,8 +1934,8 @@ static int __init omap_hsmmc_probe(struct platform_device *pdev)
1932 if (mmc_slot(host).vcc_aux_disable_is_sleep) 1934 if (mmc_slot(host).vcc_aux_disable_is_sleep)
1933 mmc_slot(host).no_off = 1; 1935 mmc_slot(host).no_off = 1;
1934 1936
1935 mmc->f_min = 400000; 1937 mmc->f_min = OMAP_MMC_MIN_CLOCK;
1936 mmc->f_max = 52000000; 1938 mmc->f_max = OMAP_MMC_MAX_CLOCK;
1937 1939
1938 spin_lock_init(&host->irq_lock); 1940 spin_lock_init(&host->irq_lock);
1939 1941