[PATCH] fix small compile warning in hpt366

From: Jesper Juhl
Date: Mon Oct 17 2005 - 12:44:58 EST


Small patch below to;
a) Fix a compile warning :
drivers/ide/pci/hpt366.c:1293: warning: `Return' with a value, in function returning void
b) Add explicit printk loglevels to two printk's.

Signed-off-by: Jesper Juhl <jesper.juhl@xxxxxxxxx>
---

drivers/ide/pci/hpt366.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)

--- linux-2.6.14-rc4-mm1-orig/drivers/ide/pci/hpt366.c 2005-10-17 12:00:36.000000000 +0200
+++ linux-2.6.14-rc4-mm1/drivers/ide/pci/hpt366.c 2005-10-17 19:40:50.000000000 +0200
@@ -1284,13 +1284,13 @@ static void __devinit hpt37x_clocking(id
info->speed = fifty_base_hpt370a;
else
info->speed = fifty_base_hpt370a;
- printk("HPT37X: using 50MHz internal PLL\n");
+ printk(KERN_DEBUG "HPT37X: using 50MHz internal PLL\n");
goto init_hpt37X_done;
}
}
if (!pci_get_drvdata(dev)) {
- printk("No Clock Stabilization!!!\n");
- return -1;
+ printk(KERN_WARNING "No Clock Stabilization!!!\n");
+ return;
}
pll_recal:
if (adjust & 1)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/