summaryrefslogtreecommitdiff
path: root/drivers/net/phy/spi_ks8995.c
diff options
context:
space:
mode:
authorBlomme, Maarten <Maarten.Blomme@flir.com>2017-03-02 15:08:49 +0300
committerDavid S. Miller <davem@davemloft.net>2017-03-08 00:33:24 +0300
commit239870f2a0ebf75cc8f6d987dc528c5243f93d69 (patch)
treed4c871da1c94b8d8c5ac85443a58f710469961c0 /drivers/net/phy/spi_ks8995.c
parent4342696df764ec65dcdfbd0c10d90ea52505f8ba (diff)
downloadlinux-239870f2a0ebf75cc8f6d987dc528c5243f93d69.tar.xz
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.c2
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)