From 125d55ce7119ff8227c7641082246cdf64bc6d1d Mon Sep 17 00:00:00 2001 From: Stefan Kalkowski Date: Wed, 5 Jun 2013 14:32:19 +0200 Subject: [PATCH] Don't abort when reading config in OMAP4 fb driver Just use configuration values when existent, otherwise when no configuration is given use the default values. When an incomplete configuration is given, take the supplied ones, and for the rest the default ones. Fix #762 --- os/src/drivers/framebuffer/omap4/main.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/os/src/drivers/framebuffer/omap4/main.cc b/os/src/drivers/framebuffer/omap4/main.cc index c5a237a147..bb53d209e5 100644 --- a/os/src/drivers/framebuffer/omap4/main.cc +++ b/os/src/drivers/framebuffer/omap4/main.cc @@ -109,11 +109,7 @@ int main(int, char **) output = Driver::OUTPUT_LCD; } } - catch (Genode::Xml_node::Nonexistent_attribute) { - PERR("incorrect configuration, aborting"); - throw Root::Invalid_args(); - } - catch (Genode::Xml_node::Nonexistent_sub_node) { + catch (...) { PDBG("using default configuration: HDMI@%dx%d", width, height); }