Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 270250
b: refs/heads/master
c: e91957e
h: refs/heads/master
v: v3
  • Loading branch information
Alexander Tarasikov authored and Chris Ball committed Oct 26, 2011
1 parent 1e57ec1 commit 9db351d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 435f3e385962e2b34855e9b34f8b95717c1016a2
refs/heads/master: e91957e70d2aea529ff2055b8fbd575f2d7b8c3b
9 changes: 1 addition & 8 deletions trunk/arch/arm/mach-msm/include/mach/mmc.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,6 @@
#include <linux/mmc/card.h>
#include <linux/mmc/sdio_func.h>

struct embedded_sdio_data {
struct sdio_cis cis;
struct sdio_cccr cccr;
struct sdio_embedded_func *funcs;
int num_funcs;
};

struct msm_mmc_gpio {
unsigned no;
const char *name;
Expand All @@ -29,9 +22,9 @@ struct msm_mmc_platform_data {
unsigned int ocr_mask; /* available voltages */
u32 (*translate_vdd)(struct device *, unsigned int);
unsigned int (*status)(struct device *);
struct embedded_sdio_data *embedded_sdio;
int (*register_status_notify)(void (*callback)(int card_present, void *dev_id), void *dev_id);
struct msm_mmc_gpio_data *gpio_data;
void (*init_card)(struct mmc_card *card);
};

#endif
9 changes: 9 additions & 0 deletions trunk/drivers/mmc/host/msm_sdcc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1052,10 +1052,19 @@ static void msmsdcc_enable_sdio_irq(struct mmc_host *mmc, int enable)
spin_unlock_irqrestore(&host->lock, flags);
}

static void msmsdcc_init_card(struct mmc_host *mmc, struct mmc_card *card)
{
struct msmsdcc_host *host = mmc_priv(mmc);

if (host->plat->init_card)
host->plat->init_card(card);
}

static const struct mmc_host_ops msmsdcc_ops = {
.request = msmsdcc_request,
.set_ios = msmsdcc_set_ios,
.enable_sdio_irq = msmsdcc_enable_sdio_irq,
.init_card = msmsdcc_init_card,
};

static void
Expand Down

0 comments on commit 9db351d

Please sign in to comment.