mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 11:03:43 +02:00
net: mdio-gpio: Use device_is_compatible()
Replace open coded variant of device_is_compatible(). Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
db77cdc696
commit
9d56c248e5
|
|
@ -132,8 +132,7 @@ static struct mii_bus *mdio_gpio_bus_init(struct device *dev,
|
|||
new_bus->phy_ignore_ta_mask = pdata->phy_ignore_ta_mask;
|
||||
}
|
||||
|
||||
if (dev->of_node &&
|
||||
of_device_is_compatible(dev->of_node, "microchip,mdio-smi0")) {
|
||||
if (device_is_compatible(dev, "microchip,mdio-smi0")) {
|
||||
bitbang->ctrl.op_c22_read = 0;
|
||||
bitbang->ctrl.op_c22_write = 0;
|
||||
bitbang->ctrl.override_op_c22 = 1;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user