aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/dock.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/dock.c')
-rw-r--r--drivers/acpi/dock.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/acpi/dock.c b/drivers/acpi/dock.c
index 5b30b8d91d71..408359133ce3 100644
--- a/drivers/acpi/dock.c
+++ b/drivers/acpi/dock.c
@@ -984,7 +984,7 @@ static int dock_add(acpi_handle handle)
984 984
985 ret = device_create_file(&dock_device->dev, &dev_attr_docked); 985 ret = device_create_file(&dock_device->dev, &dev_attr_docked);
986 if (ret) { 986 if (ret) {
987 printk("Error %d adding sysfs file\n", ret); 987 printk(KERN_ERR "Error %d adding sysfs file\n", ret);
988 platform_device_unregister(dock_device); 988 platform_device_unregister(dock_device);
989 kfree(dock_station); 989 kfree(dock_station);
990 dock_station = NULL; 990 dock_station = NULL;
@@ -992,7 +992,7 @@ static int dock_add(acpi_handle handle)
992 } 992 }
993 ret = device_create_file(&dock_device->dev, &dev_attr_undock); 993 ret = device_create_file(&dock_device->dev, &dev_attr_undock);
994 if (ret) { 994 if (ret) {
995 printk("Error %d adding sysfs file\n", ret); 995 printk(KERN_ERR "Error %d adding sysfs file\n", ret);
996 device_remove_file(&dock_device->dev, &dev_attr_docked); 996 device_remove_file(&dock_device->dev, &dev_attr_docked);
997 platform_device_unregister(dock_device); 997 platform_device_unregister(dock_device);
998 kfree(dock_station); 998 kfree(dock_station);
@@ -1001,7 +1001,7 @@ static int dock_add(acpi_handle handle)
1001 } 1001 }
1002 ret = device_create_file(&dock_device->dev, &dev_attr_uid); 1002 ret = device_create_file(&dock_device->dev, &dev_attr_uid);
1003 if (ret) { 1003 if (ret) {
1004 printk("Error %d adding sysfs file\n", ret); 1004 printk(KERN_ERR "Error %d adding sysfs file\n", ret);
1005 device_remove_file(&dock_device->dev, &dev_attr_docked); 1005 device_remove_file(&dock_device->dev, &dev_attr_docked);
1006 device_remove_file(&dock_device->dev, &dev_attr_undock); 1006 device_remove_file(&dock_device->dev, &dev_attr_undock);
1007 platform_device_unregister(dock_device); 1007 platform_device_unregister(dock_device);
@@ -1011,7 +1011,7 @@ static int dock_add(acpi_handle handle)
1011 } 1011 }
1012 ret = device_create_file(&dock_device->dev, &dev_attr_flags); 1012 ret = device_create_file(&dock_device->dev, &dev_attr_flags);
1013 if (ret) { 1013 if (ret) {
1014 printk("Error %d adding sysfs file\n", ret); 1014 printk(KERN_ERR "Error %d adding sysfs file\n", ret);
1015 device_remove_file(&dock_device->dev, &dev_attr_docked); 1015 device_remove_file(&dock_device->dev, &dev_attr_docked);
1016 device_remove_file(&dock_device->dev, &dev_attr_undock); 1016 device_remove_file(&dock_device->dev, &dev_attr_undock);
1017 device_remove_file(&dock_device->dev, &dev_attr_uid); 1017 device_remove_file(&dock_device->dev, &dev_attr_uid);