janz-ican3.c (d4bbf7e7759afc172e2bfbc5c416324590049cdd) | janz-ican3.c (871d33725545ca2e402b4526f38f89d041ba930f) |
---|---|
1/* 2 * Janz MODULbus VMOD-ICAN3 CAN Interface Driver 3 * 4 * Copyright (c) 2010 Ira W. Snyder <iws@ovro.caltech.edu> 5 * 6 * This program is free software; you can redistribute it and/or modify it 7 * under the terms of the GNU General Public License as published by the 8 * Free Software Foundation; either version 2 of the License, or (at your --- 1789 unchanged lines hidden (view full) --- 1798 .driver = { 1799 .name = DRV_NAME, 1800 .owner = THIS_MODULE, 1801 }, 1802 .probe = ican3_probe, 1803 .remove = __devexit_p(ican3_remove), 1804}; 1805 | 1/* 2 * Janz MODULbus VMOD-ICAN3 CAN Interface Driver 3 * 4 * Copyright (c) 2010 Ira W. Snyder <iws@ovro.caltech.edu> 5 * 6 * This program is free software; you can redistribute it and/or modify it 7 * under the terms of the GNU General Public License as published by the 8 * Free Software Foundation; either version 2 of the License, or (at your --- 1789 unchanged lines hidden (view full) --- 1798 .driver = { 1799 .name = DRV_NAME, 1800 .owner = THIS_MODULE, 1801 }, 1802 .probe = ican3_probe, 1803 .remove = __devexit_p(ican3_remove), 1804}; 1805 |
1806static int __init ican3_init(void) 1807{ 1808 return platform_driver_register(&ican3_driver); 1809} | 1806module_platform_driver(ican3_driver); |
1810 | 1807 |
1811static void __exit ican3_exit(void) 1812{ 1813 platform_driver_unregister(&ican3_driver); 1814} 1815 | |
1816MODULE_AUTHOR("Ira W. Snyder <iws@ovro.caltech.edu>"); 1817MODULE_DESCRIPTION("Janz MODULbus VMOD-ICAN3 Driver"); 1818MODULE_LICENSE("GPL"); 1819MODULE_ALIAS("platform:janz-ican3"); | 1808MODULE_AUTHOR("Ira W. Snyder <iws@ovro.caltech.edu>"); 1809MODULE_DESCRIPTION("Janz MODULbus VMOD-ICAN3 Driver"); 1810MODULE_LICENSE("GPL"); 1811MODULE_ALIAS("platform:janz-ican3"); |
1820 1821module_init(ican3_init); 1822module_exit(ican3_exit); | |