rtc-ds1390.c (94bd217e2d683719ab21a4ac117d8a1b91cbedc9) | rtc-ds1390.c (109e941843893cb1b4f7bed24c615ba84ce00ff5) |
---|---|
1/* 2 * rtc-ds1390.c -- driver for the Dallas/Maxim DS1390/93/94 SPI RTC 3 * 4 * Copyright (C) 2008 Mercury IMC Ltd 5 * Written by Mark Jackson <mpfj@mimc.co.uk> 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as --- 161 unchanged lines hidden (view full) --- 170 .driver = { 171 .name = "rtc-ds1390", 172 .owner = THIS_MODULE, 173 }, 174 .probe = ds1390_probe, 175 .remove = __devexit_p(ds1390_remove), 176}; 177 | 1/* 2 * rtc-ds1390.c -- driver for the Dallas/Maxim DS1390/93/94 SPI RTC 3 * 4 * Copyright (C) 2008 Mercury IMC Ltd 5 * Written by Mark Jackson <mpfj@mimc.co.uk> 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as --- 161 unchanged lines hidden (view full) --- 170 .driver = { 171 .name = "rtc-ds1390", 172 .owner = THIS_MODULE, 173 }, 174 .probe = ds1390_probe, 175 .remove = __devexit_p(ds1390_remove), 176}; 177 |
178static __init int ds1390_init(void) 179{ 180 return spi_register_driver(&ds1390_driver); 181} 182module_init(ds1390_init); | 178module_spi_driver(ds1390_driver); |
183 | 179 |
184static __exit void ds1390_exit(void) 185{ 186 spi_unregister_driver(&ds1390_driver); 187} 188module_exit(ds1390_exit); 189 | |
190MODULE_DESCRIPTION("Dallas/Maxim DS1390/93/94 SPI RTC driver"); 191MODULE_AUTHOR("Mark Jackson <mpfj@mimc.co.uk>"); 192MODULE_LICENSE("GPL"); 193MODULE_ALIAS("spi:rtc-ds1390"); | 180MODULE_DESCRIPTION("Dallas/Maxim DS1390/93/94 SPI RTC driver"); 181MODULE_AUTHOR("Mark Jackson <mpfj@mimc.co.uk>"); 182MODULE_LICENSE("GPL"); 183MODULE_ALIAS("spi:rtc-ds1390"); |