]> git.baikalelectronics.ru Git - kernel.git/commit
net/smsc911x: Correctly configure 16-bit register access from DT
authorDave Martin <dave.martin@linaro.org>
Tue, 13 Sep 2011 00:49:29 +0000 (00:49 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Sep 2011 19:18:31 +0000 (15:18 -0400)
commitaa5c818a0cdcb7fcc2bd5830128dbe70d7a5fd18
tree1edbdbb1946b154a9e929da18605afef9a998663
parent57dd14a85dad016339c757622a878fd74b720b04
net/smsc911x: Correctly configure 16-bit register access from DT

The SMSC911X_USE_16BIT needs to be set when using 16-bit register
access.  However, currently no flag is set if the device tree
doesn't specify 32-bit access, resulting in a BUG() and a non-
working driver when 16-bit register access is configured for
smsc911x in the DT.

This patch should set the SMSC911X_USE_16BIT flag in a manner
consistent with the documented DT bindings.

Signed-off-by: Dave Martin <dave.martin@linaro.org>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/smsc/smsc911x.c