#ifndef __GENERIC_PHY_H
#define __GENERIC_PHY_H
+struct ofnode_phandle_args;
/**
* struct phy - A handle to (allowing control of) a single phy port.
*/
static inline bool generic_phy_valid(struct phy *phy)
{
- return phy->dev != NULL;
+ return phy && phy->dev;
}
#endif /*__GENERIC_PHY_H */