ARM: shmobile: lager: Fix Display Unit platform data
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Thu, 22 Aug 2013 15:55:08 +0000 (17:55 +0200)
committerSimon Horman <horms+renesas@verge.net.au>
Mon, 30 Sep 2013 07:34:07 +0000 (16:34 +0900)
The DU device erroneously receives the DU resources array as platform
data instead of the DU platform data structure. Fix it.

This problem was introduced by f631fa0 ("ARM: shmobile: lager: Add Display
Unit support").

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/board-lager.c

index caec99e332ef37ebe43ed00d8b6063034819ecbb..9fbbf23244a8ea5f539f580e4b7ee0e452d76bb4 100644 (file)
@@ -87,8 +87,8 @@ static void __init lager_add_du_device(void)
                .id = -1,
                .res = du_resources,
                .num_res = ARRAY_SIZE(du_resources),
-               .data = &du_resources,
-               .size_data = sizeof(du_resources),
+               .data = &lager_du_pdata,
+               .size_data = sizeof(lager_du_pdata),
                .dma_mask = DMA_BIT_MASK(32),
        };