• Stephen Hemminger's avatar
    [PATCH] (1/4) Update baycom drivers for 2.6 · eb8a710d
    Stephen Hemminger authored
    Update baycom drivers for 2.6.0-test5
    	- get rid of MOD_INC/DEC
    	    (looked into hdlcdrv_ops and don't need to have owner field because
    	     baycom drivers unregister on  unload).
    	- use alloc_netdev instead of static device structures.
    	- hdlcdrv_register returns device instead of getting passed one.
    	- put private data in space allocated at dev->priv in alloc_netdev
    	- shorten name of hdlcdrv_register_hdlcdrv to hdlcdrv_register
    
    I don't have actual baycom hardware, but driver builds and loads/unloads.
    Real hardware initialization doesn't happen until open.
    
    The first one is the important patch, the other three are just code review
    type cleanups.
    eb8a710d
baycom_par.c 16.8 KB