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/mmc/host/omap_hsmmc.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/mmc/host/omap_hsmmc.c')
| -rw-r--r-- | drivers/mmc/host/omap_hsmmc.c | 14 | 
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index 4bd744755205..1e0f2d7774bd 100644 --- a/drivers/mmc/host/omap_hsmmc.c +++ b/drivers/mmc/host/omap_hsmmc.c @@ -1736,18 +1736,18 @@ static struct omap_hsmmc_platform_data *of_get_hsmmc_pdata(struct device *dev)  	if (legacy && legacy->name)  		pdata->name = legacy->name; -	if (of_find_property(np, "ti,dual-volt", NULL)) +	if (of_property_read_bool(np, "ti,dual-volt"))  		pdata->controller_flags |= OMAP_HSMMC_SUPPORTS_DUAL_VOLT; -	if (of_find_property(np, "ti,non-removable", NULL)) { +	if (of_property_read_bool(np, "ti,non-removable")) {  		pdata->nonremovable = true;  		pdata->no_regulator_off_init = true;  	} -	if (of_find_property(np, "ti,needs-special-reset", NULL)) +	if (of_property_read_bool(np, "ti,needs-special-reset"))  		pdata->features |= HSMMC_HAS_UPDATED_RESET; -	if (of_find_property(np, "ti,needs-special-hs-handling", NULL)) +	if (of_property_read_bool(np, "ti,needs-special-hs-handling"))  		pdata->features |= HSMMC_HAS_HSPE_SUPPORT;  	return pdata; @@ -1791,9 +1791,11 @@ static int omap_hsmmc_probe(struct platform_device *pdev)  	}  	res = platform_get_resource(pdev, IORESOURCE_MEM, 0); -	irq = platform_get_irq(pdev, 0); -	if (res == NULL || irq < 0) +	if (!res)  		return -ENXIO; +	irq = platform_get_irq(pdev, 0); +	if (irq < 0) +		return irq;  	base = devm_ioremap_resource(&pdev->dev, res);  	if (IS_ERR(base))  |