|
@@ -231,6 +231,7 @@ static int proc_udc_open(struct inode *inode, struct file *file)
|
|
}
|
|
}
|
|
|
|
|
|
static const struct file_operations proc_ops = {
|
|
static const struct file_operations proc_ops = {
|
|
|
|
+ .owner = THIS_MODULE,
|
|
.open = proc_udc_open,
|
|
.open = proc_udc_open,
|
|
.read = seq_read,
|
|
.read = seq_read,
|
|
.llseek = seq_lseek,
|
|
.llseek = seq_lseek,
|
|
@@ -239,15 +240,7 @@ static const struct file_operations proc_ops = {
|
|
|
|
|
|
static void create_debug_file(struct at91_udc *udc)
|
|
static void create_debug_file(struct at91_udc *udc)
|
|
{
|
|
{
|
|
- struct proc_dir_entry *pde;
|
|
|
|
-
|
|
|
|
- pde = create_proc_entry (debug_filename, 0, NULL);
|
|
|
|
- udc->pde = pde;
|
|
|
|
- if (pde == NULL)
|
|
|
|
- return;
|
|
|
|
-
|
|
|
|
- pde->proc_fops = &proc_ops;
|
|
|
|
- pde->data = udc;
|
|
|
|
|
|
+ udc->pde = proc_create_data(debug_filename, 0, NULL, &proc_ops, udc);
|
|
}
|
|
}
|
|
|
|
|
|
static void remove_debug_file(struct at91_udc *udc)
|
|
static void remove_debug_file(struct at91_udc *udc)
|