platform/x86: intel_scu_ipc: Remove redundant subarch check
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 5 Apr 2017 16:05:26 +0000 (19:05 +0300)
committerDarren Hart (VMware) <dvhart@infradead.org>
Thu, 13 Apr 2017 17:16:04 +0000 (10:16 -0700)
The driver is bound to the devices based on their PCI IDs.

There is no need to do an additional check.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/intel_scu_ipc.c

index 8a34c1e7536f6324c06661cf7b8a08a068533414..6d626a8878c7ebc7c1ec7a670f7e590b8a11e347 100644 (file)
@@ -566,15 +566,10 @@ static irqreturn_t ioc(int irq, void *dev_id)
  */
 static int ipc_probe(struct pci_dev *pdev, const struct pci_device_id *id)
 {
-       int platform;           /* Platform type */
        int err;
        struct intel_scu_ipc_dev *scu = &ipcdev;
        struct intel_scu_ipc_pdata_t *pdata;
 
-       platform = intel_mid_identify_cpu();
-       if (platform == 0)
-               return -ENODEV;
-
        if (scu->dev)           /* We support only one SCU */
                return -EBUSY;