Skip to content

Commit a5035c8

Browse files
arndbhdeller
authored andcommitted
fbdev: fsl-diu-fb: mark wr_reg_wa() static
wr_reg_wa() is not an appropriate name for a global function, and doesn't need to be global anyway, so mark it static and avoid the warning: drivers/video/fbdev/fsl-diu-fb.c:493:6: error: no previous prototype for 'wr_reg_wa' [-Werror=missing-prototypes] Fixes: 0d9dab3 ("powerpc/5121: fsl-diu-fb: fix issue with re-enabling DIU area descriptor") Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Helge Deller <[email protected]>
1 parent dce2177 commit a5035c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/video/fbdev/fsl-diu-fb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ static enum fsl_diu_monitor_port fsl_diu_name_to_port(const char *s)
490490
* Workaround for failed writing desc register of planes.
491491
* Needed with MPC5121 DIU rev 2.0 silicon.
492492
*/
493-
void wr_reg_wa(u32 *reg, u32 val)
493+
static void wr_reg_wa(u32 *reg, u32 val)
494494
{
495495
do {
496496
out_be32(reg, val);

0 commit comments

Comments
 (0)