From: Karol Lewandowski Date: Wed, 21 Mar 2012 19:11:51 +0000 (+0100) Subject: i2c-s3c2410: Drop unused define X-Git-Tag: firefly_0821_release~3680^2~2744^2~34 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9df7eadf80caea58b9854a8433cba543dbe3b161;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Kyungmin Park Acked-by: Grant Likely Signed-off-by: Wolfram Sang --- 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[] = { {}, }; MODULE_DEVICE_TABLE(of, s3c24xx_i2c_match); -#else -#define s3c24xx_i2c_match NULL #endif static struct platform_driver s3c24xx_i2c_driver = { @@ -1140,7 +1138,7 @@ static struct platform_driver s3c24xx_i2c_driver = { .owner = THIS_MODULE, .name = "s3c-i2c", .pm = S3C24XX_DEV_PM_OPS, - .of_match_table = s3c24xx_i2c_match, + .of_match_table = of_match_ptr(s3c24xx_i2c_match), }, };