Skip to content

Commit

Permalink
Char: moxa, notify about board readiness
Browse files Browse the repository at this point in the history
Drop a message to dmesg about card being ready.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Tested-by: Oyvind Aabling <Oyvind.Aabling@uni-c.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Jiri Slaby authored and Linus Torvalds committed Apr 30, 2008
1 parent 08d01c7 commit bb9f910
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/char/moxa.c
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,9 @@ static int __devinit moxa_pci_probe(struct pci_dev *pdev,

pci_set_drvdata(pdev, board);

dev_info(&pdev->dev, "board '%s' ready (%u ports, firmware loaded)\n",
moxa_brdname[board_type - 1], board->numPorts);

return 0;
err_base:
iounmap(board->basemem);
Expand Down Expand Up @@ -1047,6 +1050,10 @@ static int __init moxa_init(void)
continue;
}

printk(KERN_INFO "MOXA isa board found at 0x%.8lu and "
"ready (%u ports, firmware loaded)\n",
baseaddr[i], brd->numPorts);

brd++;
isabrds++;
}
Expand Down

0 comments on commit bb9f910

Please sign in to comment.