Changeset 4323

Show
Ignore:
Timestamp:
02/15/07 11:36:29 (2 years ago)
Author:
khali
Message:

Improve the status messages printed by the i2c-ali1563 driver.
This is a backport from Linux 2.6.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lm-sensors/trunk/CHANGES

    r4322 r4323  
    55  Man page i2cdetect.8: Scanning range can be restricted 
    66  Module bmcsensors: Fix debugging messages 
     7  Module i2c-ali1563: Improve the status messages (2.6 backport) 
    78  Module i2c-amd8111: Cleanups (2.6 backport) 
    89                      Fix initialization race (2.6 backport) 
  • lm-sensors/trunk/kernel/busses/i2c-ali1563.c

    r3149 r4323  
    341341 
    342342        pci_read_config_word(dev,ALI1563_SMBBA,&ctrl); 
    343         printk(KERN_DEBUG "ali1563: SMBus control = %04x\n",ctrl); 
    344343 
    345344        /* Check if device is even enabled first */ 
     
    366365        if (!request_region(ali1563_smba, ALI1563_SMB_IOSIZE, 
    367366                            ali1563_pci_driver.name)) { 
    368                 printk(KERN_WARNING "ali1563: Could not allocate I/O space"); 
     367                printk(KERN_WARNING "ali1563: Could not allocate I/O space " 
     368                       "at 0x%04x\n", ali1563_smba); 
    369369                goto Err; 
    370370        } 
     371        printk(KERN_INFO "ali1563: Found ALi1563 SMBus at 0x%04x\n", 
     372               ali1563_smba); 
    371373 
    372374        return 0; 
     
    412414        int error; 
    413415 
    414         if ((error = ali1563_setup(dev))){ 
     416        if ((error = ali1563_setup(dev))) { 
     417                printk(KERN_WARNING "ali1563: ALi1563 SMBus probe failed " 
     418                       "(%d)\n", error); 
    415419                return error; 
    416420        } 
     
    419423        if ((error = i2c_add_adapter(&ali1563_adapter))) 
    420424                ali1563_shutdown(dev); 
    421         printk(KERN_DEBUG "%s: Returning %d\n",__FUNCTION__,error); 
    422425        return error; 
    423426}