summaryrefslogtreecommitdiffstats
path: root/sound/soc/intel/sst/sst.c
diff options
context:
space:
mode:
authorSubhransu S. Prusty <subhransu.s.prusty@intel.com>2014-10-24 13:49:46 +0530
committerMark Brown <broonie@kernel.org>2014-10-27 18:02:38 +0000
commit39581031a90d69e4b79cd044756169ff35ecab46 (patch)
tree77cc2f72b98c4b40ddf864ec5e6a96bf9862e1db /sound/soc/intel/sst/sst.c
parent7f26680170e322730c7c7553f5625fb04de4f5b8 (diff)
ASoC: Intel: mrfld: Replace pci_id with unique device id
In order to support both ACPI and PCI devices we need to use a genric device id in driver, so change all pci_id instances to device_id Signed-off-by: Subhransu S. Prusty <subhransu.s.prusty@intel.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/sst/sst.c')
-rw-r--r--sound/soc/intel/sst/sst.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/soc/intel/sst/sst.c b/sound/soc/intel/sst/sst.c
index d88cdd97f74..fa3421706e4 100644
--- a/sound/soc/intel/sst/sst.c
+++ b/sound/soc/intel/sst/sst.c
@@ -167,7 +167,7 @@ static struct intel_sst_ops mrfld_ops = {
int sst_driver_ops(struct intel_sst_drv *sst)
{
- switch (sst->pci_id) {
+ switch (sst->dev_id) {
case SST_MRFLD_PCI_ID:
sst->tstamp = SST_TIME_STAMP_MRFLD;
sst->ops = &mrfld_ops;
@@ -175,7 +175,7 @@ int sst_driver_ops(struct intel_sst_drv *sst)
default:
dev_err(sst->dev,
- "SST Driver capablities missing for pci_id: %x", sst->pci_id);
+ "SST Driver capablities missing for dev_id: %x", sst->dev_id);
return -EINVAL;
};
}
@@ -210,7 +210,7 @@ static int intel_sst_probe(struct pci_dev *pci,
return -ENOMEM;
sst_drv_ctx->dev = &pci->dev;
- sst_drv_ctx->pci_id = pci->device;
+ sst_drv_ctx->dev_id = pci->device;
if (!sst_pdata)
return -EINVAL;
@@ -278,7 +278,7 @@ static int intel_sst_probe(struct pci_dev *pci,
/* map registers */
/* DDR base */
- if (sst_drv_ctx->pci_id == SST_MRFLD_PCI_ID) {
+ if (sst_drv_ctx->dev_id == SST_MRFLD_PCI_ID) {
sst_drv_ctx->ddr_base = pci_resource_start(pci, 0);
/* check that the relocated IMR base matches with FW Binary */
ddr_base = relocate_imr_addr_mrfld(sst_drv_ctx->ddr_base);
@@ -357,7 +357,7 @@ static int intel_sst_probe(struct pci_dev *pci,
dev_dbg(sst_drv_ctx->dev, "Registered IRQ 0x%x\n", pci->irq);
/* default intr are unmasked so set this as masked */
- if (sst_drv_ctx->pci_id == SST_MRFLD_PCI_ID)
+ if (sst_drv_ctx->dev_id == SST_MRFLD_PCI_ID)
sst_shim_write64(sst_drv_ctx->shim, SST_IMRX, 0xFFFF0038);
pci_set_drvdata(pci, sst_drv_ctx);