Author: hauke Date: 2015-07-04 01:27:21 +0200 (Sat, 04 Jul 2015) New Revision: 46170
Modified: trunk/target/linux/generic/files/drivers/net/phy/b53/b53_priv.h Log: 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 <[email protected]> Modified: trunk/target/linux/generic/files/drivers/net/phy/b53/b53_priv.h =================================================================== --- trunk/target/linux/generic/files/drivers/net/phy/b53/b53_priv.h 2015-07-03 23:21:01 UTC (rev 46169) +++ trunk/target/linux/generic/files/drivers/net/phy/b53/b53_priv.h 2015-07-03 23:27:21 UTC (rev 46170) @@ -301,7 +301,12 @@ #ifdef CONFIG_BCM47XX +#include <linux/version.h> +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 1, 0)) +#include <linux/bcm47xx_nvram.h> +#else #include <bcm47xx_nvram.h> +#endif #include <bcm47xx_board.h> static inline int b53_switch_get_reset_gpio(struct b53_device *dev) { _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
