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>
This commit is contained in:
Corentin Labbe 2017-10-21 19:38:12 +02:00 • committed by Thierry Reding
commit df4f6e8c9f