]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'dsa-next'
authorDavid S. Miller <davem@davemloft.net>
Tue, 10 Mar 2015 03:50:26 +0000 (23:50 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Mar 2015 03:50:26 +0000 (23:50 -0400)
commit041db26172dd25b9659bb981f0f2449c3c4efbef
tree3e57589f3c8b06b02e895e2428a82433f5cb8bda
parenta66ef14b222ffd0f15f5caf6619d37e72bff3ee0
parent891a33095a6727c9c2fc505a53bed5fb0c60c7f9
Merge branch 'dsa-next'

Florian Fainelli says:

====================
net: dsa: remove restriction on platform_device

This patch series removes the restriction in DSA to operate exclusively with
platform_device Ethernet MAC drivers when using Device Tree. This basically
allows arbitrary Ethernet MAC drivers to be used now in conjunction with
Device Tree.

The reason was that DSA was using a of_find_device_by_node() which limits
the device_node to device pointer search exclusively to platform_device,
in our case, we are interested in doing a "class" research and lookup the
net_device.

Thanks to Chris Packham for testing this on his platform.

Changes in v2:

- fix build for !CONFIG_OF_NET
====================

Signed-off-by: David S. Miller <davem@davemloft.net>