]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
virt: arm-cca-guest: Drop unused assignment of platform_device_id driver data
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Wed, 17 Jun 2026 10:28:26 +0000 (12:28 +0200)
committerWill Deacon <will@kernel.org>
Wed, 22 Jul 2026 20:19:45 +0000 (20:19 +0000)
The driver explicitly sets the .driver_data member of struct
platform_device_id to zero without relying on that value. Drop this
unused assignment.

While touching this array use a named initializer for .name.

Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Signed-off-by: Will Deacon <will@kernel.org>
drivers/virt/coco/arm-cca-guest/arm-cca-guest.c

index dbbb2cc0e124a2526d144bbc4380929e916d5034..0eeddd1ff05b51426a126e54606a67a2e86b5a1e 100644 (file)
@@ -198,7 +198,7 @@ module_exit(arm_cca_guest_exit);
 
 /* modalias, so userspace can autoload this module when RSI is available */
 static const struct platform_device_id arm_cca_match[] __maybe_unused = {
-       { RSI_PDEV_NAME, 0},
+       { .name = RSI_PDEV_NAME },
        { }
 };