| .. | .. |
|---|
| 67 | 67 | * Newest followed by older ones. Search is done from start of the array |
|---|
| 68 | 68 | * until a firmware file is found. |
|---|
| 69 | 69 | */ |
|---|
| 70 | | -const char *knav_acc_firmwares[] = {"ks2_qmss_pdsp_acc48.bin"}; |
|---|
| 70 | +static const char * const knav_acc_firmwares[] = {"ks2_qmss_pdsp_acc48.bin"}; |
|---|
| 71 | 71 | |
|---|
| 72 | 72 | static bool device_ready; |
|---|
| 73 | 73 | bool knav_qmss_device_ready(void) |
|---|
| .. | .. |
|---|
| 1782 | 1782 | INIT_LIST_HEAD(&kdev->pdsps); |
|---|
| 1783 | 1783 | |
|---|
| 1784 | 1784 | pm_runtime_enable(&pdev->dev); |
|---|
| 1785 | | - ret = pm_runtime_get_sync(&pdev->dev); |
|---|
| 1785 | + ret = pm_runtime_resume_and_get(&pdev->dev); |
|---|
| 1786 | 1786 | if (ret < 0) { |
|---|
| 1787 | | - pm_runtime_put_noidle(&pdev->dev); |
|---|
| 1787 | + pm_runtime_disable(&pdev->dev); |
|---|
| 1788 | 1788 | dev_err(dev, "Failed to enable QMSS\n"); |
|---|
| 1789 | 1789 | return ret; |
|---|
| 1790 | 1790 | } |
|---|