diff options
Diffstat (limited to 'drivers/net/ethernet/ibm')
| -rw-r--r-- | drivers/net/ethernet/ibm/emac/core.c | 8 | ||||
| -rw-r--r-- | drivers/net/ethernet/ibm/emac/rgmii.c | 2 | ||||
| -rw-r--r-- | drivers/net/ethernet/ibm/ibmvnic.h | 2 | 
3 files changed, 6 insertions, 6 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) diff --git a/drivers/net/ethernet/ibm/emac/rgmii.c b/drivers/net/ethernet/ibm/emac/rgmii.c index 242ef976fd15..50358cf00130 100644 --- a/drivers/net/ethernet/ibm/emac/rgmii.c +++ b/drivers/net/ethernet/ibm/emac/rgmii.c @@ -242,7 +242,7 @@ static int rgmii_probe(struct platform_device *ofdev)  	}  	/* Check for RGMII flags */ -	if (of_get_property(ofdev->dev.of_node, "has-mdio", NULL)) +	if (of_property_read_bool(ofdev->dev.of_node, "has-mdio"))  		dev->flags |= EMAC_RGMII_FLAG_HAS_MDIO;  	/* CAB lacks the right properties, fix this up */ diff --git a/drivers/net/ethernet/ibm/ibmvnic.h b/drivers/net/ethernet/ibm/ibmvnic.h index b35c9b6f913b..4e18b4cefa97 100644 --- a/drivers/net/ethernet/ibm/ibmvnic.h +++ b/drivers/net/ethernet/ibm/ibmvnic.h @@ -75,7 +75,7 @@   * pool for the 4MB. Thus the 16 Rx and Tx queues require 32 * 5 = 160   * plus 16 for the TSO pools for a total of 176 LTB mappings per VNIC.   */ -#define IBMVNIC_ONE_LTB_MAX	((u32)((1 << (MAX_ORDER - 1)) * PAGE_SIZE)) +#define IBMVNIC_ONE_LTB_MAX	((u32)((1 << MAX_ORDER) * PAGE_SIZE))  #define IBMVNIC_ONE_LTB_SIZE	min((u32)(8 << 20), IBMVNIC_ONE_LTB_MAX)  #define IBMVNIC_LTB_SET_SIZE	(38 << 20)  |