Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fc7900bb authored by Sylvain Munaut's avatar Sylvain Munaut Committed by Paul Mackerras
Browse files

[POWERPC] Dispose irq mapping when done in mpc52xx_serial.c

parent 5d30bf30
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -995,8 +995,10 @@ mpc52xx_uart_of_remove(struct of_device *op)
	struct uart_port *port = dev_get_drvdata(&op->dev);
	dev_set_drvdata(&op->dev, NULL);

	if (port)
	if (port) {
		uart_remove_one_port(&mpc52xx_uart_driver, port);
		irq_dispose_mapping(port->irq);
	}

	return 0;
}