Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 24459
b: refs/heads/master
c: 8637980
h: refs/heads/master
i:
  24457: 313a977
  24455: d003708
v: v3
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Mar 28, 2006
1 parent f056d68 commit 67e6b17
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: a687fb18cbd061de2092632cf77e6b9dc93cf7cd
refs/heads/master: 8637980bab3f09157eef20cc65d2eb7393c770fd
8 changes: 5 additions & 3 deletions trunk/drivers/block/paride/pg.c
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,8 @@ static ssize_t pg_read(struct file *filp, char __user *buf, size_t count, loff_t

static int __init pg_init(void)
{
int unit, err = 0;
int unit;
int err;

if (disable){
err = -1;
Expand All @@ -657,16 +658,17 @@ static int __init pg_init(void)
goto out;
}

if (register_chrdev(major, name, &pg_fops)) {
err = register_chrdev(major, name, &pg_fops);
if (err < 0) {
printk("pg_init: unable to get major number %d\n", major);
for (unit = 0; unit < PG_UNITS; unit++) {
struct pg *dev = &devices[unit];
if (dev->present)
pi_release(dev->pi);
}
err = -1;
goto out;
}
major = err; /* In case the user specified `major=0' (dynamic) */
pg_class = class_create(THIS_MODULE, "pg");
if (IS_ERR(pg_class)) {
err = PTR_ERR(pg_class);
Expand Down

0 comments on commit 67e6b17

Please sign in to comment.