fbdev/bfin_adv7393fb: move DRIVER_NAME before its first use
authorBorislav Petkov <bp@suse.de>
Tue, 2 Aug 2016 21:04:01 +0000 (14:04 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 2 Aug 2016 23:35:05 +0000 (19:35 -0400)
Move the DRIVER_NAME macro definition before the first usage site and
fix build error.

Link: http://lkml.kernel.org/r/20160801163937.GA28119@nazgul.tnic
Signed-off-by: Borislav Petkov <bp@suse.de>
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/fbdev/bfin_adv7393fb.c
drivers/video/fbdev/bfin_adv7393fb.h

index 8fe41caac38e3e2b63be0f5940a4d0f773725c52..e2d7d039ce3b23e8f8fec2fbe863a1c8e04ca46f 100644 (file)
@@ -10,6 +10,8 @@
  * TODO: Code Cleanup
  */
 
+#define DRIVER_NAME "bfin-adv7393"
+
 #define pr_fmt(fmt) DRIVER_NAME ": " fmt
 
 #include <linux/module.h>
index cd591b5152a56baa9e6a2e607e3ca842bea921dc..afd0380e19e130cf8e11ab6afcada8200c50c32a 100644 (file)
@@ -59,8 +59,6 @@ enum {
        BLANK_OFF,
 };
 
-#define DRIVER_NAME "bfin-adv7393"
-
 struct adv7393fb_modes {
        const s8 name[25];      /* Full name */
        u16 xres;               /* Active Horizonzal Pixels  */