diff options
author | Blomme, Maarten <Maarten.Blomme@flir.com> | 2017-03-02 13:08:49 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-03-07 22:33:24 +0100 |
commit | 239870f2a0ebf75cc8f6d987dc528c5243f93d69 (patch) | |
tree | d4c871da1c94b8d8c5ac85443a58f710469961c0 /drivers/net/phy/spi_ks8995.c | |
parent | spi_ks8995: fix "BUG: key accdaa28 not in .data!" (diff) | |
download | linux-239870f2a0ebf75cc8f6d987dc528c5243f93d69.tar.xz linux-239870f2a0ebf75cc8f6d987dc528c5243f93d69.zip |
spi_ks8995: regs_size incorrect for some devices
Signed-off-by: Maarten Blomme <Maarten.Blomme@flir.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/spi_ks8995.c')
-rw-r--r-- | drivers/net/phy/spi_ks8995.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/phy/spi_ks8995.c b/drivers/net/phy/spi_ks8995.c index aa7209d794f3..1e2d4f1179da 100644 --- a/drivers/net/phy/spi_ks8995.c +++ b/drivers/net/phy/spi_ks8995.c @@ -491,8 +491,8 @@ static int ks8995_probe(struct spi_device *spi) if (err) return err; - ks->regs_attr.size = ks->chip->regs_size; memcpy(&ks->regs_attr, &ks8995_registers_attr, sizeof(ks->regs_attr)); + ks->regs_attr.size = ks->chip->regs_size; err = ks8995_reset(ks); if (err) |