|
@@ -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),
|
|
|
},
|
|
|
};
|
|
|
|