]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
crypto: atmel-sha204a - drop __maybe_unused and of_match_ptr
authorThorsten Blum <thorsten.blum@linux.dev>
Sat, 9 May 2026 10:11:55 +0000 (12:11 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 15 May 2026 10:08:48 +0000 (18:08 +0800)
Since MODULE_DEVICE_TABLE() keeps atmel_sha204a_dt_ids referenced, drop
the unnecessary __maybe_unused annotation. Also remove of_match_ptr()
because OF matching is stubbed out when CONFIG_OF=n.

Reformat atmel_sha204a_dt_ids to silence a checkpatch error and
atmel_sha204a_id for consistency.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/atmel-sha204a.c

index ed7d69bf6890987f358f5ebe0f21273493dce541..6e6ac4770416eeb5a7d575a8ead67e693be57a0a 100644 (file)
@@ -207,17 +207,17 @@ static void atmel_sha204a_remove(struct i2c_client *client)
        kfree((void *)i2c_priv->hwrng.priv);
 }
 
-static const struct of_device_id atmel_sha204a_dt_ids[] __maybe_unused = {
+static const struct of_device_id atmel_sha204a_dt_ids[] = {
        { .compatible = "atmel,atsha204", .data = &atsha204_quality },
        { .compatible = "atmel,atsha204a", },
-       { /* sentinel */ }
+       { }
 };
 MODULE_DEVICE_TABLE(of, atmel_sha204a_dt_ids);
 
 static const struct i2c_device_id atmel_sha204a_id[] = {
        { "atsha204", (kernel_ulong_t)&atsha204_quality },
        { "atsha204a" },
-       { /* sentinel */ }
+       { }
 };
 MODULE_DEVICE_TABLE(i2c, atmel_sha204a_id);
 
@@ -227,7 +227,7 @@ static struct i2c_driver atmel_sha204a_driver = {
        .id_table               = atmel_sha204a_id,
 
        .driver.name            = "atmel-sha204a",
-       .driver.of_match_table  = of_match_ptr(atmel_sha204a_dt_ids),
+       .driver.of_match_table  = atmel_sha204a_dt_ids,
 };
 
 static int __init atmel_sha204a_init(void)