]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - arch/mips/txx9/generic/setup.c
init dynamic bin_attribute structures
[net-next-2.6.git] / arch / mips / txx9 / generic / setup.c
index 7174d830dd05824dfb4e1c925e39837bce8a1e16..95184a0a1ae6ced2829ae82edfbaabf60efc147b 100644 (file)
@@ -956,6 +956,7 @@ void __init txx9_sramc_init(struct resource *r)
        if (!dev->base)
                goto exit;
        dev->dev.cls = &txx9_sramc_sysdev_class;
+       sysfs_bin_attr_init(&dev->bindata_attr);
        dev->bindata_attr.attr.name = "bindata";
        dev->bindata_attr.attr.mode = S_IRUSR | S_IWUSR;
        dev->bindata_attr.read = txx9_sram_read;