Skip to contentSkip to conversation

tty/serial: (8250) Fix initialization warning

PATCH New Guenter Roeck 1 participant 1 message May 26, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tty/serial: (8250) Fix initialization warning

This commit fixes the following build warning by updating the offending function parameter of pci_omegapci_setup().

drivers/tty/serial/8250_pci.c:1457: warning: initialization from incompatible pointer type

---
 drivers/tty/serial/8250_pci.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/tty/serial/8250_pci.c +1 -1
index 4b4968a..78e98a5 100644
@@ -973,7 +973,7 @@ ce4100_serial_setup(struct serial_private *priv,
 
 static int
 pci_omegapci_setup(struct serial_private *priv,
-		      struct pciserial_board *board,
+		      const struct pciserial_board *board,
 		      struct uart_port *port, int idx)
 {
 	return setup_port(priv, port, 2, idx * 8, 0);
Signature · 1 line
1.7.1