net: mdio: add a forward declaration for reset_control to mdio.h
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Fri, 26 Jun 2020 15:53:23 +0000 (17:53 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Jun 2020 20:40:09 +0000 (13:40 -0700)
This header refers to struct reset_control but doesn't include any reset
header. The structure definition is probably somehow indirectly pulled in
since no warnings are reported but for the sake of correctness add the
forward declaration for struct reset_control.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/mdio.h

index 36d2e0673d033b3804b19638b09c5a187b8e731f..898cbf00332a2e1124eee2895796f53a756e41cb 100644 (file)
@@ -18,6 +18,7 @@
 
 struct gpio_desc;
 struct mii_bus;
+struct reset_control;
 
 /* Multiple levels of nesting are possible. However typically this is
  * limited to nested DSA like layer, a MUX layer, and the normal