The iot-headless profile has been changed to have display module.
- display: add dummy display for iot-headless
(
1985b78991d1fe925b827ded4fdae58d1b4e1d7a)
Prevent crash on accessing not existing operation.
Change-Id: I601e4cb8412423ed8ecca9d9c022b366e039690e
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
{
const struct device_ops *display_device_ops = NULL;
FIND_DEVICE_VOID(display_device_ops, "display");
- display_device_ops->stop(NORMAL_MODE);
+ if (display_device_ops->stop)
+ display_device_ops->stop(NORMAL_MODE);
}
static int disable_systemd_journald(void)