]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Staging: dgnc: Replace printk with dev_err
authorCristina Opriceana <cristina.opriceana@gmail.com>
Fri, 27 Feb 2015 12:10:36 +0000 (14:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 1 Mar 2015 23:12:14 +0000 (15:12 -0800)
This patch fixes the following checkpatch.pl warning:
WARNING: Prefer [subsystem eg: netdev]_err over printk(KERN_ERR, ...).

Signed-off-by: Cristina Opriceana <cristina.opriceana@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgnc/dgnc_sysfs.c

index 2fd34ca70c599a260c0a9bacdea3923a86c9a032..a72e35326da4a5776919592a4f5f3ca78e8aec91 100644 (file)
@@ -360,7 +360,7 @@ void dgnc_create_ports_sysfiles(struct dgnc_board *bd)
        rc |= device_create_file(&(bd->pdev->dev), &dev_attr_vpd);
        rc |= device_create_file(&(bd->pdev->dev), &dev_attr_serial_number);
        if (rc)
-               printk(KERN_ERR "DGNC: sysfs device_create_file failed!\n");
+               dev_err(&bd->pdev->dev, "dgnc: sysfs device_create_file failed!\n");
 }