Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 220591
b: refs/heads/master
c: 777271d
h: refs/heads/master
i:
  220589: adcef9c
  220587: 902b411
  220583: d003c48
  220575: 612d688
v: v3
  • Loading branch information
Arnd Hannemann authored and Samuel Ortiz committed Oct 28, 2010
1 parent f0d193a commit 6a0c408
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 998283e2e359249133f2f47db26669a55ff25c98
refs/heads/master: 777271d0f33da306575ef776c75f66fc27246bf0
12 changes: 12 additions & 0 deletions trunk/drivers/mmc/host/sh_mmcif.c
Original file line number Diff line number Diff line change
Expand Up @@ -710,9 +710,21 @@ static void sh_mmcif_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
host->bus_width = ios->bus_width;
}

static int sh_mmcif_get_cd(struct mmc_host *mmc)
{
struct sh_mmcif_host *host = mmc_priv(mmc);
struct sh_mmcif_plat_data *p = host->pd->dev.platform_data;

if (!p->get_cd)
return -ENOSYS;
else
return p->get_cd(host->pd);
}

static struct mmc_host_ops sh_mmcif_ops = {
.request = sh_mmcif_request,
.set_ios = sh_mmcif_set_ios,
.get_cd = sh_mmcif_get_cd,
};

static void sh_mmcif_detect(struct mmc_host *mmc)
Expand Down
1 change: 1 addition & 0 deletions trunk/include/linux/mmc/sh_mmcif.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
struct sh_mmcif_plat_data {
void (*set_pwr)(struct platform_device *pdev, int state);
void (*down_pwr)(struct platform_device *pdev);
int (*get_cd)(struct platform_device *pdef);
u8 sup_pclk; /* 1 :SH7757, 0: SH7724/SH7372 */
unsigned long caps;
u32 ocr;
Expand Down

0 comments on commit 6a0c408

Please sign in to comment.