diff mbox

misc/eeprom/at25: init dynamic bin_attribute structures

Message ID 1268269062-24817-1-git-send-email-w.sang@pengutronix.de (mailing list archive)
State Superseded
Headers show

Commit Message

Wolfram Sang March 11, 2010, 12:57 a.m. UTC
None
diff mbox

Patch

diff --git a/drivers/misc/eeprom/at25.c b/drivers/misc/eeprom/at25.c
index d902d81..13e3814 100644
--- a/drivers/misc/eeprom/at25.c
+++ b/drivers/misc/eeprom/at25.c
@@ -351,6 +351,7 @@  static int at25_probe(struct spi_device *spi)
 	at25->bin.attr.mode = S_IRUSR;
 	at25->bin.read = at25_bin_read;
 	at25->mem.read = at25_mem_read;
+	sysfs_bin_attr_init(&at25->bin);
 
 	at25->bin.size = at25->chip.byte_len;
 	if (!(chip->flags & EE_READONLY)) {