From: Blomme, Maarten Date: Thu, 2 Mar 2017 12:08:36 +0000 (+0100) Subject: spi_ks8995: fix "BUG: key accdaa28 not in .data!" X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4342696df764ec65dcdfbd0c10d90ea52505f8ba;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git spi_ks8995: fix "BUG: key accdaa28 not in .data!" Signed-off-by: Maarten Blomme Signed-off-by: David S. Miller --- 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",