diff options
Diffstat (limited to 'drivers/video/omap2/dss/display.c')
-rw-r--r-- | drivers/video/omap2/dss/display.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/video/omap2/dss/display.c b/drivers/video/omap2/dss/display.c index 3888c191c8a7..af8aae7ef814 100644 --- a/drivers/video/omap2/dss/display.c +++ b/drivers/video/omap2/dss/display.c | |||
@@ -324,11 +324,8 @@ void default_get_overlay_fifo_thresholds(enum omap_plane plane, | |||
324 | *fifo_low = fifo_size - burst_size_bytes; | 324 | *fifo_low = fifo_size - burst_size_bytes; |
325 | } | 325 | } |
326 | 326 | ||
327 | static int default_get_recommended_bpp(struct omap_dss_device *dssdev) | 327 | int omapdss_default_get_recommended_bpp(struct omap_dss_device *dssdev) |
328 | { | 328 | { |
329 | if (dssdev->panel.recommended_bpp) | ||
330 | return dssdev->panel.recommended_bpp; | ||
331 | |||
332 | switch (dssdev->type) { | 329 | switch (dssdev->type) { |
333 | case OMAP_DISPLAY_TYPE_DPI: | 330 | case OMAP_DISPLAY_TYPE_DPI: |
334 | if (dssdev->phy.dpi.data_lines == 24) | 331 | if (dssdev->phy.dpi.data_lines == 24) |
@@ -350,6 +347,7 @@ static int default_get_recommended_bpp(struct omap_dss_device *dssdev) | |||
350 | BUG(); | 347 | BUG(); |
351 | } | 348 | } |
352 | } | 349 | } |
350 | EXPORT_SYMBOL(omapdss_default_get_recommended_bpp); | ||
353 | 351 | ||
354 | /* Checks if replication logic should be used. Only use for active matrix, | 352 | /* Checks if replication logic should be used. Only use for active matrix, |
355 | * when overlay is in RGB12U or RGB16 mode, and LCD interface is | 353 | * when overlay is in RGB12U or RGB16 mode, and LCD interface is |
@@ -413,8 +411,6 @@ void dss_init_device(struct platform_device *pdev, | |||
413 | return; | 411 | return; |
414 | } | 412 | } |
415 | 413 | ||
416 | dssdev->get_recommended_bpp = default_get_recommended_bpp; | ||
417 | |||
418 | switch (dssdev->type) { | 414 | switch (dssdev->type) { |
419 | case OMAP_DISPLAY_TYPE_DPI: | 415 | case OMAP_DISPLAY_TYPE_DPI: |
420 | r = dpi_init_display(dssdev); | 416 | r = dpi_init_display(dssdev); |