From b9a54a98bee16ffefd808389bad9d4fe40f8dd11 Mon Sep 17 00:00:00 2001 From: Olivier Dufour Date: Tue, 28 May 2013 14:00:59 +0200 Subject: cleo/linux/drivers/net/phy: add getters in fixed driver, refs #4009 --- cleopatre/linux-2.6.25.10-spc300/include/linux/phy_fixed.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'cleopatre/linux-2.6.25.10-spc300/include') diff --git a/cleopatre/linux-2.6.25.10-spc300/include/linux/phy_fixed.h b/cleopatre/linux-2.6.25.10-spc300/include/linux/phy_fixed.h index 509d8f5f98..57922e5e6a 100644 --- a/cleopatre/linux-2.6.25.10-spc300/include/linux/phy_fixed.h +++ b/cleopatre/linux-2.6.25.10-spc300/include/linux/phy_fixed.h @@ -12,12 +12,22 @@ struct fixed_phy_status { #ifdef CONFIG_FIXED_PHY extern int fixed_phy_add(unsigned int irq, int phy_id, struct fixed_phy_status *status); +extern struct mii_bus *fixed_mii_get (void); +extern struct phy_device *fixed_phy_find (int phy_id); #else static inline int fixed_phy_add(unsigned int irq, int phy_id, struct fixed_phy_status *status) { return -ENODEV; } +static inline struct mii_bus *fixed_mii_get (void) +{ + return NULL; +} +static inline struct phy_device *fixed_phy_find (int phy_id) +{ + return NULL; +} #endif /* CONFIG_FIXED_PHY */ /* -- cgit v1.2.3