net: phy: leds: Break dependency of phy.h on phy_led_triggers.h
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 25 Jan 2017 10:39:49 +0000 (11:39 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Jan 2017 19:40:19 +0000 (14:40 -0500)
<linux/phy.h> includes <linux/phy_led_triggers.h>, which is not really
needed.  Drop the include from <linux/phy.h>, and add it to all users
that didn't include it explicitly.

Suggested-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy.c
drivers/net/phy/phy_led_triggers.c
include/linux/phy.h

index e687a9cb4a37525090c74af6505706b331dfc111..7cc1b7dcfe058fe48cb7209499caa1073ad2c1e9 100644 (file)
@@ -29,6 +29,7 @@
 #include <linux/mii.h>
 #include <linux/ethtool.h>
 #include <linux/phy.h>
+#include <linux/phy_led_triggers.h>
 #include <linux/timer.h>
 #include <linux/workqueue.h>
 #include <linux/mdio.h>
index 3f619e7371e97d8a8455d1bd4008368f2faeeca6..94ca42e630bbead0c4fcae0b2ef6c8b19296bb69 100644 (file)
@@ -12,6 +12,7 @@
  */
 #include <linux/leds.h>
 #include <linux/phy.h>
+#include <linux/phy_led_triggers.h>
 #include <linux/netdevice.h>
 
 static struct phy_led_trigger *phy_speed_to_led_trigger(struct phy_device *phy,
index f7d95f644eed9b7a15581a490a19a18ea68b050e..7fc1105605bfd2334dab7fd6e96f25a2c33ed566 100644 (file)
@@ -25,7 +25,6 @@
 #include <linux/timer.h>
 #include <linux/workqueue.h>
 #include <linux/mod_devicetable.h>
-#include <linux/phy_led_triggers.h>
 
 #include <linux/atomic.h>