Commit c4ad92bc authored by Ondrej Zary's avatar Ondrej Zary Committed by Martin K. Petersen

atp870u: Remove empty tscam_885()

tscam_885() is empty (except a delay) so remove it.
Signed-off-by: default avatarOndrej Zary <linux@rainbow-software.org>
Reviewed-by: default avatarHannes Reinicke <hare@suse.de>
Acked-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 34a2c35d
...@@ -42,7 +42,6 @@ ...@@ -42,7 +42,6 @@
static struct scsi_host_template atp870u_template; static struct scsi_host_template atp870u_template;
static void send_s870(struct atp_unit *dev,unsigned char c); static void send_s870(struct atp_unit *dev,unsigned char c);
static void atp_is(struct atp_unit *dev, unsigned char c, bool wide_chip, unsigned char lvdmode); static void atp_is(struct atp_unit *dev, unsigned char c, bool wide_chip, unsigned char lvdmode);
static void tscam_885(void);
static inline void atp_writeb_base(struct atp_unit *atp, u8 reg, u8 val) static inline void atp_writeb_base(struct atp_unit *atp, u8 reg, u8 val)
{ {
...@@ -1518,7 +1517,7 @@ static int atp870u_probe(struct pci_dev *pdev, const struct pci_device_id *ent) ...@@ -1518,7 +1517,7 @@ static int atp870u_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
k = (k & 0x07) | 0x40; k = (k & 0x07) | 0x40;
atp_set_host_id(p, 1, k); atp_set_host_id(p, 1, k);
tscam_885(); mdelay(600); /* this delay used to be called tscam_885() */
printk(KERN_INFO " Scanning Channel A SCSI Device ...\n"); printk(KERN_INFO " Scanning Channel A SCSI Device ...\n");
atp_is(p, 0, true, atp_readb_io(p, 0, 0x1b) >> 7); atp_is(p, 0, true, atp_readb_io(p, 0, 0x1b) >> 7);
atp_writeb_io(p, 0, 0x16, 0x80); atp_writeb_io(p, 0, 0x16, 0x80);
...@@ -1802,18 +1801,6 @@ static void __exit atp870u_exit(void) ...@@ -1802,18 +1801,6 @@ static void __exit atp870u_exit(void)
pci_unregister_driver(&atp870u_driver); pci_unregister_driver(&atp870u_driver);
} }
static void tscam_885(void)
{
unsigned char i;
for (i = 0; i < 0x2; i++) {
mdelay(300);
}
return;
}
static void atp_is(struct atp_unit *dev, unsigned char c, bool wide_chip, unsigned char lvdmode) static void atp_is(struct atp_unit *dev, unsigned char c, bool wide_chip, unsigned char lvdmode)
{ {
unsigned char i, j, k, rmb, n; unsigned char i, j, k, rmb, n;
......
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