Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 45445
b: refs/heads/master
c: a26b498
h: refs/heads/master
i:
  45443: c6126d8
v: v3
  • Loading branch information
David Brownell authored and Pierre Ossman committed Jan 4, 2007
1 parent b96dcbf commit 271b0f5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 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: 3947a3907f9cb88ebd492b6348a251036c4e81c7
refs/heads/master: a26b498c96f87130559005151539f5fd9e43fff6
11 changes: 5 additions & 6 deletions trunk/drivers/mmc/at91_mci.c
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ static irqreturn_t at91_mmc_det_irq(int irq, void *_host)
return IRQ_HANDLED;
}

int at91_mci_get_ro(struct mmc_host *mmc)
static int at91_mci_get_ro(struct mmc_host *mmc)
{
int read_only = 0;
struct at91mci_host *host = mmc_priv(mmc);
Expand All @@ -794,7 +794,7 @@ static const struct mmc_host_ops at91_mci_ops = {
/*
* Probe for the device
*/
static int at91_mci_probe(struct platform_device *pdev)
static int __init at91_mci_probe(struct platform_device *pdev)
{
struct mmc_host *mmc;
struct at91mci_host *host;
Expand Down Expand Up @@ -910,7 +910,7 @@ static int at91_mci_probe(struct platform_device *pdev)
/*
* Remove a device
*/
static int at91_mci_remove(struct platform_device *pdev)
static int __exit at91_mci_remove(struct platform_device *pdev)
{
struct mmc_host *mmc = platform_get_drvdata(pdev);
struct at91mci_host *host;
Expand Down Expand Up @@ -972,8 +972,7 @@ static int at91_mci_resume(struct platform_device *pdev)
#endif

static struct platform_driver at91_mci_driver = {
.probe = at91_mci_probe,
.remove = at91_mci_remove,
.remove = __exit_p(at91_mci_remove),
.suspend = at91_mci_suspend,
.resume = at91_mci_resume,
.driver = {
Expand All @@ -984,7 +983,7 @@ static struct platform_driver at91_mci_driver = {

static int __init at91_mci_init(void)
{
return platform_driver_register(&at91_mci_driver);
return platform_driver_probe(&at91_mci_driver, at91_mci_probe);
}

static void __exit at91_mci_exit(void)
Expand Down

0 comments on commit 271b0f5

Please sign in to comment.