net: eepro100: Remove volatile misuse

Remove all the remaining use of the 'volatile' keyword, as this is
no longer required. All the accesses which might have needed this
use of 'volatile' have been repaired properly.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
This commit is contained in:
Marek Vasut 2020-05-23 15:02:47 +02:00
parent 5116aae111
commit d47cf87db9

View File

@ -103,13 +103,13 @@
/* Receive frame descriptors. */ /* Receive frame descriptors. */
struct eepro100_rxfd { struct eepro100_rxfd {
volatile u16 status; u16 status;
volatile u16 control; u16 control;
volatile u32 link; /* struct eepro100_rxfd * */ u32 link; /* struct eepro100_rxfd * */
volatile u32 rx_buf_addr; /* void * */ u32 rx_buf_addr; /* void * */
volatile u32 count; u32 count;
volatile u8 data[PKTSIZE_ALIGN]; u8 data[PKTSIZE_ALIGN];
}; };
#define RFD_STATUS_C 0x8000 /* completion of received frame */ #define RFD_STATUS_C 0x8000 /* completion of received frame */
@ -137,16 +137,16 @@ struct eepro100_rxfd {
/* Transmit frame descriptors */ /* Transmit frame descriptors */
struct eepro100_txfd { /* Transmit frame descriptor set. */ struct eepro100_txfd { /* Transmit frame descriptor set. */
volatile u16 status; u16 status;
volatile u16 command; u16 command;
volatile u32 link; /* void * */ u32 link; /* void * */
volatile u32 tx_desc_addr; /* Always points to the tx_buf_addr element. */ u32 tx_desc_addr; /* Always points to the tx_buf_addr element. */
volatile s32 count; s32 count;
volatile u32 tx_buf_addr0; /* void *, frame to be transmitted. */ u32 tx_buf_addr0; /* void *, frame to be transmitted. */
volatile s32 tx_buf_size0; /* Length of Tx frame. */ s32 tx_buf_size0; /* Length of Tx frame. */
volatile u32 tx_buf_addr1; /* void *, frame to be transmitted. */ u32 tx_buf_addr1; /* void *, frame to be transmitted. */
volatile s32 tx_buf_size1; /* Length of Tx frame. */ s32 tx_buf_size1; /* Length of Tx frame. */
}; };
#define TXCB_CMD_TRANSMIT 0x0004 /* transmit command */ #define TXCB_CMD_TRANSMIT 0x0004 /* transmit command */
@ -161,9 +161,9 @@ struct eepro100_txfd { /* Transmit frame descriptor set. */
/* The Speedo3 Rx and Tx frame/buffer descriptors. */ /* The Speedo3 Rx and Tx frame/buffer descriptors. */
struct descriptor { /* A generic descriptor. */ struct descriptor { /* A generic descriptor. */
volatile u16 status; u16 status;
volatile u16 command; u16 command;
volatile u32 link; /* struct descriptor * */ u32 link; /* struct descriptor * */
unsigned char params[0]; unsigned char params[0];
}; };