lkml.org 
[lkml]   [2011]   [May]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] 8250_pci: Fix build warning
Date
Fix

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

by constifying the serial board :).

Cc: Antony Pavlov <antony@niisi.msk.ru>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Borislav Petkov <bp@alien8.de>
---
drivers/tty/serial/8250_pci.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/tty/serial/8250_pci.c b/drivers/tty/serial/8250_pci.c
index 4b4968a..c9c9e6f 100644
--- a/drivers/tty/serial/8250_pci.c
+++ b/drivers/tty/serial/8250_pci.c
@@ -973,8 +973,8 @@ ce4100_serial_setup(struct serial_private *priv,

static int
pci_omegapci_setup(struct serial_private *priv,
- struct pciserial_board *board,
- struct uart_port *port, int idx)
+ const struct pciserial_board *board,
+ struct uart_port *port, int idx)
{
return setup_port(priv, port, 2, idx * 8, 0);
}
--
1.7.5.rc1.16.g9db1


\
 
 \ /
  Last update: 2011-05-30 11:55    [W:0.043 / U:0.440 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site