Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18390
b: refs/heads/master
c: 4d0b653
h: refs/heads/master
v: v3
  • Loading branch information
Russell King authored and Greg Kroah-Hartman committed Jan 13, 2006
1 parent ac99528 commit ddbafa0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 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: 413b486e18587fd53c9954252e6648f9450c734e
refs/heads/master: 4d0b653cdfde193944784c01fa3359b0a444dcf1
26 changes: 12 additions & 14 deletions trunk/drivers/mmc/mmc_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,25 +136,15 @@ static int mmc_bus_resume(struct device *dev)
return ret;
}

static struct bus_type mmc_bus_type = {
.name = "mmc",
.dev_attrs = mmc_dev_attrs,
.match = mmc_bus_match,
.uevent = mmc_bus_uevent,
.suspend = mmc_bus_suspend,
.resume = mmc_bus_resume,
};


static int mmc_drv_probe(struct device *dev)
static int mmc_bus_probe(struct device *dev)
{
struct mmc_driver *drv = to_mmc_driver(dev->driver);
struct mmc_card *card = dev_to_mmc_card(dev);

return drv->probe(card);
}

static int mmc_drv_remove(struct device *dev)
static int mmc_bus_remove(struct device *dev)
{
struct mmc_driver *drv = to_mmc_driver(dev->driver);
struct mmc_card *card = dev_to_mmc_card(dev);
Expand All @@ -164,6 +154,16 @@ static int mmc_drv_remove(struct device *dev)
return 0;
}

static struct bus_type mmc_bus_type = {
.name = "mmc",
.dev_attrs = mmc_dev_attrs,
.match = mmc_bus_match,
.uevent = mmc_bus_uevent,
.probe = mmc_bus_probe,
.remove = mmc_bus_remove,
.suspend = mmc_bus_suspend,
.resume = mmc_bus_resume,
};

/**
* mmc_register_driver - register a media driver
Expand All @@ -172,8 +172,6 @@ static int mmc_drv_remove(struct device *dev)
int mmc_register_driver(struct mmc_driver *drv)
{
drv->drv.bus = &mmc_bus_type;
drv->drv.probe = mmc_drv_probe;
drv->drv.remove = mmc_drv_remove;
return driver_register(&drv->drv);
}

Expand Down

0 comments on commit ddbafa0

Please sign in to comment.