PM: domains: Move the verification of in-params from genpd_add_device()
authorUlf Hansson <ulf.hansson@linaro.org>
Tue, 30 May 2023 09:55:36 +0000 (11:55 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 16 Jun 2023 17:39:51 +0000 (19:39 +0200)
commit4384a70c8813e8573d1841fd94eee873f80a7e1a
treee180b4cb400517ebc6e7d9e5c5b6e709c5821666
parente5d1c8722083f0332dcd3c85fa1273d85fb6bed8
PM: domains: Move the verification of in-params from genpd_add_device()

Commit f38d1a6d0025 ("PM: domains: Allocate governor data dynamically
based on a genpd governor") started to use the in-parameters in
genpd_add_device(), without first doing a verification of them.

This isn't really a big problem, as most callers do a verification already.

Therefore, let's drop the verification from genpd_add_device() and make
sure all the callers take care of it instead.

Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Fixes: f38d1a6d0025 ("PM: domains: Allocate governor data dynamically based on a genpd governor")
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/domain.c