Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 58682
b: refs/heads/master
c: 105b1bc
h: refs/heads/master
v: v3
  • Loading branch information
Robert P. J. Day authored and Ralf Baechle committed Jul 10, 2007
1 parent 664517a commit 4748f63
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 569fb7536ea66e3364a8ff0b26598c6c9874d657
refs/heads/master: 105b1bca4d7bed85bb296f7e7caec2fc643e9fbf
30 changes: 17 additions & 13 deletions trunk/arch/mips/philips/pnx8550/common/proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,29 +78,33 @@ static int pnx8550_proc_init( void )
{

// Create /proc/pnx8550
pnx8550_dir = create_proc_entry("pnx8550", S_IFDIR|S_IRUGO, NULL);
pnx8550_dir = proc_mkdir("pnx8550", NULL);
if (!pnx8550_dir) {
printk(KERN_ERR "Can't create pnx8550 proc dir\n");
return -1;
}

// Create /proc/pnx8550/timers
pnx8550_timers = create_proc_entry("timers", S_IFREG|S_IRUGO, pnx8550_dir );
if (pnx8550_timers){
pnx8550_timers->read_proc = pnx8550_timers_read;
}
else {
pnx8550_timers = create_proc_read_entry(
"timers",
0,
pnx8550_dir,
pnx8550_timers_read,
NULL);

if (!pnx8550_timers)
printk(KERN_ERR "Can't create pnx8550 timers proc file\n");
}

// Create /proc/pnx8550/registers
pnx8550_registers = create_proc_entry("registers", S_IFREG|S_IRUGO, pnx8550_dir );
if (pnx8550_registers){
pnx8550_registers->read_proc = pnx8550_registers_read;
}
else {
pnx8550_registers = create_proc_read_entry(
"registers",
0,
pnx8550_dir,
pnx8550_registers_read,
NULL);

if (!pnx8550_registers)
printk(KERN_ERR "Can't create pnx8550 registers proc file\n");
}

return 0;
}
Expand Down

0 comments on commit 4748f63

Please sign in to comment.