openwrtv3/target
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
..
imagebuilder target/imagebuilder: Switch to xz compression instead of bz2 2016-10-15 11:36:51 +02:00
linux net: ar8216: prevent device duplication in ar8xxx_dev_list 2016-12-01 15:47:43 +01:00
sdk docs: remove all refrences in Makefiles/scripts 2016-11-30 10:13:14 +01:00
toolchain target/toolchain: Fix toolchain packaging without package build 2016-09-06 11:40:12 +02:00
Config.in kernel: add plan 9 fs package 2016-08-11 10:45:33 +02:00
Makefile sdk: depend on linux/install 2016-11-04 16:14:51 +01:00