Skip to content

Commit

Permalink
spi_ks8995: regs_size incorrect for some devices
Browse files Browse the repository at this point in the history
Signed-off-by: Maarten Blomme <Maarten.Blomme@flir.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Blomme, Maarten authored and David S. Miller committed Mar 7, 2017
1 parent 4342696 commit 239870f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/phy/spi_ks8995.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 239870f

Please sign in to comment.