ASoC: Intel: sst: Remove unused function sst_restore_shim64()
[sfrench/cifs-2.6.git] / sound / soc / intel / atom / sst / sst.c
index f9ba71315e335021b34aa18b4030a29b861bcac1..2d43b8693c0c5a01ded064cdbfd396a32f20f0a3 100644 (file)
@@ -258,7 +258,7 @@ static ssize_t firmware_version_show(struct device *dev,
 
 }
 
-DEVICE_ATTR_RO(firmware_version);
+static DEVICE_ATTR_RO(firmware_version);
 
 static const struct attribute *sst_fw_version_attrs[] = {
        &dev_attr_firmware_version.attr,
@@ -397,22 +397,6 @@ static inline void sst_save_shim64(struct intel_sst_drv *ctx,
        spin_unlock_irqrestore(&ctx->ipc_spin_lock, irq_flags);
 }
 
-static inline void sst_restore_shim64(struct intel_sst_drv *ctx,
-                                     void __iomem *shim,
-                                     struct sst_shim_regs64 *shim_regs)
-{
-       unsigned long irq_flags;
-
-       /*
-        * we only need to restore IMRX for this case, rest will be
-        * initialize by FW or driver when firmware is loaded
-        */
-       spin_lock_irqsave(&ctx->ipc_spin_lock, irq_flags);
-       sst_shim_write64(shim, SST_IMRX, shim_regs->imrx);
-       sst_shim_write64(shim, SST_CSR, shim_regs->csr);
-       spin_unlock_irqrestore(&ctx->ipc_spin_lock, irq_flags);
-}
-
 void sst_configure_runtime_pm(struct intel_sst_drv *ctx)
 {
        pm_runtime_set_autosuspend_delay(ctx->dev, SST_SUSPEND_DELAY);