aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c/busses/i2c-omap.c
diff options
context:
space:
mode:
authorBalaji T K <balajitk@ti.com>2011-02-22 01:55:39 -0500
committerBen Dooks <ben-linux@fluff.org>2011-02-22 19:39:45 -0500
commitf72487e7a1827f5e95425b80ec4fcc4f928329e8 (patch)
tree8a17c836ea249ef61ffe275953aa27eb061e6d58 /drivers/i2c/busses/i2c-omap.c
parentadf6e07922255937c8bfeea777d19502b4c9a2be (diff)
i2c-omap: fix build for !CONFIG_SUSPEND
fix the build break when !CONFIG_SUSPEND drivers/i2c/busses/i2c-omap.c:1173: error: lvalue required as unary '&' operand make[3]: *** [drivers/i2c/busses/i2c-omap.o] Error 1 make[2]: *** [drivers/i2c/busses] Error 2 make[1]: *** [drivers/i2c] Error 2 make: *** [drivers] Error 2 Signed-off-by: Balaji T K <balajitk@ti.com> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'drivers/i2c/busses/i2c-omap.c')
-rw-r--r--drivers/i2c/busses/i2c-omap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c
index 0541df90b9fb..adc1ee53b1a1 100644
--- a/drivers/i2c/busses/i2c-omap.c
+++ b/drivers/i2c/busses/i2c-omap.c
@@ -1160,8 +1160,9 @@ static struct dev_pm_ops omap_i2c_pm_ops = {
1160 .suspend = omap_i2c_suspend, 1160 .suspend = omap_i2c_suspend,
1161 .resume = omap_i2c_resume, 1161 .resume = omap_i2c_resume,
1162}; 1162};
1163#define OMAP_I2C_PM_OPS (&omap_i2c_pm_ops)
1163#else 1164#else
1164#define omap_i2c_pm_ops NULL 1165#define OMAP_I2C_PM_OPS NULL
1165#endif 1166#endif
1166 1167
1167static struct platform_driver omap_i2c_driver = { 1168static struct platform_driver omap_i2c_driver = {
@@ -1170,7 +1171,7 @@ static struct platform_driver omap_i2c_driver = {
1170 .driver = { 1171 .driver = {
1171 .name = "omap_i2c", 1172 .name = "omap_i2c",
1172 .owner = THIS_MODULE, 1173 .owner = THIS_MODULE,
1173 .pm = &omap_i2c_pm_ops, 1174 .pm = OMAP_I2C_PM_OPS,
1174 }, 1175 },
1175}; 1176};
1176 1177