drivers/iio/adc/stm32-dfsdm-core.c:481 stm32_dfsdm_core_resume() warn: 'priv->clk' from clk_prepare() not released on lines: 481.

kernel test robot <[email protected]>
Newsgroups dev.linux.lists.oe-kbuild
Message-ID <[email protected]>
BCC: [email protected]
CC: [email protected]
CC: [email protected]
TO: "Rafael J. Wysocki" <[email protected]>
CC: Ulf Hansson <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   a635d6748234582ea287c5ffeae28b9b23f91c7e
commit: c021c1b38f90d639423c1369625daa703a8472ea PM: Move two sleep-related functions under CONFIG_PM_SLEEP
date:   1 year ago
:::::: branch date: 17 hours ago
:::::: commit date: 1 year ago
config: alpha-randconfig-r072-20260710 (https://download.01.org/0day-ci/archive/20260711/[email protected]/config)
compiler: alpha-linux-gcc (GCC) 8.5.0
smatch: v0.5.0-9185-gbcc58b9c

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Fixes: c021c1b38f90 ("PM: Move two sleep-related functions under CONFIG_PM_SLEEP")
| Reported-by: kernel test robot <[email protected]>
| Reported-by: Dan Carpenter <[email protected]>
| Closes: https://lore.kernel.org/r/[email protected]/

smatch warnings:
drivers/iio/adc/stm32-dfsdm-core.c:481 stm32_dfsdm_core_resume() warn: 'priv->clk' from clk_prepare() not released on lines: 481.

vim +481 drivers/iio/adc/stm32-dfsdm-core.c

6ec417d2f1a028 Fabrice Gasnier  2019-03-25  466  
ade59a7af270d2 Jonathan Cameron 2022-01-30  467  static int stm32_dfsdm_core_resume(struct device *dev)
6ec417d2f1a028 Fabrice Gasnier  2019-03-25  468  {
6ec417d2f1a028 Fabrice Gasnier  2019-03-25  469  	struct stm32_dfsdm *dfsdm = dev_get_drvdata(dev);
6ec417d2f1a028 Fabrice Gasnier  2019-03-25  470  	struct dfsdm_priv *priv = to_stm32_dfsdm_priv(dfsdm);
6ec417d2f1a028 Fabrice Gasnier  2019-03-25  471  	int ret;
6ec417d2f1a028 Fabrice Gasnier  2019-03-25  472  
6ec417d2f1a028 Fabrice Gasnier  2019-03-25  473  	ret = pinctrl_pm_select_default_state(dev);
6ec417d2f1a028 Fabrice Gasnier  2019-03-25  474  	if (ret)
6ec417d2f1a028 Fabrice Gasnier  2019-03-25  475  		return ret;
6ec417d2f1a028 Fabrice Gasnier  2019-03-25  476  
6ec417d2f1a028 Fabrice Gasnier  2019-03-25  477  	ret = clk_prepare(priv->clk);
6ec417d2f1a028 Fabrice Gasnier  2019-03-25  478  	if (ret)
6ec417d2f1a028 Fabrice Gasnier  2019-03-25  479  		return ret;
6ec417d2f1a028 Fabrice Gasnier  2019-03-25  480  
6ec417d2f1a028 Fabrice Gasnier  2019-03-25 @481  	return pm_runtime_force_resume(dev);
6ec417d2f1a028 Fabrice Gasnier  2019-03-25  482  }
6ec417d2f1a028 Fabrice Gasnier  2019-03-25  483  

:::::: The code at line 481 was first introduced by commit
:::::: 6ec417d2f1a028705a1ae6f59d3e15344f6a4fbe iio: adc: stm32-dfsdm: add PM support

:::::: TO: Fabrice Gasnier <[email protected]>
:::::: CC: Jonathan Cameron <[email protected]>

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.