summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorBlomme, Maarten <Maarten.Blomme@flir.com>2017-03-02 13:08:49 +0100
committerDavid S. Miller <davem@davemloft.net>2017-03-07 13:33:24 -0800
commit239870f2a0ebf75cc8f6d987dc528c5243f93d69 (patch)
treed4c871da1c94b8d8c5ac85443a58f710469961c0 /drivers
parent4342696df764ec65dcdfbd0c10d90ea52505f8ba (diff)
downloadlinux-239870f2a0ebf75cc8f6d987dc528c5243f93d69.tar.bz2
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')
-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)