openwrtv4/target/linux/generic/files
Pavel Kubelun a3454d1929 net: ar8216: prevent device duplication in ar8xxx_dev_list
Import from fd7b89dd46%5E%21/#F0
Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>

CHROMIUM: drivers: ar8216: prevent device duplication in ar8xxx_dev_list

If probe is called twice, once for PHY0 and a second time for PHY4,
the same switch device will be added twice to ar8xxx_dev_list, while
supposedly this list should have one element per hardware switch present
in the system.

While no negative impact have been observed, it does happen if a
platform instanciates these two PHYs from device-tree, as an example.

Change-Id: Iddcbdf7d4adacb0af01975b73f8e56b4582e894e
Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>
Reviewed-on: https://chromium-review.googlesource.com/234790
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Toshi Kikuchi <toshik@chromium.org>
Tested-by: Toshi Kikuchi <toshik@chromium.org>
2016-12-01 15:47:43 +01:00
..
arch/mips/fw/myloader rename target/linux/generic-2.6 to generic 2010-06-26 20:42:58 +00:00
Documentation/networking kernel: drop dead pwm code 2013-08-18 01:25:41 +00:00
drivers net: ar8216: prevent device duplication in ar8xxx_dev_list 2016-12-01 15:47:43 +01:00
fs/yaffs2 yaffs2: remove __TIME__ __DATE__ macros 2015-09-11 16:33:12 +00:00
include ath9k: add support for the HSR tuner of the Ubiquiti UAP Outdoor+ 2016-11-15 18:54:06 +01:00