Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mmc: sh_mobile_sdhi: Remove .set_pwr() callback from platform data

The .set_pwr() callback isn't used anymore as all platforms register
GPIO-controlled regulators. Remove it.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Chris Ball <cjb@laptop.org>

authored by

Laurent Pinchart and committed by
Chris Ball
1036563e 57fcb523

-10
-9
drivers/mmc/host/sh_mobile_sdhi.c
··· 70 70 clk_disable(priv->clk); 71 71 } 72 72 73 - static void sh_mobile_sdhi_set_pwr(struct platform_device *pdev, int state) 74 - { 75 - struct sh_mobile_sdhi_info *p = pdev->dev.platform_data; 76 - 77 - p->set_pwr(pdev, state); 78 - } 79 - 80 73 static int sh_mobile_sdhi_wait_idle(struct tmio_mmc_host *host) 81 74 { 82 75 int timeout = 1000; ··· 166 173 mmc_data->capabilities |= p->tmio_caps; 167 174 mmc_data->capabilities2 |= p->tmio_caps2; 168 175 mmc_data->cd_gpio = p->cd_gpio; 169 - if (p->set_pwr) 170 - mmc_data->set_pwr = sh_mobile_sdhi_set_pwr; 171 176 172 177 if (p->dma_slave_tx > 0 && p->dma_slave_rx > 0) { 173 178 /*
-1
include/linux/mmc/sh_mobile_sdhi.h
··· 25 25 unsigned long tmio_caps2; 26 26 u32 tmio_ocr_mask; /* available MMC voltages */ 27 27 unsigned int cd_gpio; 28 - void (*set_pwr)(struct platform_device *pdev, int state); 29 28 30 29 /* callbacks for board specific setup code */ 31 30 int (*init)(struct platform_device *pdev,