[PATCH] mark struct file_operations const 5
[powerpc.git] / drivers / pci / hotplug / cpqphp_sysfs.c
index bbfeed7..a13abf5 100644 (file)
  *
  */
 
-#include <linux/config.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/types.h>
 #include <linux/proc_fs.h>
 #include <linux/workqueue.h>
 #include <linux/pci.h>
+#include <linux/pci_hotplug.h>
 #include <linux/debugfs.h>
 #include "cpqphp.h"
 
@@ -141,7 +141,7 @@ struct ctrl_dbg {
 
 static int open(struct inode *inode, struct file *file)
 {
-       struct controller *ctrl = inode->u.generic_ip;
+       struct controller *ctrl = inode->i_private;
        struct ctrl_dbg *dbg;
        int retval = -ENOMEM;
 
@@ -202,7 +202,7 @@ static int release(struct inode *inode, struct file *file)
        return 0;
 }
 
-static struct file_operations debug_ops = {
+static const struct file_operations debug_ops = {
        .owner = THIS_MODULE,
        .open = open,
        .llseek = lseek,