]> git.baikalelectronics.ru Git - kernel.git/commit
drm: rcar-du: Don't open code of_device_get_match_data()
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sun, 16 Oct 2016 08:01:47 +0000 (10:01 +0200)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Tue, 4 Apr 2017 14:03:43 +0000 (17:03 +0300)
commitb2beb1e18a49bd9108a5f8097fa5188bebfe0472
tree1e962d6cc118d4ec28d59092eb552a870901d33b
parent0a5d9a5dfe71ce9ba48f1de5b444ecfb2ed1296a
drm: rcar-du: Don't open code of_device_get_match_data()

This change will also make Coverity happy by avoiding a theoretical NULL
pointer dereference; yet another reason is to use the above helper function
to tighten the code and make it more readable.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Tested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
drivers/gpu/drm/rcar-du/rcar_du_drv.c