diff options
Diffstat (limited to 'arch/mips/philips')
-rw-r--r-- | arch/mips/philips/pnx8550/common/proc.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/mips/philips/pnx8550/common/proc.c b/arch/mips/philips/pnx8550/common/proc.c index 72a016767e09..3f097558ef13 100644 --- a/arch/mips/philips/pnx8550/common/proc.c +++ b/arch/mips/philips/pnx8550/common/proc.c | |||
@@ -79,10 +79,7 @@ static int pnx8550_proc_init( void ) | |||
79 | 79 | ||
80 | // Create /proc/pnx8550 | 80 | // Create /proc/pnx8550 |
81 | pnx8550_dir = create_proc_entry("pnx8550", S_IFDIR|S_IRUGO, NULL); | 81 | pnx8550_dir = create_proc_entry("pnx8550", S_IFDIR|S_IRUGO, NULL); |
82 | if (pnx8550_dir){ | 82 | if (!pnx8550_dir) { |
83 | pnx8550_dir->nlink = 1; | ||
84 | } | ||
85 | else { | ||
86 | printk(KERN_ERR "Can't create pnx8550 proc dir\n"); | 83 | printk(KERN_ERR "Can't create pnx8550 proc dir\n"); |
87 | return -1; | 84 | return -1; |
88 | } | 85 | } |
@@ -90,7 +87,6 @@ static int pnx8550_proc_init( void ) | |||
90 | // Create /proc/pnx8550/timers | 87 | // Create /proc/pnx8550/timers |
91 | pnx8550_timers = create_proc_entry("timers", S_IFREG|S_IRUGO, pnx8550_dir ); | 88 | pnx8550_timers = create_proc_entry("timers", S_IFREG|S_IRUGO, pnx8550_dir ); |
92 | if (pnx8550_timers){ | 89 | if (pnx8550_timers){ |
93 | pnx8550_timers->nlink = 1; | ||
94 | pnx8550_timers->read_proc = pnx8550_timers_read; | 90 | pnx8550_timers->read_proc = pnx8550_timers_read; |
95 | } | 91 | } |
96 | else { | 92 | else { |
@@ -100,7 +96,6 @@ static int pnx8550_proc_init( void ) | |||
100 | // Create /proc/pnx8550/registers | 96 | // Create /proc/pnx8550/registers |
101 | pnx8550_registers = create_proc_entry("registers", S_IFREG|S_IRUGO, pnx8550_dir ); | 97 | pnx8550_registers = create_proc_entry("registers", S_IFREG|S_IRUGO, pnx8550_dir ); |
102 | if (pnx8550_registers){ | 98 | if (pnx8550_registers){ |
103 | pnx8550_registers->nlink = 1; | ||
104 | pnx8550_registers->read_proc = pnx8550_registers_read; | 99 | pnx8550_registers->read_proc = pnx8550_registers_read; |
105 | } | 100 | } |
106 | else { | 101 | else { |