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/net/ethernet/ibm/emac/core.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/net/ethernet/ibm/emac/core.c')
| -rw-r--r-- | drivers/net/ethernet/ibm/emac/core.c | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/ethernet/ibm/emac/core.c b/drivers/net/ethernet/ibm/emac/core.c index 9b08e41ccc29..c97095abd26a 100644 --- a/drivers/net/ethernet/ibm/emac/core.c +++ b/drivers/net/ethernet/ibm/emac/core.c @@ -2939,9 +2939,9 @@ static int emac_init_config(struct emac_instance *dev)  	}  	/* Fixup some feature bits based on the device tree */ -	if (of_get_property(np, "has-inverted-stacr-oc", NULL)) +	if (of_property_read_bool(np, "has-inverted-stacr-oc"))  		dev->features |= EMAC_FTR_STACR_OC_INVERT; -	if (of_get_property(np, "has-new-stacr-staopc", NULL)) +	if (of_property_read_bool(np, "has-new-stacr-staopc"))  		dev->features |= EMAC_FTR_HAS_NEW_STACR;  	/* CAB lacks the appropriate properties */ @@ -3042,7 +3042,7 @@ static int emac_probe(struct platform_device *ofdev)  	 * property here for now, but new flat device trees should set a  	 * status property to "disabled" instead.  	 */ -	if (of_get_property(np, "unused", NULL) || !of_device_is_available(np)) +	if (of_property_read_bool(np, "unused") || !of_device_is_available(np))  		return -ENODEV;  	/* Find ourselves in the bootlist if we are there */ @@ -3333,7 +3333,7 @@ static void __init emac_make_bootlist(void)  		if (of_match_node(emac_match, np) == NULL)  			continue; -		if (of_get_property(np, "unused", NULL)) +		if (of_property_read_bool(np, "unused"))  			continue;  		idx = of_get_property(np, "cell-index", NULL);  		if (idx == NULL)  |