projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db6e1fd
)
greybus: i2c: tie to the proper place on the greybus_device
author
Greg Kroah-Hartman
<greg@kroah.com>
Sat, 30 Aug 2014 23:49:05 +0000
(16:49 -0700)
committer
Greg Kroah-Hartman
<greg@kroah.com>
Sat, 30 Aug 2014 23:49:05 +0000
(16:49 -0700)
drivers/staging/greybus/i2c-gb.c
patch
|
blob
|
history
diff --git
a/drivers/staging/greybus/i2c-gb.c
b/drivers/staging/greybus/i2c-gb.c
index
929243e
..
8b99e8a
100644
(file)
--- a/
drivers/staging/greybus/i2c-gb.c
+++ b/
drivers/staging/greybus/i2c-gb.c
@@
-107,7
+107,7
@@
int gb_i2c_probe(struct greybus_device *gdev,
i2c_gb_dev->gdev = gdev;
i2c_gb_dev->adapter = adapter;
- g
reybus_set_drvdata(gdev, i2c_gb_dev)
;
+ g
dev->gb_i2c_dev = i2c_gb_dev
;
return 0;
error:
kfree(adapter);
@@
-119,7
+119,7
@@
void gb_i2c_disconnect(struct greybus_device *gdev)
{
struct gb_i2c_device *i2c_gb_dev;
- i2c_gb_dev = g
reybus_get_drvdata(gdev)
;
+ i2c_gb_dev = g
dev->gb_i2c_dev
;
i2c_del_adapter(i2c_gb_dev->adapter);
kfree(i2c_gb_dev->adapter);
kfree(i2c_gb_dev);