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/bcma/main.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/bcma/main.c')
| -rw-r--r-- | drivers/bcma/main.c | 11 | 
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/bcma/main.c b/drivers/bcma/main.c index 7b39f010bbb3..7061d3ee836a 100644 --- a/drivers/bcma/main.c +++ b/drivers/bcma/main.c @@ -14,6 +14,7 @@  #include <linux/slab.h>  #include <linux/of_address.h>  #include <linux/of_irq.h> +#include <linux/of_device.h>  #include <linux/of_platform.h>  MODULE_DESCRIPTION("Broadcom's specific AMBA driver"); @@ -140,17 +141,17 @@ static struct device_node *bcma_of_find_child_device(struct device *parent,  						     struct bcma_device *core)  {  	struct device_node *node; -	u64 size; -	const __be32 *reg; +	int ret;  	if (!parent->of_node)  		return NULL;  	for_each_child_of_node(parent->of_node, node) { -		reg = of_get_address(node, 0, &size, NULL); -		if (!reg) +		struct resource res; +		ret = of_address_to_resource(node, 0, &res); +		if (ret)  			continue; -		if (of_translate_address(node, reg) == core->addr) +		if (res.start == core->addr)  			return node;  	}  	return NULL;  |