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

Signed-off-by: Maarten Blomme <Maarten.Blomme@flir.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Blomme, Maarten 2017-03-02 13:08:36 +01:00 committed by David S. Miller
parent 0253f2681f
commit 4342696df7
1 changed files with 1 additions and 0 deletions

View File

@ -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",