mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-24 20:21:43 +00:00
Improve the status messages printed by the i2c-ali1563 driver.
This is a backport from Linux 2.6. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4323 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
3979540106
commit
529b3a0d08
2 files changed
+8
-4
No files matched your search
@@ -4,6 +4,7 @@ lm_sensors CHANGES file
|
||||
SVN HEAD
|
||||
Man page i2cdetect.8: Scanning range can be restricted
|
||||
Module bmcsensors: Fix debugging messages
|
||||
Module i2c-ali1563: Improve the status messages (2.6 backport)
|
||||
Module i2c-amd8111: Cleanups (2.6 backport)
|
||||
Fix initialization race (2.6 backport)
|
||||
Module i2c-nforce2: Drop unused reference to pci_dev (2.6 backport)
|
||||
|
||||
@@ -340,7 +340,6 @@ static int __devinit ali1563_setup(struct pci_dev * dev)
|
||||
u16 ctrl;
|
||||
|
||||
pci_read_config_word(dev,ALI1563_SMBBA,&ctrl);
|
||||
printk(KERN_DEBUG "ali1563: SMBus control = %04x\n",ctrl);
|
||||
|
||||
/* Check if device is even enabled first */
|
||||
if (!(ctrl & ALI1563_SMB_IOEN)) {
|
||||
@@ -365,9 +364,12 @@ static int __devinit ali1563_setup(struct pci_dev * dev)
|
||||
}
|
||||
if (!request_region(ali1563_smba, ALI1563_SMB_IOSIZE,
|
||||
ali1563_pci_driver.name)) {
|
||||
printk(KERN_WARNING "ali1563: Could not allocate I/O space");
|
||||
printk(KERN_WARNING "ali1563: Could not allocate I/O space "
|
||||
"at 0x%04x\n", ali1563_smba);
|
||||
goto Err;
|
||||
}
|
||||
printk(KERN_INFO "ali1563: Found ALi1563 SMBus at 0x%04x\n",
|
||||
ali1563_smba);
|
||||
|
||||
return 0;
|
||||
Err:
|
||||
@@ -411,14 +413,15 @@ static int __devinit ali1563_probe(struct pci_dev * dev,
|
||||
{
|
||||
int error;
|
||||
|
||||
if ((error = ali1563_setup(dev))){
|
||||
if ((error = ali1563_setup(dev))) {
|
||||
printk(KERN_WARNING "ali1563: ALi1563 SMBus probe failed "
|
||||
"(%d)\n", error);
|
||||
return error;
|
||||
}
|
||||
sprintf(ali1563_adapter.name,"SMBus ALi 1563 Adapter @ %04x",
|
||||
ali1563_smba);
|
||||
if ((error = i2c_add_adapter(&ali1563_adapter)))
|
||||
ali1563_shutdown(dev);
|
||||
printk(KERN_DEBUG "%s: Returning %d\n",__FUNCTION__,error);
|
||||
return error;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user