pwm: atmel: Remove unneeded check for match data
authorThierry Reding <thierry.reding@gmail.com>
Fri, 20 Sep 2019 23:55:48 +0000 (01:55 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Sat, 21 Sep 2019 01:25:11 +0000 (03:25 +0200)
commitd85b9ce198e3689141cce965cb840f1c435ac4d5
tree14496c02266ac65e7fe7ad5c72bf03078e87352e
parent3d4d85741ad3d880cb432d9121f5563e6a57ff2e
pwm: atmel: Remove unneeded check for match data

Since the driver is now exclusively DT, it only binds if it finds a
match in the of_device_id table. But in that case the associated data
can never be NULL, so drop the unnecessary check.

While at it, drop the extra local variable and store the pointer to
this per-SoC data in the driver data directly.

Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-atmel.c