]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0121277ffb0f19497fa426d18ad3e678c48ba31a
tree14496c02266ac65e7fe7ad5c72bf03078e87352e
parent80235830991128ce76ad4b6eadcd3cedecd93d0a
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