Couple of patches for device bootup things

Some patches for device bootup.

Signed-off-by: Marko Saukko <marko.saukko@jolla.com>