diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2011-02-24 06:59:13 -0500 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2011-03-11 08:46:24 -0500 |
commit | e528e3a8b4e005e6e2c9e50fdee1ab7e84cf1e27 (patch) | |
tree | 57d492c7e37fa3fd18f664837fb88c379300c415 /drivers/video/omap2 | |
parent | d0030452b5057570db47e953433f689e4a5475b5 (diff) |
OMAP: DSS2: Clean up a switch-case
Support for the display interface was checked in a separate switch-case.
There's no reason for that, and this patch handles the fail code path in
the same switch-case where the display initialization is done.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/omap2')
-rw-r--r-- | drivers/video/omap2/dss/display.c | 27 |
1 files changed, 3 insertions, 24 deletions
diff --git a/drivers/video/omap2/dss/display.c b/drivers/video/omap2/dss/display.c index 22dd7a474f79..3f4fa0b08460 100644 --- a/drivers/video/omap2/dss/display.c +++ b/drivers/video/omap2/dss/display.c | |||
@@ -396,29 +396,6 @@ void dss_init_device(struct platform_device *pdev, | |||
396 | switch (dssdev->type) { | 396 | switch (dssdev->type) { |
397 | #ifdef CONFIG_OMAP2_DSS_DPI | 397 | #ifdef CONFIG_OMAP2_DSS_DPI |
398 | case OMAP_DISPLAY_TYPE_DPI: | 398 | case OMAP_DISPLAY_TYPE_DPI: |
399 | #endif | ||
400 | #ifdef CONFIG_OMAP2_DSS_RFBI | ||
401 | case OMAP_DISPLAY_TYPE_DBI: | ||
402 | #endif | ||
403 | #ifdef CONFIG_OMAP2_DSS_SDI | ||
404 | case OMAP_DISPLAY_TYPE_SDI: | ||
405 | #endif | ||
406 | #ifdef CONFIG_OMAP2_DSS_DSI | ||
407 | case OMAP_DISPLAY_TYPE_DSI: | ||
408 | #endif | ||
409 | #ifdef CONFIG_OMAP2_DSS_VENC | ||
410 | case OMAP_DISPLAY_TYPE_VENC: | ||
411 | #endif | ||
412 | break; | ||
413 | default: | ||
414 | DSSERR("Support for display '%s' not compiled in.\n", | ||
415 | dssdev->name); | ||
416 | return; | ||
417 | } | ||
418 | |||
419 | switch (dssdev->type) { | ||
420 | #ifdef CONFIG_OMAP2_DSS_DPI | ||
421 | case OMAP_DISPLAY_TYPE_DPI: | ||
422 | r = dpi_init_display(dssdev); | 399 | r = dpi_init_display(dssdev); |
423 | break; | 400 | break; |
424 | #endif | 401 | #endif |
@@ -443,7 +420,9 @@ void dss_init_device(struct platform_device *pdev, | |||
443 | break; | 420 | break; |
444 | #endif | 421 | #endif |
445 | default: | 422 | default: |
446 | BUG(); | 423 | DSSERR("Support for display '%s' not compiled in.\n", |
424 | dssdev->name); | ||
425 | return; | ||
447 | } | 426 | } |
448 | 427 | ||
449 | if (r) { | 428 | if (r) { |