Skip to content
Commit d85b9ce1 authored by Thierry Reding's avatar Thierry Reding
Browse files

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: default avatarThierry Reding <thierry.reding@gmail.com>
parent 3d4d8574
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment