mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00: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
1 changed files with 1 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue