aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/core/host.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/mmc/core/host.c b/drivers/mmc/core/host.c
index 817a76039743..30055f2b0d44 100644
--- a/drivers/mmc/core/host.c
+++ b/drivers/mmc/core/host.c
@@ -58,8 +58,7 @@ static ssize_t clkgate_delay_show(struct device *dev,
58 struct device_attribute *attr, char *buf) 58 struct device_attribute *attr, char *buf)
59{ 59{
60 struct mmc_host *host = cls_dev_to_mmc_host(dev); 60 struct mmc_host *host = cls_dev_to_mmc_host(dev);
61 return snprintf(buf, PAGE_SIZE, "%lu millisecs\n", 61 return snprintf(buf, PAGE_SIZE, "%lu\n", host->clkgate_delay);
62 host->clkgate_delay);
63} 62}
64 63
65static ssize_t clkgate_delay_store(struct device *dev, 64static ssize_t clkgate_delay_store(struct device *dev,
@@ -74,9 +73,6 @@ static ssize_t clkgate_delay_store(struct device *dev,
74 spin_lock_irqsave(&host->clk_lock, flags); 73 spin_lock_irqsave(&host->clk_lock, flags);
75 host->clkgate_delay = value; 74 host->clkgate_delay = value;
76 spin_unlock_irqrestore(&host->clk_lock, flags); 75 spin_unlock_irqrestore(&host->clk_lock, flags);
77
78 pr_info("%s: clock gate delay set to %lu ms\n",
79 mmc_hostname(host), value);
80 return count; 76 return count;
81} 77}
82 78