Commit 6bbc908c authored by Blomme, Maarten's avatar Blomme, Maarten Committed by Greg Kroah-Hartman

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


[ Upstream commit 4342696d ]
Signed-off-by: default avatarMaarten Blomme <Maarten.Blomme@flir.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <alexander.levin@verizon.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 68712145
......@@ -310,6 +310,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",
......
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