Skip to content

Commit

Permalink
fbdev/bfin_adv7393fb: move DRIVER_NAME before its first use
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
suryasaimadhu authored and torvalds committed Aug 2, 2016
1 parent 40a7d9f commit b5644a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions drivers/video/fbdev/bfin_adv7393fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
* TODO: Code Cleanup
*/

#define DRIVER_NAME "bfin-adv7393"

#define pr_fmt(fmt) DRIVER_NAME ": " fmt

#include <linux/module.h>
Expand Down
2 changes: 0 additions & 2 deletions drivers/video/fbdev/bfin_adv7393fb.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit b5644a1

Please sign in to comment.