diff options
author | Blomme, Maarten <Maarten.Blomme@flir.com> | 2017-03-02 15:08:36 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-12-16 12:33:53 +0300 |
commit | 6bbc908cfc1ce230fe14ae00b316f427e77a56d1 (patch) | |
tree | 7639980d674ea72e294151f0e2bc11f9389f9b0b /drivers/net/phy | |
parent | 6871214530050eba6a7fa41245a73af30945b58d (diff) | |
download | linux-6bbc908cfc1ce230fe14ae00b316f427e77a56d1.tar.xz |
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>
Diffstat (limited to 'drivers/net/phy')
-rw-r--r-- | drivers/net/phy/spi_ks8995.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/phy/spi_ks8995.c b/drivers/net/phy/spi_ks8995.c index c72c42206850..21d22f86134e 100644 --- a/drivers/net/phy/spi_ks8995.c +++ b/drivers/net/phy/spi_ks8995.c @@ -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", |