Changeset 9341


Ignore:
Timestamp:
2007-10-17T19:26:54+02:00 (10 years ago)
Author:
juhosg
Message:

[adm5120] fix initcall level in i2c-gpio-custom driver if not built as a module

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/adm5120/files/drivers/i2c/busses/i2c-gpio-custom.c

    r9244 r9341  
    145145} 
    146146 
    147 static int __init i2c_gpio_custom_init(void) 
     147static int __init i2c_gpio_custom_probe(void) 
    148148{ 
    149149        int err; 
     
    175175        return err; 
    176176} 
     177 
     178#ifdef MODULE 
     179static int __init i2c_gpio_custom_init(void) 
     180{ 
     181        return i2c_gpio_custom_probe(); 
     182} 
    177183module_init(i2c_gpio_custom_init); 
    178184 
     
    182188} 
    183189module_exit(i2c_gpio_custom_exit); 
    184  
     190#else 
     191subsys_initcall(i2c_gpio_custom_probe); 
     192#endif /* MODULE*/ 
    185193 
    186194MODULE_LICENSE("GPL v2"); 
     
    188196MODULE_DESCRIPTION(DRV_DESC); 
    189197MODULE_VERSION(DRV_VERSION); 
    190  
Note: See TracChangeset for help on using the changeset viewer.