Commit 90d40252 authored by Casper Andersson's avatar Casper Andersson Committed by David S. Miller

net: sparx5: Add #include to remove warning

main.h uses NUM_TARGETS from main_regs.h, but
the missing include never causes any errors
because everywhere main.h is (currently)
included, main_regs.h is included before.
But since it is dependent on main_regs.h
it should always be included.
Signed-off-by: default avatarCasper Andersson <casper.casan@gmail.com>
Reviewed-by: default avatarJoacim Zetterling <joacim.zetterling@westermo.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4d08b7b5
...@@ -16,6 +16,8 @@ ...@@ -16,6 +16,8 @@
#include <linux/phylink.h> #include <linux/phylink.h>
#include <linux/hrtimer.h> #include <linux/hrtimer.h>
#include "sparx5_main_regs.h"
/* Target chip type */ /* Target chip type */
enum spx5_target_chiptype { enum spx5_target_chiptype {
SPX5_TARGET_CT_7546 = 0x7546, /* SparX-5-64 Enterprise */ SPX5_TARGET_CT_7546 = 0x7546, /* SparX-5-64 Enterprise */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment