Commit 0010bc50 authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz Committed by Linus Torvalds

[PATCH] siimage.c: remove a gcc warning when !CONFIG_PROCFS

From: Luiz Fernando Capitulino <lcapitulino@prefeitura.sp.gov.br>,
      Randy.Dunlap <rddunlap@osdl.org>
parent 8f69871b
......@@ -767,19 +767,16 @@ static void siimage_reset (ide_drive_t *drive)
static void proc_reports_siimage (struct pci_dev *dev, u8 clocking, const char *name)
{
if(pdev_is_sata(dev))
goto sata_skip;
if (!pdev_is_sata(dev)) {
printk(KERN_INFO "%s: BASE CLOCK ", name);
clocking &= 0x03;
switch(clocking) {
case 0x03: printk("DISABLED !\n"); break;
case 0x02: printk("== 2X PCI \n"); break;
case 0x01: printk("== 133 \n"); break;
case 0x00: printk("== 100 \n"); break;
switch (clocking) {
case 0x03: printk("DISABLED!\n"); break;
case 0x02: printk("== 2X PCI\n"); break;
case 0x01: printk("== 133\n"); break;
case 0x00: printk("== 100\n"); break;
}
}
sata_skip:
#if defined(DISPLAY_SIIMAGE_TIMINGS) && defined(CONFIG_PROC_FS)
siimage_devs[n_siimage_devs++] = dev;
......
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