summaryrefslogtreecommitdiffstats
path: root/drivers/base/attribute_container.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2012-10-28 09:05:41 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-10-31 01:38:43 +0100
commita369a7ebbfce5caa38e3d5645ea050f4590dea7a (patch)
treef2738a86dc0b06ad0e4853afe6a5cba80ac7cfe7 /drivers/base/attribute_container.c
parentdrivers/base: fix typo in comment for arch_setup_pdev_archdata() (diff)
downloadlinux-a369a7ebbfce5caa38e3d5645ea050f4590dea7a.tar.xz
linux-a369a7ebbfce5caa38e3d5645ea050f4590dea7a.zip
drivers: base: Convert dev_printk(KERN_<LEVEL> to dev_<level>(
dev_<level> calls take less code than dev_printk(KERN_<LEVEL> and reducing object size is good. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base/attribute_container.c')
-rw-r--r--drivers/base/attribute_container.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/attribute_container.c b/drivers/base/attribute_container.c
index 8fc200b2e2c0..d78b204e65c1 100644
--- a/drivers/base/attribute_container.c
+++ b/drivers/base/attribute_container.c
@@ -158,7 +158,7 @@ attribute_container_add_device(struct device *dev,
ic = kzalloc(sizeof(*ic), GFP_KERNEL);
if (!ic) {
- dev_printk(KERN_ERR, dev, "failed to allocate class container\n");
+ dev_err(dev, "failed to allocate class container\n");
continue;
}