"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "drivers/net/phy/fixed_phy.c" between
linux-5.3-rc3.tar.gz and linux-5.3-rc4.tar.gz

About: The full source of the development Linux kernel 5.3 (release candidate).

fixed_phy.c  (linux-5.3-rc3):fixed_phy.c  (linux-5.3-rc4)
skipping to change at line 219 skipping to change at line 219
* As the fixed link is just a device tree node without any * As the fixed link is just a device tree node without any
* Linux device associated with it, we simply have obtain * Linux device associated with it, we simply have obtain
* the GPIO descriptor from the device tree like this. * the GPIO descriptor from the device tree like this.
*/ */
gpiod = gpiod_get_from_of_node(fixed_link_node, "link-gpios", 0, gpiod = gpiod_get_from_of_node(fixed_link_node, "link-gpios", 0,
GPIOD_IN, "mdio"); GPIOD_IN, "mdio");
of_node_put(fixed_link_node); of_node_put(fixed_link_node);
if (IS_ERR(gpiod)) { if (IS_ERR(gpiod)) {
if (PTR_ERR(gpiod) == -EPROBE_DEFER) if (PTR_ERR(gpiod) == -EPROBE_DEFER)
return gpiod; return gpiod;
pr_err("error getting GPIO for fixed link %pOF, proceed without\n
", if (PTR_ERR(gpiod) != -ENOENT)
fixed_link_node); pr_err("error getting GPIO for fixed link %pOF, proceed w
ithout\n",
fixed_link_node);
gpiod = NULL; gpiod = NULL;
} }
return gpiod; return gpiod;
} }
#else #else
static struct gpio_desc *fixed_phy_get_gpiod(struct device_node *np) static struct gpio_desc *fixed_phy_get_gpiod(struct device_node *np)
{ {
return NULL; return NULL;
} }
 End of changes. 1 change blocks. 
3 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)