]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/dma/sun6i-dma.c
dmaengine: sun6i: use of_device_get_match_data
authorCorentin Labbe <clabbe.montjoie@gmail.com>
Wed, 20 Sep 2017 07:24:02 +0000 (09:24 +0200)
committerVinod Koul <vinod.koul@intel.com>
Thu, 21 Sep 2017 17:23:38 +0000 (22:53 +0530)
commit8f3b00347bf075fb457f90ce76573615f567e7bc
tree915fc32bcc39cd8d9472d256b5ab919cee063925
parent2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e
dmaengine: sun6i: use of_device_get_match_data

The usage of of_device_get_match_data reduce the code size a bit.
Furthermore, it prevents an improbable dereference when
of_match_device() return NULL.

Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/sun6i-dma.c