Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/ide

Pull IDE updates from David Miller:
"Just a few small things:

1) module_platform_driver_probe() conversions from Jingoo Han.

2) module_pci_driver() conversion from Libo Chen.

3) PIO size calculation fix from Steven J Hill"

* git://git.kernel.org/pub/scm/linux/kernel/git/davem/ide:
ide: Fix IDE PIO size calculation
drivers/ide/delkin_cb: Convert to module_pci_driver
ide: gayle: use module_platform_driver_probe()
ide: tx4939ide: use module_platform_driver_probe()
ide: tx4938ide: use module_platform_driver_probe()

+6 -53
+1 -12
drivers/ide/delkin_cb.c
··· 173 173 .resume = delkin_cb_resume, 174 174 }; 175 175 176 - static int __init delkin_cb_init(void) 177 - { 178 - return pci_register_driver(&delkin_cb_pci_driver); 179 - } 180 - 181 - static void __exit delkin_cb_exit(void) 182 - { 183 - pci_unregister_driver(&delkin_cb_pci_driver); 184 - } 185 - 186 - module_init(delkin_cb_init); 187 - module_exit(delkin_cb_exit); 176 + module_pci_driver(delkin_cb_pci_driver); 188 177 189 178 MODULE_AUTHOR("Mark Lord"); 190 179 MODULE_DESCRIPTION("Basic support for Delkin/ASKA/Workbit Cardbus IDE");
+1 -14
drivers/ide/gayle.c
··· 183 183 }, 184 184 }; 185 185 186 - static int __init amiga_gayle_ide_init(void) 187 - { 188 - return platform_driver_probe(&amiga_gayle_ide_driver, 189 - amiga_gayle_ide_probe); 190 - } 191 - 192 - module_init(amiga_gayle_ide_init); 193 - 194 - static void __exit amiga_gayle_ide_exit(void) 195 - { 196 - platform_driver_unregister(&amiga_gayle_ide_driver); 197 - } 198 - 199 - module_exit(amiga_gayle_ide_exit); 186 + module_platform_driver_probe(amiga_gayle_ide_driver, amiga_gayle_ide_probe); 200 187 201 188 MODULE_LICENSE("GPL"); 202 189 MODULE_ALIAS("platform:amiga-gayle-ide");
+2 -3
drivers/ide/ide-taskfile.c
··· 239 239 unsigned nr_bytes = min(len, cursg->length - cmd->cursg_ofs); 240 240 int page_is_high; 241 241 242 - if (nr_bytes > PAGE_SIZE) 243 - nr_bytes = PAGE_SIZE; 244 - 245 242 page = sg_page(cursg); 246 243 offset = cursg->offset + cmd->cursg_ofs; 247 244 248 245 /* get the current page and offset */ 249 246 page = nth_page(page, (offset >> PAGE_SHIFT)); 250 247 offset %= PAGE_SIZE; 248 + 249 + nr_bytes = min_t(unsigned, nr_bytes, (PAGE_SIZE - offset)); 251 250 252 251 page_is_high = PageHighMem(page); 253 252 if (page_is_high)
+1 -12
drivers/ide/tx4938ide.c
··· 203 203 .remove = __exit_p(tx4938ide_remove), 204 204 }; 205 205 206 - static int __init tx4938ide_init(void) 207 - { 208 - return platform_driver_probe(&tx4938ide_driver, tx4938ide_probe); 209 - } 210 - 211 - static void __exit tx4938ide_exit(void) 212 - { 213 - platform_driver_unregister(&tx4938ide_driver); 214 - } 215 - 216 - module_init(tx4938ide_init); 217 - module_exit(tx4938ide_exit); 206 + module_platform_driver_probe(tx4938ide_driver, tx4938ide_probe); 218 207 219 208 MODULE_DESCRIPTION("TX4938 internal IDE driver"); 220 209 MODULE_LICENSE("GPL");
+1 -12
drivers/ide/tx4939ide.c
··· 624 624 .resume = tx4939ide_resume, 625 625 }; 626 626 627 - static int __init tx4939ide_init(void) 628 - { 629 - return platform_driver_probe(&tx4939ide_driver, tx4939ide_probe); 630 - } 631 - 632 - static void __exit tx4939ide_exit(void) 633 - { 634 - platform_driver_unregister(&tx4939ide_driver); 635 - } 636 - 637 - module_init(tx4939ide_init); 638 - module_exit(tx4939ide_exit); 627 + module_platform_driver_probe(tx4939ide_driver, tx4939ide_probe); 639 628 640 629 MODULE_DESCRIPTION("TX4939 internal IDE driver"); 641 630 MODULE_LICENSE("GPL");