]> git.sur5r.net Git - u-boot/commit
net: fm: fix spi flash probe for using driver model
authorQianyu Gong <qianyu.gong@nxp.com>
Wed, 3 Aug 2016 03:04:25 +0000 (11:04 +0800)
committerYork Sun <york.sun@nxp.com>
Wed, 14 Sep 2016 21:04:56 +0000 (14:04 -0700)
commit77b571da3b2c2fd46d6a80e4e045f3aae392d979
tree9606b1a8eafd775c4b648abc024007ddeccd186b
parent8cbb389bb3da80cbf8911f8386cbff92c6a78afe
net: fm: fix spi flash probe for using driver model

The current code would always use the speed and mode set by
CONFIG_ENV_SPI_MAX_HZ and CONFIG_ENV_SPI_MODE. But if using
SPI driver model it should get the values from DT.

Signed-off-by: Gong Qianyu <Qianyu.Gong@nxp.com>
Reviewed-by: Jagan Teki <jteki@openedev.com>
Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
Reviewed-by: York Sun <york.sun@nxp.com>
drivers/net/fm/fm.c