pata_sil680: minor CodingStyle fixups
Acked-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
This commit is contained in:
committed by
Jeff Garzik
parent
9b8ad4ac79
commit
7a113d3840
@@ -82,7 +82,8 @@ static unsigned long sil680_seldev(struct ata_port *ap, struct ata_device *adev,
|
|||||||
* space for us.
|
* space for us.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static int sil680_cable_detect(struct ata_port *ap) {
|
static int sil680_cable_detect(struct ata_port *ap)
|
||||||
|
{
|
||||||
struct pci_dev *pdev = to_pci_dev(ap->host->dev);
|
struct pci_dev *pdev = to_pci_dev(ap->host->dev);
|
||||||
unsigned long addr = sil680_selreg(ap, 0);
|
unsigned long addr = sil680_selreg(ap, 0);
|
||||||
u8 ata66;
|
u8 ata66;
|
||||||
@@ -306,11 +307,18 @@ static u8 sil680_init_chip(struct pci_dev *pdev, int *try_mmio)
|
|||||||
pci_write_config_dword(pdev, 0xBC, 0x40094009);
|
pci_write_config_dword(pdev, 0xBC, 0x40094009);
|
||||||
|
|
||||||
switch (tmpbyte & 0x30) {
|
switch (tmpbyte & 0x30) {
|
||||||
case 0x00: printk(KERN_INFO "sil680: 100MHz clock.\n");break;
|
case 0x00:
|
||||||
case 0x10: printk(KERN_INFO "sil680: 133MHz clock.\n");break;
|
printk(KERN_INFO "sil680: 100MHz clock.\n");
|
||||||
case 0x20: printk(KERN_INFO "sil680: Using PCI clock.\n");break;
|
break;
|
||||||
|
case 0x10:
|
||||||
|
printk(KERN_INFO "sil680: 133MHz clock.\n");
|
||||||
|
break;
|
||||||
|
case 0x20:
|
||||||
|
printk(KERN_INFO "sil680: Using PCI clock.\n");
|
||||||
|
break;
|
||||||
/* This last case is _NOT_ ok */
|
/* This last case is _NOT_ ok */
|
||||||
case 0x30: printk(KERN_ERR "sil680: Clock disabled ?\n");
|
case 0x30:
|
||||||
|
printk(KERN_ERR "sil680: Clock disabled ?\n");
|
||||||
}
|
}
|
||||||
return tmpbyte & 0x30;
|
return tmpbyte & 0x30;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user