spi_ks8995: fix "BUG: key accdaa28 not in .data!"
authorBlomme, Maarten <Maarten.Blomme@flir.com>
Thu, 2 Mar 2017 12:08:36 +0000 (13:08 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Mar 2017 21:33:23 +0000 (13:33 -0800)
Signed-off-by: Maarten Blomme <Maarten.Blomme@flir.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/spi_ks8995.c

index 93ffedf..aa7209d 100644 (file)
@@ -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",