]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
pwm: sl28cpld: Set driver data before registering the PWM chip
authorThierry Reding <thierry.reding@gmail.com>
Fri, 4 Dec 2020 12:44:35 +0000 (13:44 +0100)
committerThierry Reding <thierry.reding@gmail.com>
Thu, 17 Dec 2020 13:19:02 +0000 (14:19 +0100)
commitedf7f80e780e50bb5711d4c112b721517d0ff73e
tree7f162a9852f10e845eb165c4d1808cdcf6a6d96a
parent3df23a316c4a5d1764b034c71c29d67a17d5299f
pwm: sl28cpld: Set driver data before registering the PWM chip

It is good practice to set the driver data before registering a device
with a subsystem because the subsystem or the driver core may call back
into the driver implementation. This is not currently an issue, but to
prevent future changes from causing this to break unexpectedly, make
sure that the driver data is set before the PWM chip registration.

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