Message ID | 20201012135517.19468-4-frank@allwinnertech.com |
---|---|
State | New |
Headers | show |
Series | Introduce devm_pm_opp_set_* API | expand |
On 12-10-20, 21:55, Frank Lee wrote: > From: Yangtao Li <tiny.windzz@gmail.com> > > Use the devm_pm_opp_set_supported_hw() to avoid memory leaks in some cases. > > Signed-off-by: Yangtao Li <tiny.windzz@gmail.com> > Signed-off-by: Yangtao Li <frank@allwinnertech.com> > --- > drivers/gpu/drm/msm/adreno/a5xx_gpu.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/msm/adreno/a5xx_gpu.c b/drivers/gpu/drm/msm/adreno/a5xx_gpu.c > index 91726da82ed6..8d88f119a59f 100644 > --- a/drivers/gpu/drm/msm/adreno/a5xx_gpu.c > +++ b/drivers/gpu/drm/msm/adreno/a5xx_gpu.c > @@ -1487,7 +1487,7 @@ static void check_speed_bin(struct device *dev) > nvmem_cell_put(cell); > } > > - dev_pm_opp_set_supported_hw(dev, &val, 1); > + devm_pm_opp_set_supported_hw(dev, &val, 1); > } > > struct msm_gpu *a5xx_gpu_init(struct drm_device *dev) Rob: Can I have your Ack to pick this patch up please ?
diff --git a/drivers/gpu/drm/msm/adreno/a5xx_gpu.c b/drivers/gpu/drm/msm/adreno/a5xx_gpu.c index 91726da82ed6..8d88f119a59f 100644 --- a/drivers/gpu/drm/msm/adreno/a5xx_gpu.c +++ b/drivers/gpu/drm/msm/adreno/a5xx_gpu.c @@ -1487,7 +1487,7 @@ static void check_speed_bin(struct device *dev) nvmem_cell_put(cell); } - dev_pm_opp_set_supported_hw(dev, &val, 1); + devm_pm_opp_set_supported_hw(dev, &val, 1); } struct msm_gpu *a5xx_gpu_init(struct drm_device *dev)