Input: atmel_captouch - drop obsolete dependency on COMPILE_TEST
[platform/kernel/linux-starfive.git] / drivers / input / misc / atmel_captouch.c
index 051aded..156c699 100644 (file)
@@ -249,7 +249,6 @@ static int atmel_captouch_probe(struct i2c_client *client,
        return 0;
 }
 
-#ifdef CONFIG_OF
 static const struct of_device_id atmel_captouch_of_id[] = {
        {
                .compatible = "atmel,captouch",
@@ -257,7 +256,6 @@ static const struct of_device_id atmel_captouch_of_id[] = {
        { /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, atmel_captouch_of_id);
-#endif
 
 static const struct i2c_device_id atmel_captouch_id[] = {
        { "atmel_captouch", 0 },
@@ -270,7 +268,7 @@ static struct i2c_driver atmel_captouch_driver = {
        .id_table       = atmel_captouch_id,
        .driver         = {
                .name   = "atmel_captouch",
-               .of_match_table = of_match_ptr(atmel_captouch_of_id),
+               .of_match_table = atmel_captouch_of_id,
        },
 };
 module_i2c_driver(atmel_captouch_driver);