Skip to content

Commit d7b2b93

Browse files
krzkjwrdegoede
authored andcommitted
platform/olpc: olpc-xo175-ec: Use SPI device ID data to bind device
The driver defines spi_device_id table for module autoloading, but does not use it in id_table which causes W=1 warning: drivers/platform/olpc/olpc-xo175-ec.c:737:35: error: ‘olpc_xo175_ec_id_table’ defined but not used [-Werror=unused-const-variable=] Reference the SPI device ID table, so it can be also used for device binding. Signed-off-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Hans de Goede <[email protected]> Signed-off-by: Hans de Goede <[email protected]>
1 parent fd3c358 commit d7b2b93

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/platform/olpc/olpc-xo175-ec.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -746,6 +746,7 @@ static struct spi_driver olpc_xo175_ec_spi_driver = {
746746
.of_match_table = olpc_xo175_ec_of_match,
747747
.pm = &olpc_xo175_ec_pm_ops,
748748
},
749+
.id_table = olpc_xo175_ec_id_table,
749750
.probe = olpc_xo175_ec_probe,
750751
.remove = olpc_xo175_ec_remove,
751752
};

0 commit comments

Comments
 (0)