Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 38535
b: refs/heads/master
c: ba9877b
h: refs/heads/master
i:
  38533: 1d33d0d
  38531: ca32708
  38527: 12f6d91
v: v3
  • Loading branch information
Kyle McMartin authored and Matthew Wilcox committed Oct 4, 2006
1 parent 58b83f6 commit 6681b60
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 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: 7886089e3c06518c5e65675a932922f915e20e77
refs/heads/master: ba9877b6734fb0313bca99ae2077613f24ff5b5c
16 changes: 10 additions & 6 deletions trunk/drivers/parisc/lba_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -1542,8 +1542,8 @@ lba_driver_probe(struct parisc_device *dev)
default: version = "TR4+";
}

printk(KERN_INFO "%s version %s (0x%x) found at 0x%lx\n",
MODULE_NAME, version, func_class & 0xf, dev->hpa.start);
printk(KERN_INFO "Elroy version %s (0x%x) found at 0x%lx\n",
version, func_class & 0xf, dev->hpa.start);

if (func_class < 2) {
printk(KERN_WARNING "Can't support LBA older than "
Expand All @@ -1563,14 +1563,18 @@ lba_driver_probe(struct parisc_device *dev)
}

} else if (IS_MERCURY(dev) || IS_QUICKSILVER(dev)) {
int major, minor;

func_class &= 0xff;
version = kmalloc(6, GFP_KERNEL);
snprintf(version, 6, "TR%d.%d",(func_class >> 4),(func_class & 0xf));
major = func_class >> 4, minor = func_class & 0xf;

/* We could use one printk for both Elroy and Mercury,
* but for the mask for func_class.
*/
printk(KERN_INFO "%s version %s (0x%x) found at 0x%lx\n",
MODULE_NAME, version, func_class & 0xff, dev->hpa.start);
printk(KERN_INFO "%s version TR%d.%d (0x%x) found at 0x%lx\n",
IS_MERCURY(dev) ? "Mercury" : "Quicksilver", major,
minor, func_class, dev->hpa.start);

cfg_ops = &mercury_cfg_ops;
} else {
printk(KERN_ERR "Unknown LBA found at 0x%lx\n", dev->hpa.start);
Expand Down

0 comments on commit 6681b60

Please sign in to comment.