Commit 07ac1af3 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Darren Hart (VMware)

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: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
parent 822e423e
...@@ -566,15 +566,10 @@ static irqreturn_t ioc(int irq, void *dev_id) ...@@ -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) static int ipc_probe(struct pci_dev *pdev, const struct pci_device_id *id)
{ {
int platform; /* Platform type */
int err; int err;
struct intel_scu_ipc_dev *scu = &ipcdev; struct intel_scu_ipc_dev *scu = &ipcdev;
struct intel_scu_ipc_pdata_t *pdata; 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 */ if (scu->dev) /* We support only one SCU */
return -EBUSY; return -EBUSY;
......
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