Commit 4342696d authored by Blomme, Maarten's avatar Blomme, Maarten Committed by David S. Miller

spi_ks8995: fix "BUG: key accdaa28 not in .data!"

Signed-off-by: default avatarMaarten Blomme <Maarten.Blomme@flir.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0253f268
...@@ -498,6 +498,7 @@ static int ks8995_probe(struct spi_device *spi) ...@@ -498,6 +498,7 @@ static int ks8995_probe(struct spi_device *spi)
if (err) if (err)
return err; return err;
sysfs_attr_init(&ks->regs_attr.attr);
err = sysfs_create_bin_file(&spi->dev.kobj, &ks->regs_attr); err = sysfs_create_bin_file(&spi->dev.kobj, &ks->regs_attr);
if (err) { if (err) {
dev_err(&spi->dev, "unable to create sysfs file, err=%d\n", dev_err(&spi->dev, "unable to create sysfs file, err=%d\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment