]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
pwm: sunxi: Use of_device_get_match_data()
authorCorentin Labbe <clabbe.montjoie@gmail.com>
Sat, 21 Oct 2017 17:38:12 +0000 (19:38 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Wed, 15 Nov 2017 09:56:55 +0000 (10:56 +0100)
commitdf4f6e8c9f089d8c8406f87df819b4d91277979c
tree285111ff8eb2a1283a12ac8f6b44c272135dfb6e
parent1b3d9a93ed8313e42f108f871133346694de5ac3
pwm: sunxi: 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() returns NULL.

Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-sun4i.c