• Nathan Lynch's avatar
    [POWERPC] Demacrofy arch/powerpc/platforms/maple/pci.c · cc9881ce
    Nathan Lynch authored
    Noticed that the U3_*CFA macros have some typos:
    
    #define U3_HT_CFA0(devfn, off)		\
    		((((unsigned long)devfn) << 8) | offset)
    
    (refers to offset rather than off)
    
    #define U3_AGP_CFA0(devfn, off)	\
    	((1 << (unsigned long)PCI_SLOT(dev_fn)) \
    	| (((unsigned long)PCI_FUNC(dev_fn)) << 8) \
    
    (refers to dev_fn rather than devfn)
    
    Things happen to work, but there doesn't seem to be any reason these
    shouldn't be functions.  Overall behavior should be unchanged.
    Signed-off-by: default avatarNathan Lynch <ntl@pobox.com>
    Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
    cc9881ce
pci.c 12.8 KB