From d0aca89c18f39a3f64ad94bfde62231994f82a44 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Fri, 3 Jul 2015 23:27:21 +0000 Subject: [PATCH] kernel: b53: fix build with brcm47xx The position of the nvram header file on brcm47xx changed with kernel version 4.1. Signed-off-by: Hauke Mehrtens SVN-Revision: 46170 --- target/linux/generic/files/drivers/net/phy/b53/b53_priv.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/target/linux/generic/files/drivers/net/phy/b53/b53_priv.h b/target/linux/generic/files/drivers/net/phy/b53/b53_priv.h index 4336fdba66..0c4c394b4f 100644 --- a/target/linux/generic/files/drivers/net/phy/b53/b53_priv.h +++ b/target/linux/generic/files/drivers/net/phy/b53/b53_priv.h @@ -301,7 +301,12 @@ static inline int b53_write64(struct b53_device *dev, u8 page, u8 reg, #ifdef CONFIG_BCM47XX +#include +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 1, 0)) +#include +#else #include +#endif #include static inline int b53_switch_get_reset_gpio(struct b53_device *dev) { -- 2.34.1