diff options
| author | Dmitry Torokhov <[email protected]> | 2023-08-30 16:06:38 -0700 | 
|---|---|---|
| committer | Dmitry Torokhov <[email protected]> | 2023-08-30 16:06:38 -0700 | 
| commit | 1ac731c529cd4d6adbce134754b51ff7d822b145 (patch) | |
| tree | 143ab3f35ca5f3b69f583c84e6964b17139c2ec1 /drivers/regulator/stm32-pwr.c | |
| parent | 07b4c950f27bef0362dc6ad7ee713aab61d58149 (diff) | |
| parent | 54116d442e001e1b6bd482122043b1870998a1f3 (diff) | |
Merge branch 'next' into for-linus
Prepare input updates for 6.6 merge window.
Diffstat (limited to 'drivers/regulator/stm32-pwr.c')
| -rw-r--r-- | drivers/regulator/stm32-pwr.c | 9 | 
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/regulator/stm32-pwr.c b/drivers/regulator/stm32-pwr.c index 2a42acb7c24e..0e101dff6dda 100644 --- a/drivers/regulator/stm32-pwr.c +++ b/drivers/regulator/stm32-pwr.c @@ -129,17 +129,16 @@ static const struct regulator_desc stm32_pwr_desc[] = {  static int stm32_pwr_regulator_probe(struct platform_device *pdev)  { -	struct device_node *np = pdev->dev.of_node;  	struct stm32_pwr_reg *priv;  	void __iomem *base;  	struct regulator_dev *rdev;  	struct regulator_config config = { };  	int i, ret = 0; -	base = of_iomap(np, 0); -	if (!base) { +	base = devm_platform_ioremap_resource(pdev, 0); +	if (IS_ERR(base)) {  		dev_err(&pdev->dev, "Unable to map IO memory\n"); -		return -ENOMEM; +		return PTR_ERR(base);  	}  	config.dev = &pdev->dev; @@ -176,6 +175,7 @@ static struct platform_driver stm32_pwr_driver = {  	.probe = stm32_pwr_regulator_probe,  	.driver = {  		.name  = "stm32-pwr-regulator", +		.probe_type = PROBE_PREFER_ASYNCHRONOUS,  		.of_match_table = of_match_ptr(stm32_pwr_of_match),  	},  }; @@ -183,4 +183,3 @@ module_platform_driver(stm32_pwr_driver);  MODULE_DESCRIPTION("STM32MP1 PWR voltage regulator driver");  MODULE_AUTHOR("Pascal Paillet <[email protected]>"); -MODULE_LICENSE("GPL v2");  |