mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
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>
This commit is contained in:
parent
542f3d5af8
commit
2b46be68a1
1 changed files with 6 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue