From: Andy Shevchenko Date: Wed, 5 Apr 2017 16:05:26 +0000 (+0300) Subject: platform/x86: intel_scu_ipc: Remove redundant subarch check X-Git-Tag: v4.12-rc1~101^2~52 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=07ac1af3fc3e11f5b0948597aaad78d30c45a289;p=karo-tx-linux.git 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 --- 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) */ 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;