Commit 9df7eadf authored by Karol Lewandowski's avatar Karol Lewandowski Committed by Wolfram Sang

i2c-s3c2410: Drop unused define

Use standard of_match_ptr() to avoid defining variable unused
in non device tree builds.
Signed-off-by: default avatarKarol Lewandowski <k.lewandowsk@samsung.com>
Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
Acked-by: default avatarGrant Likely <grant.likely@secretlab.ca>
Signed-off-by: default avatarWolfram Sang <w.sang@pengutronix.de>
parent d48b97b4
...@@ -1128,8 +1128,6 @@ static const struct of_device_id s3c24xx_i2c_match[] = { ...@@ -1128,8 +1128,6 @@ static const struct of_device_id s3c24xx_i2c_match[] = {
{}, {},
}; };
MODULE_DEVICE_TABLE(of, s3c24xx_i2c_match); MODULE_DEVICE_TABLE(of, s3c24xx_i2c_match);
#else
#define s3c24xx_i2c_match NULL
#endif #endif
static struct platform_driver s3c24xx_i2c_driver = { static struct platform_driver s3c24xx_i2c_driver = {
...@@ -1140,7 +1138,7 @@ static struct platform_driver s3c24xx_i2c_driver = { ...@@ -1140,7 +1138,7 @@ static struct platform_driver s3c24xx_i2c_driver = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.name = "s3c-i2c", .name = "s3c-i2c",
.pm = S3C24XX_DEV_PM_OPS, .pm = S3C24XX_DEV_PM_OPS,
.of_match_table = s3c24xx_i2c_match, .of_match_table = of_match_ptr(s3c24xx_i2c_match),
}, },
}; };
......
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