mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-14 05:55:17 +00:00
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>
This commit is contained in:
parent
3d4d85741a
commit
d85b9ce198
1 changed files with 2 additions and 6 deletions
Loading…
Add table
Add a link
Reference in a new issue