aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2017-04-05 12:05:26 -0400
committerDarren Hart (VMware) <dvhart@infradead.org>2017-04-13 13:16:04 -0400
commit07ac1af3fc3e11f5b0948597aaad78d30c45a289 (patch)
treee3dbc0ced6ed55ebfe6c8f8d123bbf6ec5b1c1c9
parent822e423e62d0f07574e3aaaa7e2c15ffab7815cc (diff)
platform/x86: intel_scu_ipc: Remove redundant subarch check
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>
-rw-r--r--drivers/platform/x86/intel_scu_ipc.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/platform/x86/intel_scu_ipc.c b/drivers/platform/x86/intel_scu_ipc.c
index 8a34c1e7536f..6d626a8878c7 100644
--- a/drivers/platform/x86/intel_scu_ipc.c
+++ b/drivers/platform/x86/intel_scu_ipc.c
@@ -566,15 +566,10 @@ static irqreturn_t ioc(int irq, void *dev_id)
566 */ 566 */
567static int ipc_probe(struct pci_dev *pdev, const struct pci_device_id *id) 567static int ipc_probe(struct pci_dev *pdev, const struct pci_device_id *id)
568{ 568{
569 int platform; /* Platform type */
570 int err; 569 int err;
571 struct intel_scu_ipc_dev *scu = &ipcdev; 570 struct intel_scu_ipc_dev *scu = &ipcdev;
572 struct intel_scu_ipc_pdata_t *pdata; 571 struct intel_scu_ipc_pdata_t *pdata;
573 572
574 platform = intel_mid_identify_cpu();
575 if (platform == 0)
576 return -ENODEV;
577
578 if (scu->dev) /* We support only one SCU */ 573 if (scu->dev) /* We support only one SCU */
579 return -EBUSY; 574 return -EBUSY;
580 575