]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/hwmon/coretemp.c
Merge tag 'v2.6.38' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
[mv-sheeva.git] / drivers / hwmon / coretemp.c
index 42de98d73ff5016d68a2884b91ad5f70b9b99713..194ca0aa8b0c5b6e14b1777a63fedcdf205dc0f1 100644 (file)
@@ -20,6 +20,8 @@
  * 02110-1301 USA.
  */
 
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
 #include <linux/module.h>
 #include <linux/init.h>
 #include <linux/slab.h>
@@ -445,8 +447,8 @@ static int __cpuinit coretemp_device_add(unsigned int cpu)
         * without thermal sensors will be filtered out.
         */
        if (!cpu_has(c, X86_FEATURE_DTS)) {
-               printk(KERN_INFO DRVNAME ": CPU (model=0x%x)"
-                      " has no thermal sensor.\n", c->x86_model);
+               pr_info("CPU (model=0x%x) has no thermal sensor\n",
+                       c->x86_model);
                return 0;
        }
 
@@ -466,7 +468,7 @@ static int __cpuinit coretemp_device_add(unsigned int cpu)
        pdev = platform_device_alloc(DRVNAME, cpu);
        if (!pdev) {
                err = -ENOMEM;
-               printk(KERN_ERR DRVNAME ": Device allocation failed\n");
+               pr_err("Device allocation failed\n");
                goto exit;
        }
 
@@ -478,8 +480,7 @@ static int __cpuinit coretemp_device_add(unsigned int cpu)
 
        err = platform_device_add(pdev);
        if (err) {
-               printk(KERN_ERR DRVNAME ": Device addition failed (%d)\n",
-                      err);
+               pr_err("Device addition failed (%d)\n", err);
                goto exit_device_free;
        }