aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/vt8231.c
diff options
context:
space:
mode:
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 e6078c9f0e27..db3b2e8d2a67 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