Skip to content

Commit

Permalink
spi_ks8995: fix "BUG: key accdaa28 not in .data!"
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 0253f26 commit 4342696
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/phy/spi_ks8995.c
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,7 @@ static int ks8995_probe(struct spi_device *spi)
if (err)
return err;

sysfs_attr_init(&ks->regs_attr.attr);
err = sysfs_create_bin_file(&spi->dev.kobj, &ks->regs_attr);
if (err) {
dev_err(&spi->dev, "unable to create sysfs file, err=%d\n",
Expand Down

0 comments on commit 4342696

Please sign in to comment.