[EMAIL PROTECTED] <[EMAIL PROTECTED]> :
[...]
>  #define SMC_WRITE_EEPROM_CMD(cmd, addr)                                      
> \
>       do {                                                            \
> -             while (SMC_GET_E2P_CMD() & MAC_CSR_CMD_CSR_BUSY_);      \
> -             SMC_SET_MAC_CMD(MAC_CSR_CMD_R_NOT_W_ | a );             \
> -             while (SMC_GET_MAC_CMD() & MAC_CSR_CMD_CSR_BUSY_);      \
> +             while (SMC_GET_E2P_CMD() & E2P_CMD_EPC_BUSY_)           \
> +                     cpu_relax();                                    \
> +             SMC_SET_E2P_DATA((v) & 0xFF);                           \
> +             SMC_SET_E2P_CMD(E2P_CMD_EPC_BUSY_ |                     \
> +                             (cmd) << 28 | ((addr) & 0xFF));         \
> +             while (SMC_GET_E2P_CMD() & E2P_CMD_EPC_BUSY_)           \
> +                     cpu_relax();                                    \
>       } while (0)

Macro abuse. It should be a function.

-- 
Ueimor
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to