Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 106653
b: refs/heads/master
c: 1efe7c5
h: refs/heads/master
i:
  106651: 8ec410d
v: v3
  • Loading branch information
Ben Dooks committed Jul 28, 2008
1 parent a57f12b commit f027f3f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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: 399dee2371787825a1845de87c0cbee7b7c30ad6
refs/heads/master: 1efe7c55d2c4acc6c1d1c1a68bd9070f13815272
9 changes: 5 additions & 4 deletions trunk/drivers/i2c/busses/i2c-gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ static int i2c_gpio_getscl(void *data)
return gpio_get_value(pdata->scl_pin);
}

static int __init i2c_gpio_probe(struct platform_device *pdev)
static int __devinit i2c_gpio_probe(struct platform_device *pdev)
{
struct i2c_gpio_platform_data *pdata;
struct i2c_algo_bit_data *bit_data;
Expand Down Expand Up @@ -174,7 +174,7 @@ static int __init i2c_gpio_probe(struct platform_device *pdev)
return ret;
}

static int __exit i2c_gpio_remove(struct platform_device *pdev)
static int __devexit i2c_gpio_remove(struct platform_device *pdev)
{
struct i2c_gpio_platform_data *pdata;
struct i2c_adapter *adap;
Expand All @@ -196,14 +196,15 @@ static struct platform_driver i2c_gpio_driver = {
.name = "i2c-gpio",
.owner = THIS_MODULE,
},
.remove = __exit_p(i2c_gpio_remove),
.probe = i2c_gpio_probe,
.remove = __devexit_p(i2c_gpio_remove),
};

static int __init i2c_gpio_init(void)
{
int ret;

ret = platform_driver_probe(&i2c_gpio_driver, i2c_gpio_probe);
ret = platform_driver_register(&i2c_gpio_driver);
if (ret)
printk(KERN_ERR "i2c-gpio: probe failed: %d\n", ret);

Expand Down

0 comments on commit f027f3f

Please sign in to comment.