Commit f72487e7 authored by Balaji T K's avatar Balaji T K Committed by Ben Dooks

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: default avatarBalaji T K <balajitk@ti.com>
Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
parent adf6e079
...@@ -1160,8 +1160,9 @@ static struct dev_pm_ops omap_i2c_pm_ops = { ...@@ -1160,8 +1160,9 @@ static struct dev_pm_ops omap_i2c_pm_ops = {
.suspend = omap_i2c_suspend, .suspend = omap_i2c_suspend,
.resume = omap_i2c_resume, .resume = omap_i2c_resume,
}; };
#define OMAP_I2C_PM_OPS (&omap_i2c_pm_ops)
#else #else
#define omap_i2c_pm_ops NULL #define OMAP_I2C_PM_OPS NULL
#endif #endif
static struct platform_driver omap_i2c_driver = { static struct platform_driver omap_i2c_driver = {
...@@ -1170,7 +1171,7 @@ static struct platform_driver omap_i2c_driver = { ...@@ -1170,7 +1171,7 @@ static struct platform_driver omap_i2c_driver = {
.driver = { .driver = {
.name = "omap_i2c", .name = "omap_i2c",
.owner = THIS_MODULE, .owner = THIS_MODULE,
.pm = &omap_i2c_pm_ops, .pm = OMAP_I2C_PM_OPS,
}, },
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment