Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 85d90b12 authored by Dan Carpenter's avatar Dan Carpenter Committed by Tomi Valkeinen
Browse files

OMAPDSS: DSS: fix a warning message



The WARN() macro has to take a condition.  The current code will just
print the stack trace and the function name instead of the intended
warning message.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 9dec58e6
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -343,7 +343,8 @@ u8 dsi_get_pixel_size(enum omap_dss_dsi_pixel_format fmt);
#else
#else
static inline u8 dsi_get_pixel_size(enum omap_dss_dsi_pixel_format fmt)
static inline u8 dsi_get_pixel_size(enum omap_dss_dsi_pixel_format fmt)
{
{
	WARN("%s: DSI not compiled in, returning pixel_size as 0\n", __func__);
	WARN(1, "%s: DSI not compiled in, returning pixel_size as 0\n",
	     __func__);
	return 0;
	return 0;
}
}
#endif
#endif