Skip to content

Commit

Permalink
mmc: sh_mmcif: Remove .set_pwr() callback from platform data
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Laurent Pinchart authored and Chris Ball committed Aug 25, 2013
1 parent dcbfaf3 commit 83a0c77
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions drivers/mmc/host/sh_mmcif.c
Original file line number Diff line number Diff line change
Expand Up @@ -956,11 +956,8 @@ static int sh_mmcif_clk_update(struct sh_mmcif_host *host)

static void sh_mmcif_set_power(struct sh_mmcif_host *host, struct mmc_ios *ios)
{
struct sh_mmcif_plat_data *pd = host->pd->dev.platform_data;
struct mmc_host *mmc = host->mmc;

if (pd && pd->set_pwr)
pd->set_pwr(host->pd, ios->power_mode != MMC_POWER_OFF);
if (!IS_ERR(mmc->supply.vmmc))
/* Errors ignored... */
mmc_regulator_set_ocr(mmc, mmc->supply.vmmc,
Expand Down
1 change: 0 additions & 1 deletion include/linux/mmc/sh_mmcif.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
*/

struct sh_mmcif_plat_data {
void (*set_pwr)(struct platform_device *pdev, int state);
int (*get_cd)(struct platform_device *pdef);
unsigned int slave_id_tx; /* embedded slave_id_[tr]x */
unsigned int slave_id_rx;
Expand Down

0 comments on commit 83a0c77

Please sign in to comment.