[Freedreno] [PATCH 00/15] make more driver use devm_of_platform_populate()

Benjamin Gaignard benjamin.gaignard at linaro.org
Mon May 29 15:45:48 UTC 2017


Number of calls to of_platform_populate() aren't unbalanced by a call to
of_platform_depopulate() that could generate issue will loading/unloading
the drivers. Make those drivers use devm_of_platform_populate() fix the problem
without need to add remove function.

In some case replacing of_platform_populate() by devm_of_platform_populate()
allow to delete driver remove function and save some lines of code.

This series of patches based on v4.12-rc3 tag.

CC: Alexandre Torgue <alexandre.torgue at st.com>
CC: David Airlie <airlied at linux.ie>
CC: Fabrice Gasnier <fabrice.gasnier at st.com>
CC: Hartmut Knaack <knaack.h at gmx.de>
CC: Jaroslav Kysela <perex at perex.cz>
CC: Javier Martinez Canillas <javier at osg.samsung.com>
CC: Jonathan Cameron <jic23 at kernel.org>
CC: Krzysztof Kozlowski <krzk at kernel.org>
CC: Kukjin Kim <kgene at kernel.org>
CC: Kyungmin Park <kyungmin.park at samsung.com>
CC: Lars-Peter Clausen <lars at metafoo.de>
CC: Lee Jones <lee.jones at linaro.org>
CC: Liam Girdwood <lgirdwood at gmail.com>
CC: Mark Brown <broonie at kernel.org>
CC: Mauro Carvalho Chehab <mchehab at kernel.org>
CC: Olivier Moysan <olivier.moysan at st.com>
CC: Rob Clark <robdclark at gmail.com>
CC: Shawn Guo <shawnguo at kernel.org>
CC: Sylwester Nawrocki <s.nawrocki at samsung.com>
CC: Takashi Iwai <tiwai at suse.com>
CC: Tony Lindgren <tony at atomide.com>

CC: linux-iio at vger.kernel.org
CC: linux-arm-kernel at lists.infradead.org
CC: linux-kernel at vger.kernel.org
CC: dri-devel at lists.freedesktop.org
CC: linux-arm-msm at vger.kernel.org
CC: freedreno at lists.freedesktop.org
CC: linux-samsung-soc at vger.kernel.org
CC: alsa-devel at alsa-project.org
CC: linux-media at vger.kernel.org

Benjamin Gaignard (15):
  iio: adc: stm32: use devm_of_platform_populate()
  iio: dac: stm32: use devm_of_platform_populate()
  drm: zte: use devm_of_platform_populate()
  drm: msm: use devm_of_platform_populate()
  mfd: stm32-timers: use devm_of_platform_populate
  mfd: atmel: use devm_of_platform_populate()
  mfd: cros_ec: use devm_of_platform_populate()
  mfd: exynos: use devm_of_platform_populate()
  mfd: fsl-imx25: use devm_of_platform_populate()
  mfd: motorola-cpcap: use devm_of_platform_populate()
  mfd: palmas: use devm_of_platform_populate()
  mfd: qcom-spmi-pmic: use devm_of_platform_populate()
  mfd: smsc-ece: use devm_of_platform_populate()
  sound: stm32: use devm_of_platform_populate()
  media: exynos4-is: use devm_of_platform_populate()

 drivers/gpu/drm/msm/msm_drv.c               | 10 ++--------
 drivers/gpu/drm/zte/zx_drm_drv.c            |  2 +-
 drivers/iio/adc/stm32-adc-core.c            |  4 +---
 drivers/iio/dac/stm32-dac-core.c            |  3 +--
 drivers/media/platform/exynos4-is/fimc-is.c |  7 ++-----
 drivers/mfd/atmel-flexcom.c                 |  2 +-
 drivers/mfd/cros_ec.c                       |  2 +-
 drivers/mfd/exynos-lpass.c                  |  2 +-
 drivers/mfd/fsl-imx25-tsadc.c               |  5 +----
 drivers/mfd/motorola-cpcap.c                | 13 +------------
 drivers/mfd/palmas.c                        |  2 +-
 drivers/mfd/qcom-spmi-pmic.c                |  9 +--------
 drivers/mfd/smsc-ece1099.c                  |  3 +--
 drivers/mfd/stm32-timers.c                  | 10 +---------
 sound/soc/stm/stm32_sai.c                   | 11 +----------
 15 files changed, 17 insertions(+), 68 deletions(-)

-- 
1.9.1



More information about the Freedreno mailing list