[U-Boot] [PATCH 1/2] smc911x: fix warning: large integer implicitly truncated to unsigned type
Ben Warren
biggerbadderben at gmail.com
Fri Jul 10 08:28:35 CEST 2009
Jean-Christophe PLAGNIOL-VILLARD wrote:
> use smc911x_reg_read/smc911x_reg_write instead of
> smc911x_get_mac_csr/smc911x_set_mac_csr
>
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
> ---
> drivers/net/smc911x.c | 10 +++++-----
> 1 files changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/net/smc911x.c b/drivers/net/smc911x.c
> index 455b055..0507a9a 100644
> --- a/drivers/net/smc911x.c
> +++ b/drivers/net/smc911x.c
> @@ -119,7 +119,7 @@ static int smc911x_phy_reset(void)
>
> static void smc911x_shutdown(void)
> {
> - unsigned int cr;
> + u32 cr;
>
> /* Turn of Rx and TX */
> cr = smc911x_get_mac_csr(MAC_CR);
> @@ -127,13 +127,13 @@ static void smc911x_shutdown(void)
> smc911x_set_mac_csr(MAC_CR, cr);
>
> /* Stop Transmission */
> - cr = smc911x_get_mac_csr(TX_CFG);
> + cr = smc911x_reg_read(TX_CFG);
> cr &= ~(TX_CFG_STOP_TX);
> - smc911x_set_mac_csr(TX_CFG, cr);
> + smc911x_reg_write(TX_CFG, cr);
> /* Stop receiving packets */
> - cr = smc911x_get_mac_csr(RX_CFG);
> + cr = smc911x_reg_read(RX_CFG);
> cr &= ~(RX_CFG_RXDOFF);
> - smc911x_set_mac_csr(RX_CFG, cr);
> + smc911x_reg_write(RX_CFG, cr);
>
> }
>
>
This patch doesn't apply (there's no function 'smc911x_shutdown()' in
either mainline or the net tree.
regards,
Ben
More information about the U-Boot
mailing list