Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 201494
b: refs/heads/master
c: f5e2574
h: refs/heads/master
v: v3
  • Loading branch information
Rabin Vincent authored and Russell King committed Jul 27, 2010
1 parent a6e17fa commit 6b3e8bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 22 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: 528320db013b687c5f0150fd77eb4dc02ca328d1
refs/heads/master: f5e2574e734650bbeb801a31cc99e628f9a027af
22 changes: 1 addition & 21 deletions trunk/drivers/mmc/host/mmci.c
Original file line number Diff line number Diff line change
Expand Up @@ -567,18 +567,6 @@ static const struct mmc_host_ops mmci_ops = {
.get_cd = mmci_get_cd,
};

static void mmci_check_status(unsigned long data)
{
struct mmci_host *host = (struct mmci_host *)data;
unsigned int status = mmci_get_cd(host->mmc);

if (status ^ host->oldstat)
mmc_detect_change(host->mmc, 0);

host->oldstat = status;
mod_timer(&host->timer, jiffies + HZ);
}

static int __devinit mmci_probe(struct amba_device *dev, struct amba_id *id)
{
struct mmci_platform_data *plat = dev->dev.platform_data;
Expand Down Expand Up @@ -685,6 +673,7 @@ static int __devinit mmci_probe(struct amba_device *dev, struct amba_id *id)
if (host->vcc == NULL)
mmc->ocr_avail = plat->ocr_mask;
mmc->caps = plat->capabilities;
mmc->caps |= MMC_CAP_NEEDS_POLL;

/*
* We can do SGIO
Expand Down Expand Up @@ -750,20 +739,13 @@ static int __devinit mmci_probe(struct amba_device *dev, struct amba_id *id)
writel(MCI_IRQENABLE, host->base + MMCIMASK0);

amba_set_drvdata(dev, mmc);
host->oldstat = mmci_get_cd(host->mmc);

mmc_add_host(mmc);

dev_info(&dev->dev, "%s: MMCI rev %x cfg %02x at 0x%016llx irq %d,%d\n",
mmc_hostname(mmc), amba_rev(dev), amba_config(dev),
(unsigned long long)dev->res.start, dev->irq[0], dev->irq[1]);

init_timer(&host->timer);
host->timer.data = (unsigned long)host;
host->timer.function = mmci_check_status;
host->timer.expires = jiffies + HZ;
add_timer(&host->timer);

return 0;

irq0_free:
Expand Down Expand Up @@ -797,8 +779,6 @@ static int __devexit mmci_remove(struct amba_device *dev)
if (mmc) {
struct mmci_host *host = mmc_priv(mmc);

del_timer_sync(&host->timer);

mmc_remove_host(mmc);

writel(0, host->base + MMCIMASK0);
Expand Down

0 comments on commit 6b3e8bf

Please sign in to comment.