linux/drivers/gpu/drm/omapdrm/dss/base.c
Tomi Valkeinen 7c29971629 drm/omap: move dss_initialized to omapdss-base
omapdss_is_initialized() is used to find out if omapdss has been probed
successfully. This patch moves the related code to the common
omapdss-base module, so that the same support will be there for both
omapdss and omapdss6.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-04-03 12:36:40 +03:00

21 lines
434 B
C

#include <linux/kernel.h>
#include <linux/module.h>
static bool dss_initialized;
void omapdss_set_is_initialized(bool set)
{
dss_initialized = set;
}
EXPORT_SYMBOL(omapdss_set_is_initialized);
bool omapdss_is_initialized(void)
{
return dss_initialized;
}
EXPORT_SYMBOL(omapdss_is_initialized);
MODULE_AUTHOR("Tomi Valkeinen <tomi.valkeinen@ti.com>");
MODULE_DESCRIPTION("OMAP Display Subsystem Base");
MODULE_LICENSE("GPL v2");