提交 a7a75386 编写于 作者: L Lidza Louina 提交者: Greg Kroah-Hartman

staging: dgnc: tty.c: updates uart_struct declaration for sparse

This patch edits the type casts neo_uart_struct and
cls_uart_struct. A previous patch added the marker __iomem
to these structs. This patch ensures that the change to
the marker is consistent. This also removes these
sparse warnings:

warning: incorrect type in assignment (different address spaces)
  expected struct neo_uart_struct [noderef] <asn:2>*ch_neo_uart
  got struct neo_uart_struct *<noident>
warning: incorrect type in assignment (different address spaces)
  expected struct cls_uart_struct [noderef] <asn:2>*ch_cls_uart
  got struct cls_uart_struct *<noident>
Signed-off-by: NLidza Louina <lidza.louina@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 421acbc2
...@@ -344,7 +344,7 @@ int dgnc_tty_register(struct board_t *brd) ...@@ -344,7 +344,7 @@ int dgnc_tty_register(struct board_t *brd)
int dgnc_tty_init(struct board_t *brd) int dgnc_tty_init(struct board_t *brd)
{ {
int i; int i;
u8 __iomem *vaddr; void __iomem *vaddr;
struct channel_t *ch; struct channel_t *ch;
if (!brd) if (!brd)
...@@ -403,9 +403,9 @@ int dgnc_tty_init(struct board_t *brd) ...@@ -403,9 +403,9 @@ int dgnc_tty_init(struct board_t *brd)
ch->ch_pun.un_dev = i + 128; ch->ch_pun.un_dev = i + 128;
if (brd->bd_uart_offset == 0x200) if (brd->bd_uart_offset == 0x200)
ch->ch_neo_uart = (struct neo_uart_struct *) ((ulong) vaddr + (brd->bd_uart_offset * i)); ch->ch_neo_uart = vaddr + (brd->bd_uart_offset * i);
else else
ch->ch_cls_uart = (struct cls_uart_struct *) ((ulong) vaddr + (brd->bd_uart_offset * i)); ch->ch_cls_uart = vaddr + (brd->bd_uart_offset * i);
ch->ch_bd = brd; ch->ch_bd = brd;
ch->ch_portnum = i; ch->ch_portnum = i;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册