[PATCH] fix small compile warning in hpt366

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <[email protected]>
---

 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux