sysfs: Invoke iomem_get_mapping() from the sysfs open callback
[linux-2.6-block.git] / fs / sysfs / file.c
index 9aefa7779b29af4197894f00fd4091eb1315725c..a3ee4c32a264d03a77a0eb33601d9bdc9e839213 100644 (file)
@@ -175,7 +175,7 @@ static int sysfs_kf_bin_open(struct kernfs_open_file *of)
        struct bin_attribute *battr = of->kn->priv;
 
        if (battr->mapping)
-               of->file->f_mapping = battr->mapping;
+               of->file->f_mapping = battr->mapping();
 
        return 0;
 }