]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/sh/mm/pmb.c
Merge branch 'for-rmk' of git://git.android.com/kernel into devel
[linux-2.6-omap-h63xx.git] / arch / sh / mm / pmb.c
index 46911bcbf17b01e53e92915c63a84db5616abe4d..84241676265e61455f4e9579f7cf41810601f1e9 100644 (file)
@@ -385,7 +385,7 @@ static const struct file_operations pmb_debugfs_fops = {
        .open           = pmb_debugfs_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
-       .release        = seq_release,
+       .release        = single_release,
 };
 
 static int __init pmb_debugfs_init(void)
@@ -394,6 +394,8 @@ static int __init pmb_debugfs_init(void)
 
        dentry = debugfs_create_file("pmb", S_IFREG | S_IRUGO,
                                     sh_debugfs_root, NULL, &pmb_debugfs_fops);
+       if (!dentry)
+               return -ENOMEM;
        if (IS_ERR(dentry))
                return PTR_ERR(dentry);