Skip to contentSkip to conversation

spi_ks8995: fix "BUG: key accdaa28 not in .data!"

PATCH New Maarten Blomme 1 participant 1 message Mar 2, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 spi_ks8995: fix "BUG: key accdaa28 not in .data!"

From: "Blomme, Maarten" <[email protected]>

---
 drivers/net/phy/spi_ks8995.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/phy/spi_ks8995.c +1 -0
index 93ffedf..aa7209d 100644
@@ -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",
Signature · 1 line
2.7.4