aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarol Lewandowski <k.lewandowsk@samsung.com>2012-03-21 15:11:51 -0400
committerWolfram Sang <w.sang@pengutronix.de>2012-05-12 08:28:11 -0400
commit9df7eadf80caea58b9854a8433cba543dbe3b161 (patch)
treeda8db9835559088bae2831c4dc1f90aeb48f48ab
parentd48b97b403d23f6df0b990cee652bdf9a52337a3 (diff)
i2c-s3c2410: Drop unused define
Use standard of_match_ptr() to avoid defining variable unused in non device tree builds. Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Acked-by: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
-rw-r--r--drivers/i2c/busses/i2c-s3c2410.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/i2c/busses/i2c-s3c2410.c b/drivers/i2c/busses/i2c-s3c2410.c
index 737f7218a32c..85e3664f411e 100644
--- a/drivers/i2c/busses/i2c-s3c2410.c
+++ b/drivers/i2c/busses/i2c-s3c2410.c
@@ -1128,8 +1128,6 @@ static const struct of_device_id s3c24xx_i2c_match[] = {
1128 {}, 1128 {},
1129}; 1129};
1130MODULE_DEVICE_TABLE(of, s3c24xx_i2c_match); 1130MODULE_DEVICE_TABLE(of, s3c24xx_i2c_match);
1131#else
1132#define s3c24xx_i2c_match NULL
1133#endif 1131#endif
1134 1132
1135static struct platform_driver s3c24xx_i2c_driver = { 1133static struct platform_driver s3c24xx_i2c_driver = {
@@ -1140,7 +1138,7 @@ static struct platform_driver s3c24xx_i2c_driver = {
1140 .owner = THIS_MODULE, 1138 .owner = THIS_MODULE,
1141 .name = "s3c-i2c", 1139 .name = "s3c-i2c",
1142 .pm = S3C24XX_DEV_PM_OPS, 1140 .pm = S3C24XX_DEV_PM_OPS,
1143 .of_match_table = s3c24xx_i2c_match, 1141 .of_match_table = of_match_ptr(s3c24xx_i2c_match),
1144 }, 1142 },
1145}; 1143};
1146 1144