root/trunk/patches/2.6.22/15-nas100d-pata-artop-single-port.patch

Revision 867, 0.8 KB (checked in by rwhitby, 3 years ago)

Added artop patch for 2.6.22

  • drivers/ata/pata_artop.c

    old new  
    2626#include <scsi/scsi_host.h> 
    2727#include <linux/libata.h> 
    2828#include <linux/ata.h> 
     29#include <asm/mach-types.h> 
    2930 
    3031#define DRV_NAME        "pata_artop" 
    3132#define DRV_VERSION     "0.4.3" 
     
    480481                pci_read_config_byte(pdev, 0x4a, &reg); 
    481482                pci_write_config_byte(pdev, 0x4a, (reg & ~0x01) | 0x80); 
    482483 
     484                /* NAS100D workaround - probing second port kills uhci_hcd */ 
     485#ifdef CONFIG_MACH_NAS100D 
     486                if (machine_is_nas100d()) 
     487                        ppi[1] = &ata_dummy_port_info; 
     488#endif 
    483489        } 
    484490 
    485491        BUG_ON(ppi[0] == NULL); 
Note: See TracBrowser for help on using the browser.