PCI: microchip: Add a missing semicolon
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Wed, 20 Apr 2022 06:58:32 +0000 (08:58 +0200)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Mon, 25 Apr 2022 13:00:49 +0000 (14:00 +0100)
If the driver is configured as a module (after allowing this by changing
PCIE_MICROCHIP_HOST from bool to tristate) the missing semicolon makes the
compiler very unhappy. While there isn't a real problem as
MODULE_DEVICE_TABLE always evaluates to nothing for a built-in driver,
do it right for consistency with other drivers.

Link: https://lore.kernel.org/r/20220420065832.14173-1-u.kleine-koenig@pengutronix.de
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Daire McNamara <daire.mcnamara@microchip.com>
drivers/pci/controller/pcie-microchip-host.c

index 29d8e81e4181072b5ce33e979a9ea31f2aef1389..4b1e130f88a34a0569b62494aa4c653f9cf89a08 100644 (file)
@@ -1115,7 +1115,7 @@ static const struct of_device_id mc_pcie_of_match[] = {
        {},
 };
 
-MODULE_DEVICE_TABLE(of, mc_pcie_of_match)
+MODULE_DEVICE_TABLE(of, mc_pcie_of_match);
 
 static struct platform_driver mc_pcie_driver = {
        .probe = pci_host_common_probe,