Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

fbdev/bfin_adv7393fb: move DRIVER_NAME before its first use

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>

authored by

Borislav Petkov and committed by
Linus Torvalds
b5644a15 40a7d9f5

+2 -2
+2
drivers/video/fbdev/bfin_adv7393fb.c
··· 10 10 * TODO: Code Cleanup 11 11 */ 12 12 13 + #define DRIVER_NAME "bfin-adv7393" 14 + 13 15 #define pr_fmt(fmt) DRIVER_NAME ": " fmt 14 16 15 17 #include <linux/module.h>
-2
drivers/video/fbdev/bfin_adv7393fb.h
··· 59 59 BLANK_OFF, 60 60 }; 61 61 62 - #define DRIVER_NAME "bfin-adv7393" 63 - 64 62 struct adv7393fb_modes { 65 63 const s8 name[25]; /* Full name */ 66 64 u16 xres; /* Active Horizonzal Pixels */