drivers: staging: sep: add detection of cloverview
authorMark Allyn <mark.a.allyn@intel.com>
Sat, 17 Dec 2011 00:15:58 +0000 (16:15 -0800)
committerbuildbot <buildbot@intel.com>
Wed, 11 Jan 2012 21:51:58 +0000 (13:51 -0800)
BZ: 17588

Change-Id: I9ec5758b3ff3030dbba580a65fa8dd468dd1fe90
Signed-off-by: Mark Allyn <mark.a.allyn@intel.com>
Reviewed-on: http://android.intel.com:8080/27847
Reviewed-by: Mai, Leonard <leonard.mai@intel.com>
Reviewed-by: Yang, Fei <fei.yang@intel.com>
Reviewed-by: Mangalampalli, Jayant <jayant.mangalampalli@intel.com>
Tested-by: Mangalampalli, Jayant <jayant.mangalampalli@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/staging/sep/sep_driver_hw_defs.h
drivers/staging/sep/sep_main.c

index c48e49a..a6a4481 100644 (file)
@@ -33,9 +33,6 @@
 #ifndef SEP_DRIVER_HW_DEFS__H
 #define SEP_DRIVER_HW_DEFS__H
 
-/* PCI ID's */
-#define MFLD_PCI_DEVICE_ID 0x0826
-
 /*----------------------- */
 /* HW Registers Defines.  */
 /*                        */
index c2983d2..a415a53 100644 (file)
@@ -3506,7 +3506,6 @@ static int __devinit sep_probe(struct pci_dev *pdev,
 
        dev_dbg(&sep->pdev->dev, "sep probe: PCI obtained, "
                "device being prepared\n");
-       dev_dbg(&sep->pdev->dev, "revision is %d\n", sep->pdev->revision);
 
        /* Set up our register area */
        sep->reg_physical_addr = pci_resource_start(sep->pdev, 0);
@@ -3569,11 +3568,9 @@ static int __devinit sep_probe(struct pci_dev *pdev,
                goto end_function_deallocate_sep_shared_area;
 
        /* The new chip requires a shared area reconfigure */
-       if (sep->pdev->revision != 0) { /* Only for new chip */
-               error = sep_reconfig_shared_area(sep);
-               if (error)
-                       goto end_function_free_irq;
-       }
+       error = sep_reconfig_shared_area(sep);
+       if (error)
+               goto end_function_free_irq;
 
        /* Finally magic up the device nodes */
        /* Register driver with the fs */
@@ -3652,7 +3649,8 @@ static void sep_remove(struct pci_dev *pdev)
 
 /* Initialize struct pci_device_id for our driver */
 static DEFINE_PCI_DEVICE_TABLE(sep_pci_id_tbl) = {
-       {PCI_DEVICE(PCI_VENDOR_ID_INTEL, MFLD_PCI_DEVICE_ID)},
+       {PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x0826)},
+       {PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x08e9)},
        {0}
 };