summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBlomme, Maarten <Maarten.Blomme@flir.com>2017-03-02 13:08:36 +0100
committerDavid S. Miller <davem@davemloft.net>2017-03-07 13:33:23 -0800
commit4342696df764ec65dcdfbd0c10d90ea52505f8ba (patch)
treee00cb69c140fcff83176cd81bccf198590849189
parent0253f2681f4445e9003fb27dc743ef7d25e8f3b9 (diff)
downloadlinux-4342696df764ec65dcdfbd0c10d90ea52505f8ba.tar.bz2
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>
-rw-r--r--drivers/net/phy/spi_ks8995.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/phy/spi_ks8995.c b/drivers/net/phy/spi_ks8995.c
index 93ffedfa2994..aa7209d794f3 100644
--- a/drivers/net/phy/spi_ks8995.c
+++ b/drivers/net/phy/spi_ks8995.c
@@ -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",