From: Jon S. <jon...@ya...> - 2004-08-03 22:58:50
|
the bulk of the probe code can stay in the library. Maybe something like this in a personality module: static struct pci_driver drm_driver = { .name = DRIVER_NAME, .id_table = DRM(pciidlist), .probe = my_probe, .remove = __devexit_p(drm_cleanup_pci), }; my_probe() { do my preinit stuff drm_probe() - library routine do my postinit stuff } Now you don't need pre and post init call outs. If the driver doesn't have any pre/post init code just set .probe = drm_probe ===== Jon Smirl jon...@ya... __________________________________ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail |