aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/vt8231.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-10-20 02:51:53 -0400
committerGuenter Roeck <guenter.roeck@ericsson.com>2011-01-08 13:55:31 -0500
commit9d72be0da16da10e27f6a8c01f877db6c513413d (patch)
tree695b172aeed91a65edf90350de24eddf63ee94c2 /drivers/hwmon/vt8231.c
parent5ed9ba6b87545d21b48e50a028bfb79f9812f89f (diff)
hwmon: (vt8231) Use pr_fmt and pr_<level>
Added #define pr_fmt KBUILD_MODNAME ": " fmt Converted printks to pr_<level> Coalesced any long formats Removed prefixes from formats Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Diffstat (limited to 'drivers/hwmon/vt8231.c')
-rw-r--r--drivers/hwmon/vt8231.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/hwmon/vt8231.c b/drivers/hwmon/vt8231.c
index e6078c9f0e2..db3b2e8d2a6 100644
--- a/drivers/hwmon/vt8231.c
+++ b/drivers/hwmon/vt8231.c
@@ -24,6 +24,8 @@
24/* Supports VIA VT8231 South Bridge embedded sensors 24/* Supports VIA VT8231 South Bridge embedded sensors
25*/ 25*/
26 26
27#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
28
27#include <linux/module.h> 29#include <linux/module.h>
28#include <linux/init.h> 30#include <linux/init.h>
29#include <linux/slab.h> 31#include <linux/slab.h>
@@ -902,21 +904,19 @@ static int __devinit vt8231_device_add(unsigned short address)
902 pdev = platform_device_alloc("vt8231", address); 904 pdev = platform_device_alloc("vt8231", address);
903 if (!pdev) { 905 if (!pdev) {
904 err = -ENOMEM; 906 err = -ENOMEM;
905 printk(KERN_ERR "vt8231: Device allocation failed\n"); 907 pr_err("Device allocation failed\n");
906 goto exit; 908 goto exit;
907 } 909 }
908 910
909 err = platform_device_add_resources(pdev, &res, 1); 911 err = platform_device_add_resources(pdev, &res, 1);
910 if (err) { 912 if (err) {
911 printk(KERN_ERR "vt8231: Device resource addition failed " 913 pr_err("Device resource addition failed (%d)\n", err);
912 "(%d)\n", err);
913 goto exit_device_put; 914 goto exit_device_put;
914 } 915 }
915 916
916 err = platform_device_add(pdev); 917 err = platform_device_add(pdev);
917 if (err) { 918 if (err) {
918 printk(KERN_ERR "vt8231: Device addition failed (%d)\n", 919 pr_err("Device addition failed (%d)\n", err);
919 err);
920 goto exit_device_put; 920 goto exit_device_put;
921 } 921 }
922 922