ia64/xen-unstable

changeset 614:fc9e10724592

bitkeeper revision 1.339.1.4 (3f128ae94K0MMoLR7Y6K_ZRrfo8Y1w)

vfr.c:
Fix registration of /proc/xeno/vfr
author kaf24@scramble.cl.cam.ac.uk
date Mon Jul 14 10:50:17 2003 +0000 (2003-07-14)
parents 75185d4cce5b
children 18c36f61f4cd ef9e002c0596
files xenolinux-2.4.21-sparse/arch/xeno/drivers/dom0/vfr.c
line diff
     1.1 --- a/xenolinux-2.4.21-sparse/arch/xeno/drivers/dom0/vfr.c	Mon Jul 14 10:33:12 2003 +0000
     1.2 +++ b/xenolinux-2.4.21-sparse/arch/xeno/drivers/dom0/vfr.c	Mon Jul 14 10:50:17 2003 +0000
     1.3 @@ -20,6 +20,8 @@ static struct proc_dir_entry *proc_vfr;
     1.4  
     1.5  static unsigned char readbuf[1024];
     1.6  
     1.7 +extern struct proc_dir_entry *xeno_base;
     1.8 +
     1.9  /* Helpers, implemented at the bottom. */
    1.10  u32 getipaddr(const char *buff, unsigned int len);
    1.11  u16 antous(const char *buff, int len);
    1.12 @@ -224,7 +226,7 @@ static int vfr_write_proc(struct file *f
    1.13  static int __init init_module(void)
    1.14  {
    1.15      *readbuf = '\0';
    1.16 -    proc_vfr = create_proc_entry ("xeno/vfr", 0600, &proc_root);
    1.17 +    proc_vfr = create_proc_entry ("vfr", 0600, xeno_base);
    1.18      if ( proc_vfr != NULL )
    1.19      {
    1.20          proc_vfr->owner      = THIS_MODULE;
    1.21 @@ -239,7 +241,7 @@ static int __init init_module(void)
    1.22  static void __exit cleanup_module(void)
    1.23  {
    1.24      if ( proc_vfr == NULL ) return;
    1.25 -    remove_proc_entry("xeno/vfr", &proc_root);
    1.26 +    remove_proc_entry("vfr", xeno_base);
    1.27      proc_vfr = NULL;
    1.28  }
    1.29