1. Aug 28, 2023
  2. Aug 23, 2023
  3. Aug 17, 2023
  4. Aug 11, 2023
  5. Aug 09, 2023
  6. Aug 03, 2023
  7. Jul 20, 2023
    • Yangtao Li's avatar
      cpufreq: omap: Convert to platform remove callback returning void · fd459406
      Yangtao Li authored
      
      
      The .remove() callback for a platform driver returns an int which makes
      many driver authors wrongly assume it's possible to do error handling by
      returning an error code. However the value returned is (mostly) ignored
      and this typically results in resource leaks. To improve here there is a
      quest to make the remove callback return void. In the first step of this
      quest all drivers are converted to .remove_new() which already returns
      void.
      
      Trivially convert this driver from always returning zero in the remove
      callback to the void returning variant.
      
      Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Signed-off-by: default avatarYangtao Li <frank.li@vivo.com>
      Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      fd459406
    • Yangtao Li's avatar
      cpufreq: qoriq: Convert to platform remove callback returning void · a8cf9284
      Yangtao Li authored
      
      
      The .remove() callback for a platform driver returns an int which makes
      many driver authors wrongly assume it's possible to do error handling by
      returning an error code. However the value returned is (mostly) ignored
      and this typically results in resource leaks. To improve here there is a
      quest to make the remove callback return void. In the first step of this
      quest all drivers are converted to .remove_new() which already returns
      void.
      
      Trivially convert this driver from always returning zero in the remove
      callback to the void returning variant.
      
      Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Signed-off-by: default avatarYangtao Li <frank.li@vivo.com>
      Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      a8cf9284
    • Yangtao Li's avatar
      cpufreq: acpi: Convert to platform remove callback returning void · 1cd04adf
      Yangtao Li authored
      
      
      The .remove() callback for a platform driver returns an int which makes
      many driver authors wrongly assume it's possible to do error handling by
      returning an error code. However the value returned is (mostly) ignored
      and this typically results in resource leaks. To improve here there is a
      quest to make the remove callback return void. In the first step of this
      quest all drivers are converted to .remove_new() which already returns
      void.
      
      Trivially convert this driver from always returning zero in the remove
      callback to the void returning variant.
      
      Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Signed-off-by: default avatarYangtao Li <frank.li@vivo.com>
      Acked-by: default avatarRafael J. Wysocki <rafael@kernel.org>
      Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      1cd04adf
    • Yangtao Li's avatar
      cpufreq: tegra186: Convert to platform remove callback returning void · b1966223
      Yangtao Li authored
      
      
      The .remove() callback for a platform driver returns an int which makes
      many driver authors wrongly assume it's possible to do error handling by
      returning an error code. However the value returned is (mostly) ignored
      and this typically results in resource leaks. To improve here there is a
      quest to make the remove callback return void. In the first step of this
      quest all drivers are converted to .remove_new() which already returns
      void.
      
      Trivially convert this driver from always returning zero in the remove
      callback to the void returning variant.
      
      Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Signed-off-by: default avatarYangtao Li <frank.li@vivo.com>
      Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      b1966223
    • Yangtao Li's avatar
      cpufreq: qcom-nvmem: Convert to platform remove callback returning void · 40273232
      Yangtao Li authored
      
      
      The .remove() callback for a platform driver returns an int which makes
      many driver authors wrongly assume it's possible to do error handling by
      returning an error code. However the value returned is (mostly) ignored
      and this typically results in resource leaks. To improve here there is a
      quest to make the remove callback return void. In the first step of this
      quest all drivers are converted to .remove_new() which already returns
      void.
      
      Trivially convert this driver from always returning zero in the remove
      callback to the void returning variant.
      
      Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Signed-off-by: default avatarYangtao Li <frank.li@vivo.com>
      Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      40273232
    • Yangtao Li's avatar
      cpufreq: kirkwood: Convert to platform remove callback returning void · cc35f433
      Yangtao Li authored
      
      
      The .remove() callback for a platform driver returns an int which makes
      many driver authors wrongly assume it's possible to do error handling by
      returning an error code. However the value returned is (mostly) ignored
      and this typically results in resource leaks. To improve here there is a
      quest to make the remove callback return void. In the first step of this
      quest all drivers are converted to .remove_new() which already returns
      void.
      
      Trivially convert this driver from always returning zero in the remove
      callback to the void returning variant.
      
      Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Signed-off-by: default avatarYangtao Li <frank.li@vivo.com>
      Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      cc35f433
    • Yangtao Li's avatar
      cpufreq: pcc-cpufreq: Convert to platform remove callback returning void · d0988eaa
      Yangtao Li authored
      
      
      The .remove() callback for a platform driver returns an int which makes
      many driver authors wrongly assume it's possible to do error handling by
      returning an error code. However the value returned is (mostly) ignored
      and this typically results in resource leaks. To improve here there is a
      quest to make the remove callback return void. In the first step of this
      quest all drivers are converted to .remove_new() which already returns
      void.
      
      Trivially convert this driver from always returning zero in the remove
      callback to the void returning variant.
      
      Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Signed-off-by: default avatarYangtao Li <frank.li@vivo.com>
      Acked-by: default avatarRafael J. Wysocki <rafael@kernel.org>
      Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      d0988eaa
    • Yangtao Li's avatar
      cpufreq: raspberrypi: Convert to platform remove callback returning void · 46ebd4d8
      Yangtao Li authored
      
      
      The .remove() callback for a platform driver returns an int which makes
      many driver authors wrongly assume it's possible to do error handling by
      returning an error code. However the value returned is (mostly) ignored
      and this typically results in resource leaks. To improve here there is a
      quest to make the remove callback return void. In the first step of this
      quest all drivers are converted to .remove_new() which already returns
      void.
      
      Trivially convert this driver from always returning zero in the remove
      callback to the void returning variant.
      
      Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Signed-off-by: default avatarYangtao Li <frank.li@vivo.com>
      Reviewed-by: default avatarFlorian Fainelli <florian.fainelli@broadcom.com>
      Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      46ebd4d8
    • Yangtao Li's avatar
      cpufreq: davinci: Convert to platform remove callback returning void · 463ff6d4
      Yangtao Li authored
      
      
      The .remove() callback for a platform driver returns an int which makes
      many driver authors wrongly assume it's possible to do error handling by
      returning an error code. However the value returned is (mostly) ignored
      and this typically results in resource leaks. To improve here there is a
      quest to make the remove callback return void. In the first step of this
      quest all drivers are converted to .remove_new() which already returns
      void.
      
      Trivially convert this driver from always returning zero in the remove
      callback to the void returning variant.
      
      Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Signed-off-by: default avatarYangtao Li <frank.li@vivo.com>
      Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      463ff6d4
    • Yangtao Li's avatar
      cpufreq: imx-cpufreq-dt: Convert to platform remove callback returning void · 8d09c46a
      Yangtao Li authored
      
      
      The .remove() callback for a platform driver returns an int which makes
      many driver authors wrongly assume it's possible to do error handling by
      returning an error code. However the value returned is (mostly) ignored
      and this typically results in resource leaks. To improve here there is a
      quest to make the remove callback return void. In the first step of this
      quest all drivers are converted to .remove_new() which already returns
      void.
      
      Trivially convert this driver from always returning zero in the remove
      callback to the void returning variant.
      
      Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Signed-off-by: default avatarYangtao Li <frank.li@vivo.com>
      Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      8d09c46a
    • Yangtao Li's avatar
      cpufreq: brcmstb-avs-cpufreq: Convert to platform remove callback returning void · f1154d65
      Yangtao Li authored
      
      
      The .remove() callback for a platform driver returns an int which makes
      many driver authors wrongly assume it's possible to do error handling by
      returning an error code. However the value returned is (mostly) ignored
      and this typically results in resource leaks. To improve here there is a
      quest to make the remove callback return void. In the first step of this
      quest all drivers are converted to .remove_new() which already returns
      void.
      
      Trivially convert this driver from always returning zero in the remove
      callback to the void returning variant.
      
      Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Signed-off-by: default avatarYangtao Li <frank.li@vivo.com>
      Reviewed-by: default avatarFlorian Fainelli <florian.fainelli@broadcom.com>
      Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      f1154d65
    • Yangtao Li's avatar
      cpufreq: tegra194: Convert to platform remove callback returning void · 552f8df8
      Yangtao Li authored
      
      
      The .remove() callback for a platform driver returns an int which makes
      many driver authors wrongly assume it's possible to do error handling by
      returning an error code. However the value returned is (mostly) ignored
      and this typically results in resource leaks. To improve here there is a
      quest to make the remove callback return void. In the first step of this
      quest all drivers are converted to .remove_new() which already returns
      void.
      
      Trivially convert this driver from always returning zero in the remove
      callback to the void returning variant.
      
      Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Signed-off-by: default avatarYangtao Li <frank.li@vivo.com>
      Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      552f8df8
    • Yangtao Li's avatar
      cpufreq: scpi: Convert to platform remove callback returning void · d5aa35fc
      Yangtao Li authored
      
      
      The .remove() callback for a platform driver returns an int which makes
      many driver authors wrongly assume it's possible to do error handling by
      returning an error code. However the value returned is (mostly) ignored
      and this typically results in resource leaks. To improve here there is a
      quest to make the remove callback return void. In the first step of this
      quest all drivers are converted to .remove_new() which already returns
      void.
      
      Trivially convert this driver from always returning zero in the remove
      callback to the void returning variant.
      
      Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Signed-off-by: default avatarYangtao Li <frank.li@vivo.com>
      Reviewed-by: default avatarSudeep Holla <sudeep.holla@arm.com>
      Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      d5aa35fc
    • Yangtao Li's avatar
      cpufreq: mediatek-hw: Convert to platform remove callback returning void · b68ea4c2
      Yangtao Li authored
      
      
      The .remove() callback for a platform driver returns an int which makes
      many driver authors wrongly assume it's possible to do error handling by
      returning an error code. However the value returned is (mostly) ignored
      and this typically results in resource leaks. To improve here there is a
      quest to make the remove callback return void. In the first step of this
      quest all drivers are converted to .remove_new() which already returns
      void.
      
      Trivially convert this driver from always returning zero in the remove
      callback to the void returning variant.
      
      Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Signed-off-by: default avatarYangtao Li <frank.li@vivo.com>
      Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      b68ea4c2
    • Yangtao Li's avatar
      cpufreq: imx6q: Convert to platform remove callback returning void · 1d61b32e
      Yangtao Li authored
      
      
      The .remove() callback for a platform driver returns an int which makes
      many driver authors wrongly assume it's possible to do error handling by
      returning an error code. However the value returned is (mostly) ignored
      and this typically results in resource leaks. To improve here there is a
      quest to make the remove callback return void. In the first step of this
      quest all drivers are converted to .remove_new() which already returns
      void.
      
      Trivially convert this driver from always returning zero in the remove
      callback to the void returning variant.
      
      Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Signed-off-by: default avatarYangtao Li <frank.li@vivo.com>
      Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      1d61b32e
    • Yangtao Li's avatar
      cpufreq: vexpress: Convert to platform remove callback returning void · 9ffb053d
      Yangtao Li authored
      
      
      The .remove() callback for a platform driver returns an int which makes
      many driver authors wrongly assume it's possible to do error handling by
      returning an error code. However the value returned is (mostly) ignored
      and this typically results in resource leaks. To improve here there is a
      quest to make the remove callback return void. In the first step of this
      quest all drivers are converted to .remove_new() which already returns
      void.
      
      Trivially convert this driver from always returning zero in the remove
      callback to the void returning variant.
      
      Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Signed-off-by: default avatarYangtao Li <frank.li@vivo.com>
      Reviewed-by: default avatarSudeep Holla <sudeep.holla@arm.com>
      Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      9ffb053d
    • Yangtao Li's avatar
      cpufreq: qcom-cpufreq-hw: Convert to platform remove callback returning void · 573d54db
      Yangtao Li authored
      
      
      The .remove() callback for a platform driver returns an int which makes
      many driver authors wrongly assume it's possible to do error handling by
      returning an error code. However the value returned is (mostly) ignored
      and this typically results in resource leaks. To improve here there is a
      quest to make the remove callback return void. In the first step of this
      quest all drivers are converted to .remove_new() which already returns
      void.
      
      Trivially convert this driver from always returning zero in the remove
      callback to the void returning variant.
      
      Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Signed-off-by: default avatarYangtao Li <frank.li@vivo.com>
      Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      573d54db
    • Yangtao Li's avatar
      cpufreq: dt: Convert to platform remove callback returning void · 18da4176
      Yangtao Li authored
      
      
      The .remove() callback for a platform driver returns an int which makes
      many driver authors wrongly assume it's possible to do error handling by
      returning an error code. However the value returned is (mostly) ignored
      and this typically results in resource leaks. To improve here there is a
      quest to make the remove callback return void. In the first step of this
      quest all drivers are converted to .remove_new() which already returns
      void.
      
      Trivially convert this driver from always returning zero in the remove
      callback to the void returning variant.
      
      Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Signed-off-by: default avatarYangtao Li <frank.li@vivo.com>
      Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      18da4176
    • Yangtao Li's avatar
      cpufreq: sun50i: Convert to platform remove callback returning void · a7fb1727
      Yangtao Li authored
      
      
      The .remove() callback for a platform driver returns an int which makes
      many driver authors wrongly assume it's possible to do error handling by
      returning an error code. However the value returned is (mostly) ignored
      and this typically results in resource leaks. To improve here there is a
      quest to make the remove callback return void. In the first step of this
      quest all drivers are converted to .remove_new() which already returns
      void.
      
      Trivially convert this driver from always returning zero in the remove
      callback to the void returning variant.
      
      Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Signed-off-by: default avatarYangtao Li <frank.li@vivo.com>
      Acked-by: default avatarJernej Škrabec <jernej.skrabec@gmail.com>
      Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      a7fb1727
    • Rob Herring's avatar
      cpufreq: Explicitly include correct DT includes · a70eb93a
      Rob Herring authored
      
      
      The DT of_device.h and of_platform.h date back to the separate
      of_platform_bus_type before it as merged into the regular platform bus.
      As part of that merge prepping Arm DT support 13 years ago, they
      "temporarily" include each other. They also include platform_device.h
      and of.h. As a result, there's a pretty much random mix of those include
      files used throughout the tree. In order to detangle these headers and
      replace the implicit includes with struct declarations, users need to
      explicitly include the correct includes.
      
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      Acked-by: default avatarRafael J. Wysocki <rafael@kernel.org>
      Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      a70eb93a
  8. Jul 10, 2023