diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2011-02-11 17:50:38 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-04-26 15:52:04 -0700 |
commit | a1f17d92a8add42bf061bead6ac5bf9387ff0b2a (patch) | |
tree | 2704a07cc13f85299b825ee2050990d25e0ca316 /include | |
parent | f230e7096c251955df201fc96ba6b3d62560067f (diff) |
i2c: tegra: i2c-slave: Fixing initialization seq
Following are changes:
- Using the sysinit_call to initialize the driver.
- Using device from master adapter for slave adpter.
Original-Change-Id: I4dd0725694008a6aaee9a1d3a92d370a5c46de31
Reviewed-on: http://git-master/r/19249
Reviewed-by: Krishna Thota <kthota@nvidia.com>
Tested-by: Krishna Thota <kthota@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Change-Id: I62ba2e474d15764eccb2174444b194502e771307
Diffstat (limited to 'include')
-rwxr-xr-x | include/linux/i2c-slave.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/linux/i2c-slave.h b/include/linux/i2c-slave.h index 168671dc2df7..34df64f73f6f 100755 --- a/include/linux/i2c-slave.h +++ b/include/linux/i2c-slave.h @@ -167,7 +167,8 @@ struct i2c_slave_adapter { int timeout; /* in jiffies */ int retries; - struct device dev; /* the adapter device */ + struct device *dev; /* the adapter device */ + struct device *parent_dev; /* the adapter device */ int nr; char name[48]; @@ -176,13 +177,13 @@ struct i2c_slave_adapter { static inline void *i2c_get_slave_adapdata(const struct i2c_slave_adapter *dev) { - return dev_get_drvdata(&dev->dev); + return dev_get_drvdata(dev->dev); } static inline void i2c_set_slave_adapdata(struct i2c_slave_adapter *dev, void *data) { - dev_set_drvdata(&dev->dev, data); + dev_set_drvdata(dev->dev, data); } /* |