Skip to content

Commit b5644a1

Browse files
suryasaimadhutorvalds
authored andcommitted
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/[email protected] Signed-off-by: Borislav Petkov <[email protected]> Reported-by: kbuild test robot <[email protected]> Cc: Jean-Christophe Plagniol-Villard <[email protected]> Cc: Tomi Valkeinen <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 40a7d9f commit b5644a1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/video/fbdev/bfin_adv7393fb.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* TODO: Code Cleanup
1111
*/
1212

13+
#define DRIVER_NAME "bfin-adv7393"
14+
1315
#define pr_fmt(fmt) DRIVER_NAME ": " fmt
1416

1517
#include <linux/module.h>

drivers/video/fbdev/bfin_adv7393fb.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@ enum {
5959
BLANK_OFF,
6060
};
6161

62-
#define DRIVER_NAME "bfin-adv7393"
63-
6462
struct adv7393fb_modes {
6563
const s8 name[25]; /* Full name */
6664
u16 xres; /* Active Horizonzal Pixels */

0 commit comments

Comments
 (0)