Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pwm: sifive: Make use of pwmchip_parent() accessor

struct pwm_chip::dev is about to change. To not have to touch this
driver in the same commit as struct pwm_chip::dev, use the accessor
function provided for exactly this purpose.

Link: https://lore.kernel.org/r/170c3c61707992cbc57dce31f70c168fcd3dbe51.1707900770.git.u.kleine-koenig@pengutronix.de
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>

+1 -1
+1 -1
drivers/pwm/pwm-sifive.c
··· 186 186 if (!enabled) { 187 187 ret = clk_enable(ddata->clk); 188 188 if (ret) { 189 - dev_err(chip->dev, "Enable clk failed\n"); 189 + dev_err(pwmchip_parent(chip), "Enable clk failed\n"); 190 190 return ret; 191 191 } 192 192 }