summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBlomme, Maarten <Maarten.Blomme@flir.com>2017-03-02 13:08:36 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-12-14 09:28:20 +0100
commit1ace4dabf62472549744480d27f37d11c1a7cf9a (patch)
treed5a7740ebb2a08fd594aa828b39a97edbb1d5238
parentb1f71147a1883fff0535f1bd12fca3839e54aadc (diff)
downloadlinux-stable-1ace4dabf62472549744480d27f37d11c1a7cf9a.tar.gz
linux-stable-1ace4dabf62472549744480d27f37d11c1a7cf9a.tar.bz2
linux-stable-1ace4dabf62472549744480d27f37d11c1a7cf9a.zip
spi_ks8995: fix "BUG: key accdaa28 not in .data!"
[ Upstream commit 4342696df764ec65dcdfbd0c10d90ea52505f8ba ] Signed-off-by: Maarten Blomme <Maarten.Blomme@flir.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <alexander.levin@verizon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-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",