staging: sm750fb: Replace pr_*() with dev_*().
authorElise Lennion <elise.lennion@gmail.com>
Tue, 1 Nov 2016 01:28:46 +0000 (23:28 -0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Nov 2016 10:31:12 +0000 (11:31 +0100)
dev_*() functions print identifying information about the struct device
and should be used instead of pr_*() whenever possible.

Signed-off-by: Elise Lennion <elise.lennion@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm750fb/sm750.c

index 0663ec0..5c153d6 100644 (file)
@@ -947,13 +947,13 @@ static void sm750fb_setup(struct sm750_dev *sm750_dev, char *src)
        g_hwcursor = 3;
 
        if (!src || !*src) {
-               pr_warn("no specific g_option.\n");
+               dev_warn(&sm750_dev->pdev->dev, "no specific g_option.\n");
                goto NO_PARAM;
        }
 
        while ((opt = strsep(&src, ":")) != NULL && *opt != 0) {
-               pr_info("opt=%s\n", opt);
-               pr_info("src=%s\n", src);
+               dev_info(&sm750_dev->pdev->dev, "opt=%s\n", opt);
+               dev_info(&sm750_dev->pdev->dev, "src=%s\n", src);
 
                if (!strncmp(opt, "swap", strlen("swap")))
                        swap = 1;
@@ -974,12 +974,12 @@ static void sm750fb_setup(struct sm750_dev *sm750_dev, char *src)
                else {
                        if (!g_fbmode[0]) {
                                g_fbmode[0] = opt;
-                               pr_info("find fbmode0 : %s\n", g_fbmode[0]);
+                               dev_info(&sm750_dev->pdev->dev, "find fbmode0 : %s\n", g_fbmode[0]);
                        } else if (!g_fbmode[1]) {
                                g_fbmode[1] = opt;
-                               pr_info("find fbmode1 : %s\n", g_fbmode[1]);
+                               dev_info(&sm750_dev->pdev->dev, "find fbmode1 : %s\n", g_fbmode[1]);
                        } else {
-                               pr_warn("How many view you wann set?\n");
+                               dev_warn(&sm750_dev->pdev->dev, "How many view you wann set?\n");
                        }
                }
        }