aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/sdhci-s3c.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2014-04-25 07:57:07 -0400
committerChris Ball <chris@printf.net>2014-05-22 07:26:27 -0400
commit2317f56c055fcad524bf6a873df48a754e7ebc4d (patch)
tree7b98b1deb93326d1dd2a5410d35a054d497a4ec3 /drivers/mmc/host/sdhci-s3c.c
parent5b4f1f6c496aa3a90b617d1319274bf2017e639d (diff)
mmc: sdhci: convert generic bus width setup to library function
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Tested-by: Markus Pargmann <mpa@pengutronix.de> Tested-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Chris Ball <chris@printf.net>
Diffstat (limited to 'drivers/mmc/host/sdhci-s3c.c')
-rw-r--r--drivers/mmc/host/sdhci-s3c.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/mmc/host/sdhci-s3c.c b/drivers/mmc/host/sdhci-s3c.c
index c12301e90d16..c37a2fe17441 100644
--- a/drivers/mmc/host/sdhci-s3c.c
+++ b/drivers/mmc/host/sdhci-s3c.c
@@ -326,14 +326,14 @@ static void sdhci_cmu_set_clock(struct sdhci_host *host, unsigned int clock)
326} 326}
327 327
328/** 328/**
329 * sdhci_s3c_platform_bus_width - support 8bit buswidth 329 * sdhci_s3c_set_bus_width - support 8bit buswidth
330 * @host: The SDHCI host being queried 330 * @host: The SDHCI host being queried
331 * @width: MMC_BUS_WIDTH_ macro for the bus width being requested 331 * @width: MMC_BUS_WIDTH_ macro for the bus width being requested
332 * 332 *
333 * We have 8-bit width support but is not a v3 controller. 333 * We have 8-bit width support but is not a v3 controller.
334 * So we add platform_bus_width() and support 8bit width. 334 * So we add platform_bus_width() and support 8bit width.
335 */ 335 */
336static int sdhci_s3c_platform_bus_width(struct sdhci_host *host, int width) 336static void sdhci_s3c_set_bus_width(struct sdhci_host *host, int width)
337{ 337{
338 u8 ctrl; 338 u8 ctrl;
339 339
@@ -355,15 +355,13 @@ static int sdhci_s3c_platform_bus_width(struct sdhci_host *host, int width)
355 } 355 }
356 356
357 sdhci_writeb(host, ctrl, SDHCI_HOST_CONTROL); 357 sdhci_writeb(host, ctrl, SDHCI_HOST_CONTROL);
358
359 return 0;
360} 358}
361 359
362static struct sdhci_ops sdhci_s3c_ops = { 360static struct sdhci_ops sdhci_s3c_ops = {
363 .get_max_clock = sdhci_s3c_get_max_clk, 361 .get_max_clock = sdhci_s3c_get_max_clk,
364 .set_clock = sdhci_s3c_set_clock, 362 .set_clock = sdhci_s3c_set_clock,
365 .get_min_clock = sdhci_s3c_get_min_clock, 363 .get_min_clock = sdhci_s3c_get_min_clock,
366 .platform_bus_width = sdhci_s3c_platform_bus_width, 364 .set_bus_width = sdhci_s3c_set_bus_width,
367}; 365};
368 366
369static void sdhci_s3c_notify_change(struct platform_device *dev, int state) 367static void sdhci_s3c_notify_change(struct platform_device *dev, int state)