Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18385
b: refs/heads/master
c: b864c7d
h: refs/heads/master
i:
  18383: 8bf41aa
v: v3
  • Loading branch information
Russell King authored and Greg Kroah-Hartman committed Jan 13, 2006
1 parent 7962ff8 commit 8c130a0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 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: 5b34bf88779fa965a134b92ab61688e0d1ddfe1d
refs/heads/master: b864c7d5d17c171c4ead0791b44ab05d7a21dc0c
20 changes: 9 additions & 11 deletions trunk/drivers/i2c/i2c-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,6 @@ static int i2c_bus_resume(struct device * dev)
return rc;
}

struct bus_type i2c_bus_type = {
.name = "i2c",
.match = i2c_device_match,
.suspend = i2c_bus_suspend,
.resume = i2c_bus_resume,
};

static int i2c_device_probe(struct device *dev)
{
return -ENODEV;
Expand All @@ -80,6 +73,15 @@ static int i2c_device_remove(struct device *dev)
return 0;
}

struct bus_type i2c_bus_type = {
.name = "i2c",
.match = i2c_device_match,
.probe = i2c_device_probe,
.remove = i2c_device_remove,
.suspend = i2c_bus_suspend,
.resume = i2c_bus_resume,
};

void i2c_adapter_dev_release(struct device *dev)
{
struct i2c_adapter *adap = dev_to_i2c_adapter(dev);
Expand All @@ -90,8 +92,6 @@ struct device_driver i2c_adapter_driver = {
.owner = THIS_MODULE,
.name = "i2c_adapter",
.bus = &i2c_bus_type,
.probe = i2c_device_probe,
.remove = i2c_device_remove,
};

static void i2c_adapter_class_dev_release(struct class_device *dev)
Expand Down Expand Up @@ -294,8 +294,6 @@ int i2c_register_driver(struct module *owner, struct i2c_driver *driver)
/* add the driver to the list of i2c drivers in the driver core */
driver->driver.owner = owner;
driver->driver.bus = &i2c_bus_type;
driver->driver.probe = i2c_device_probe;
driver->driver.remove = i2c_device_remove;

res = driver_register(&driver->driver);
if (res)
Expand Down

0 comments on commit 8c130a0

Please sign in to comment.