parport: remove unused dead code from lowlevel drivers
This unused code has been untouched for over 7 years and must go. Signed-off-by: Matt Porter <mporter@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

父節點
1790625feb
當前提交
991214386d
@@ -147,25 +147,6 @@ DPRINTK(KERN_DEBUG "frob_control mask %02x, value %02x\n",mask,val);
|
||||
return old;
|
||||
}
|
||||
|
||||
#if 0 /* currently unused */
|
||||
static unsigned char status_pc_to_mfc3(unsigned char status)
|
||||
{
|
||||
unsigned char ret = 1;
|
||||
|
||||
if (status & PARPORT_STATUS_BUSY) /* Busy */
|
||||
ret &= ~1;
|
||||
if (status & PARPORT_STATUS_ACK) /* Ack */
|
||||
ret |= 8;
|
||||
if (status & PARPORT_STATUS_PAPEROUT) /* PaperOut */
|
||||
ret |= 2;
|
||||
if (status & PARPORT_STATUS_SELECT) /* select */
|
||||
ret |= 4;
|
||||
if (status & PARPORT_STATUS_ERROR) /* error */
|
||||
ret |= 16;
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
|
||||
static unsigned char status_mfc3_to_pc(unsigned char status)
|
||||
{
|
||||
unsigned char ret = PARPORT_STATUS_BUSY;
|
||||
@@ -184,14 +165,6 @@ static unsigned char status_mfc3_to_pc(unsigned char status)
|
||||
return ret;
|
||||
}
|
||||
|
||||
#if 0 /* currently unused */
|
||||
static void mfc3_write_status( struct parport *p, unsigned char status)
|
||||
{
|
||||
DPRINTK(KERN_DEBUG "write_status %02x\n",status);
|
||||
pia(p)->ppra = (pia(p)->ppra & 0xe0) | status_pc_to_mfc3(status);
|
||||
}
|
||||
#endif
|
||||
|
||||
static unsigned char mfc3_read_status(struct parport *p)
|
||||
{
|
||||
unsigned char status;
|
||||
@@ -201,14 +174,6 @@ DPRINTK(KERN_DEBUG "read_status %02x\n", status);
|
||||
return status;
|
||||
}
|
||||
|
||||
#if 0 /* currently unused */
|
||||
static void mfc3_change_mode( struct parport *p, int m)
|
||||
{
|
||||
/* XXX: This port only has one mode, and I am
|
||||
not sure about the corresponding PC-style mode*/
|
||||
}
|
||||
#endif
|
||||
|
||||
static int use_cnt = 0;
|
||||
|
||||
static irqreturn_t mfc3_interrupt(int irq, void *dev_id)
|
||||
|
Reference in New Issue
Block a user