Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18381
b: refs/heads/master
c: c6a0919
h: refs/heads/master
i:
  18379: 55531ce
v: v3
  • Loading branch information
Russell King authored and Greg Kroah-Hartman committed Jan 13, 2006
1 parent c9205fa commit a39f613
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 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: 91fb53866d00b4eaeaf1cbfd2237799cb152f742
refs/heads/master: c6a09196bab3bc9e515b713193d61e3e87c720f7
34 changes: 17 additions & 17 deletions trunk/arch/sh/kernel/cpu/bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,6 @@ static int sh_bus_resume(struct device *dev)
return 0;
}

static struct device sh_bus_devices[SH_NR_BUSES] = {
{
.bus_id = SH_BUS_NAME_VIRT,
},
};

struct bus_type sh_bus_types[SH_NR_BUSES] = {
{
.name = SH_BUS_NAME_VIRT,
.match = sh_bus_match,
.suspend = sh_bus_suspend,
.resume = sh_bus_resume,
},
};

static int sh_device_probe(struct device *dev)
{
struct sh_dev *shdev = to_sh_dev(dev);
Expand All @@ -90,6 +75,23 @@ static int sh_device_remove(struct device *dev)
return 0;
}

static struct device sh_bus_devices[SH_NR_BUSES] = {
{
.bus_id = SH_BUS_NAME_VIRT,
},
};

struct bus_type sh_bus_types[SH_NR_BUSES] = {
{
.name = SH_BUS_NAME_VIRT,
.match = sh_bus_match,
.probe = sh_bus_probe,
.remove = sh_bus_remove,
.suspend = sh_bus_suspend,
.resume = sh_bus_resume,
},
};

int sh_device_register(struct sh_dev *dev)
{
if (!dev)
Expand Down Expand Up @@ -133,8 +135,6 @@ int sh_driver_register(struct sh_driver *drv)
return -EINVAL;
}

drv->drv.probe = sh_device_probe;
drv->drv.remove = sh_device_remove;
drv->drv.bus = &sh_bus_types[drv->bus_id];

return driver_register(&drv->drv);
Expand Down

0 comments on commit a39f613

Please sign in to comment.