summaryrefslogtreecommitdiffstats
path: root/drivers/staging/dgnc
diff options
context:
space:
mode:
authorAntoine Sirinelli <antoine@monte-stello.com>2014-03-27 22:31:55 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-05-15 13:33:47 -0700
commit2b46be68a1b67f40df4f288b90e79181c387eda6 (patch)
tree718df354eb38d99b01696bebefa1da3603377a61 /drivers/staging/dgnc
parent542f3d5af89c15d0b4e80bbf927d252efa0e48c3 (diff)
downloadtalos-op-linux-2b46be68a1b67f40df4f288b90e79181c387eda6.tar.gz
talos-op-linux-2b46be68a1b67f40df4f288b90e79181c387eda6.zip
staging: dgnc: cleanup dgnc_finalize_board_init()
Trivial cleanups: - Transform a printk() to a dev_err() call - Fix 2 lines over 80 characters Signed-off-by: Antoine Sirinelli <antoine@monte-stello.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/dgnc')
-rw-r--r--drivers/staging/dgnc/dgnc_driver.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/staging/dgnc/dgnc_driver.c b/drivers/staging/dgnc/dgnc_driver.c
index b1a39b25b419..900deb655dcf 100644
--- a/drivers/staging/dgnc/dgnc_driver.c
+++ b/drivers/staging/dgnc/dgnc_driver.c
@@ -730,15 +730,18 @@ static int dgnc_finalize_board_init(struct dgnc_board *brd) {
DPR_INIT(("dgnc_finalize_board_init() - start #2\n"));
if (brd->irq) {
- rc = request_irq(brd->irq, brd->bd_ops->intr, IRQF_SHARED, "DGNC", brd);
+ rc = request_irq(brd->irq, brd->bd_ops->intr,
+ IRQF_SHARED, "DGNC", brd);
if (rc) {
- printk("Failed to hook IRQ %d\n",brd->irq);
+ dev_err(&brd->pdev->dev,
+ "Failed to hook IRQ %d\n", brd->irq);
brd->state = BOARD_FAILED;
brd->dpastatus = BD_NOFEP;
rc = -ENODEV;
} else {
- DPR_INIT(("Requested and received usage of IRQ %d\n", brd->irq));
+ DPR_INIT(("Requested and received usage of IRQ %d\n",
+ brd->irq));
}
}
return rc;
OpenPOWER on IntegriCloud