Commit 055162dc authored by Stephen Hemminger's avatar Stephen Hemminger Committed by David S. Miller

[IRDA]: Kill dev_flags, unused.

parent 2a105ac8
...@@ -299,8 +299,6 @@ static int ali_ircc_open(int i, chipio_t *info) ...@@ -299,8 +299,6 @@ static int ali_ircc_open(int i, chipio_t *info)
irda_qos_bits_to_value(&self->qos); irda_qos_bits_to_value(&self->qos);
self->flags = IFF_FIR|IFF_MIR|IFF_SIR|IFF_DMA|IFF_PIO; // benjamin 2000/11/8 05:27PM
/* Max DMA buffer size needed = (data_size + 6) * (window_size) + 6; */ /* Max DMA buffer size needed = (data_size + 6) * (window_size) + 6; */
self->rx_buff.truesize = 14384; self->rx_buff.truesize = 14384;
self->tx_buff.truesize = 14384; self->tx_buff.truesize = 14384;
......
...@@ -1646,13 +1646,11 @@ toshoboe_open (struct pci_dev *pci_dev, const struct pci_device_id *pdid) ...@@ -1646,13 +1646,11 @@ toshoboe_open (struct pci_dev *pci_dev, const struct pci_device_id *pdid)
if (max_baud >= 1152000) if (max_baud >= 1152000)
{ {
self->qos.baud_rate.bits |= IR_1152000; self->qos.baud_rate.bits |= IR_1152000;
self->flags |= IFF_MIR;
} }
#endif #endif
if (max_baud >= 4000000) if (max_baud >= 4000000)
{ {
self->qos.baud_rate.bits |= (IR_4000000 << 8); self->qos.baud_rate.bits |= (IR_4000000 << 8);
self->flags |= IFF_FIR;
} }
/*FIXME: work this out... */ /*FIXME: work this out... */
...@@ -1660,8 +1658,6 @@ toshoboe_open (struct pci_dev *pci_dev, const struct pci_device_id *pdid) ...@@ -1660,8 +1658,6 @@ toshoboe_open (struct pci_dev *pci_dev, const struct pci_device_id *pdid)
irda_qos_bits_to_value (&self->qos); irda_qos_bits_to_value (&self->qos);
self->flags = IFF_SIR | IFF_DMA | IFF_PIO;
/* Allocate twice the size to guarantee alignment */ /* Allocate twice the size to guarantee alignment */
self->ringbuf = (void *) kmalloc (OBOE_RING_LEN << 1, GFP_KERNEL); self->ringbuf = (void *) kmalloc (OBOE_RING_LEN << 1, GFP_KERNEL);
if (!self->ringbuf) if (!self->ringbuf)
......
...@@ -1136,14 +1136,6 @@ static inline void irda_usb_init_qos(struct irda_usb_cb *self) ...@@ -1136,14 +1136,6 @@ static inline void irda_usb_init_qos(struct irda_usb_cb *self)
* the transmit path will be set differently - Jean II * the transmit path will be set differently - Jean II
*/ */
irda_qos_bits_to_value(&self->qos); irda_qos_bits_to_value(&self->qos);
self->flags |= IFF_SIR;
if (self->qos.baud_rate.value > 115200)
self->flags |= IFF_MIR;
if (self->qos.baud_rate.value > 1152000)
self->flags |= IFF_FIR;
if (self->qos.baud_rate.value > 4000000)
self->flags |= IFF_VFIR;
} }
/*------------------------------------------------------------------*/ /*------------------------------------------------------------------*/
......
...@@ -178,9 +178,6 @@ irport_open(int i, unsigned int iobase, unsigned int irq) ...@@ -178,9 +178,6 @@ irport_open(int i, unsigned int iobase, unsigned int irq)
self->qos.min_turn_time.bits = qos_mtt_bits; self->qos.min_turn_time.bits = qos_mtt_bits;
irda_qos_bits_to_value(&self->qos); irda_qos_bits_to_value(&self->qos);
self->flags = IFF_SIR|IFF_PIO;
self->mode = IRDA_IRLAP;
/* Bootstrap ZeroCopy Rx */ /* Bootstrap ZeroCopy Rx */
self->rx_buff.truesize = IRDA_SKB_MAX_MTU; self->rx_buff.truesize = IRDA_SKB_MAX_MTU;
self->rx_buff.skb = __dev_alloc_skb(self->rx_buff.truesize, self->rx_buff.skb = __dev_alloc_skb(self->rx_buff.truesize,
......
...@@ -302,8 +302,6 @@ static int __init nsc_ircc_open(int i, chipio_t *info) ...@@ -302,8 +302,6 @@ static int __init nsc_ircc_open(int i, chipio_t *info)
self->qos.min_turn_time.bits = qos_mtt_bits; self->qos.min_turn_time.bits = qos_mtt_bits;
irda_qos_bits_to_value(&self->qos); irda_qos_bits_to_value(&self->qos);
self->flags = IFF_FIR|IFF_MIR|IFF_SIR|IFF_DMA|IFF_PIO|IFF_DONGLE;
/* Max DMA buffer size needed = (data_size + 6) * (window_size) + 6; */ /* Max DMA buffer size needed = (data_size + 6) * (window_size) + 6; */
self->rx_buff.truesize = 14384; self->rx_buff.truesize = 14384;
self->tx_buff.truesize = 14384; self->tx_buff.truesize = 14384;
......
...@@ -620,8 +620,6 @@ struct sir_dev * sirdev_get_instance(const struct sir_driver *drv, const char *n ...@@ -620,8 +620,6 @@ struct sir_dev * sirdev_get_instance(const struct sir_driver *drv, const char *n
SET_MODULE_OWNER(ndev); SET_MODULE_OWNER(ndev);
dev->flags = IFF_SIR | IFF_PIO;
/* Override the network functions we need to use */ /* Override the network functions we need to use */
ndev->hard_start_xmit = sirdev_hard_xmit; ndev->hard_start_xmit = sirdev_hard_xmit;
ndev->open = sirdev_open; ndev->open = sirdev_open;
......
...@@ -441,8 +441,6 @@ static int __init smsc_ircc_open(unsigned int fir_base, unsigned int sir_base, u ...@@ -441,8 +441,6 @@ static int __init smsc_ircc_open(unsigned int fir_base, unsigned int sir_base, u
smsc_ircc_setup_qos(self); smsc_ircc_setup_qos(self);
self->flags = IFF_FIR|IFF_MIR|IFF_SIR|IFF_DMA|IFF_PIO;
smsc_ircc_init_chip(self); smsc_ircc_init_chip(self);
if(ircc_transceiver > 0 && if(ircc_transceiver > 0 &&
......
...@@ -377,9 +377,6 @@ static __devinit int via_ircc_open(int i, chipio_t * info, unsigned int id) ...@@ -377,9 +377,6 @@ static __devinit int via_ircc_open(int i, chipio_t * info, unsigned int id)
self->qos.min_turn_time.bits = qos_mtt_bits; self->qos.min_turn_time.bits = qos_mtt_bits;
irda_qos_bits_to_value(&self->qos); irda_qos_bits_to_value(&self->qos);
self->flags =
IFF_FIR | IFF_MIR | IFF_SIR | IFF_DMA | IFF_PIO | IFF_DONGLE;
/* Max DMA buffer size needed = (data_size + 6) * (window_size) + 6; */ /* Max DMA buffer size needed = (data_size + 6) * (window_size) + 6; */
self->rx_buff.truesize = 14384 + 2048; self->rx_buff.truesize = 14384 + 2048;
self->tx_buff.truesize = 14384 + 2048; self->tx_buff.truesize = 14384 + 2048;
......
...@@ -202,8 +202,6 @@ int w83977af_open(int i, unsigned int iobase, unsigned int irq, ...@@ -202,8 +202,6 @@ int w83977af_open(int i, unsigned int iobase, unsigned int irq,
self->qos.min_turn_time.bits = qos_mtt_bits; self->qos.min_turn_time.bits = qos_mtt_bits;
irda_qos_bits_to_value(&self->qos); irda_qos_bits_to_value(&self->qos);
self->flags = IFF_FIR|IFF_MIR|IFF_SIR|IFF_DMA|IFF_PIO;
/* Max DMA buffer size needed = (data_size + 6) * (window_size) + 6; */ /* Max DMA buffer size needed = (data_size + 6) * (window_size) + 6; */
self->rx_buff.truesize = 14384; self->rx_buff.truesize = 14384;
self->tx_buff.truesize = 4000; self->tx_buff.truesize = 4000;
......
...@@ -212,7 +212,6 @@ struct ali_ircc_cb { ...@@ -212,7 +212,6 @@ struct ali_ircc_cb {
spinlock_t lock; /* For serializing operations */ spinlock_t lock; /* For serializing operations */
__u32 flags; /* Interface flags */
__u32 new_speed; __u32 new_speed;
int index; /* Instance index */ int index; /* Instance index */
......
...@@ -115,7 +115,6 @@ struct au1k_private { ...@@ -115,7 +115,6 @@ struct au1k_private {
struct irlap_cb *irlap; struct irlap_cb *irlap;
u8 open; u8 open;
u32 flags; /* Interface flags */
u32 speed; u32 speed;
u32 newspeed; u32 newspeed;
......
...@@ -159,6 +159,5 @@ struct irda_usb_cb { ...@@ -159,6 +159,5 @@ struct irda_usb_cb {
__s16 new_xbofs; /* xbofs we need to set */ __s16 new_xbofs; /* xbofs we need to set */
__u32 speed; /* Current speed */ __u32 speed; /* Current speed */
__s32 new_speed; /* speed we need to set */ __s32 new_speed; /* speed we need to set */
__u32 flags; /* Interface flags */
}; };
...@@ -263,7 +263,6 @@ struct nsc_ircc_cb { ...@@ -263,7 +263,6 @@ struct nsc_ircc_cb {
spinlock_t lock; /* For serializing operations */ spinlock_t lock; /* For serializing operations */
__u32 flags; /* Interface flags */
__u32 new_speed; __u32 new_speed;
int index; /* Instance index */ int index; /* Instance index */
......
...@@ -170,7 +170,6 @@ struct ircc_cb { ...@@ -170,7 +170,6 @@ struct ircc_cb {
* synchronised - Jean II */ * synchronised - Jean II */
__u32 new_speed; __u32 new_speed;
__u32 flags; /* Interface flags */
int tx_buff_offsets[10]; /* Offsets between frames in tx_buff */ int tx_buff_offsets[10]; /* Offsets between frames in tx_buff */
int tx_len; /* Number of frames in tx_buff */ int tx_len; /* Number of frames in tx_buff */
......
...@@ -146,7 +146,6 @@ struct toshoboe_cb ...@@ -146,7 +146,6 @@ struct toshoboe_cb
chipio_t io; /* IrDA controller information */ chipio_t io; /* IrDA controller information */
__u32 flags; /* Interface flags */
__u32 new_speed; __u32 new_speed;
struct pci_dev *pdev; /*PCI device */ struct pci_dev *pdev; /*PCI device */
......
...@@ -185,7 +185,6 @@ struct w83977af_ir { ...@@ -185,7 +185,6 @@ struct w83977af_ir {
* locking strategy. - Jean II */ * locking strategy. - Jean II */
spinlock_t lock; /* For serializing operations */ spinlock_t lock; /* For serializing operations */
__u32 flags; /* Interface flags */
__u32 new_speed; __u32 new_speed;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment