]> Pileus Git - ~andy/linux/blobdiff - drivers/tty/serial/efm32-uart.c
serial/efm32-uart: make of_device_id array const
[~andy/linux] / drivers / tty / serial / efm32-uart.c
index 7d199c8e1a750949ccb0edae4d2c730eea790bb9..868dbfb9f89352577335a20dd654d745e4ea9b79 100644 (file)
@@ -778,8 +778,6 @@ static int efm32_uart_remove(struct platform_device *pdev)
 {
        struct efm32_uart_port *efm_port = platform_get_drvdata(pdev);
 
-       platform_set_drvdata(pdev, NULL);
-
        uart_remove_one_port(&efm32_uart_reg, &efm_port->port);
 
        if (pdev->id >= 0 && pdev->id < ARRAY_SIZE(efm32_uart_ports))
@@ -790,7 +788,7 @@ static int efm32_uart_remove(struct platform_device *pdev)
        return 0;
 }
 
-static struct of_device_id efm32_uart_dt_ids[] = {
+static const struct of_device_id efm32_uart_dt_ids[] = {
        {
                .compatible = "efm32,uart",
        }, {