diff options
| -rw-r--r-- | drivers/remoteproc/remoteproc_debugfs.c | 3 | ||||
| -rw-r--r-- | drivers/remoteproc/remoteproc_internal.h | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/drivers/remoteproc/remoteproc_debugfs.c b/drivers/remoteproc/remoteproc_debugfs.c index 157a57309601..9d30809bb407 100644 --- a/drivers/remoteproc/remoteproc_debugfs.c +++ b/drivers/remoteproc/remoteproc_debugfs.c | |||
| @@ -248,6 +248,5 @@ void __init rproc_init_debugfs(void) | |||
| 248 | 248 | ||
| 249 | void __exit rproc_exit_debugfs(void) | 249 | void __exit rproc_exit_debugfs(void) |
| 250 | { | 250 | { |
| 251 | if (rproc_dbg) | 251 | debugfs_remove(rproc_dbg); |
| 252 | debugfs_remove(rproc_dbg); | ||
| 253 | } | 252 | } |
diff --git a/drivers/remoteproc/remoteproc_internal.h b/drivers/remoteproc/remoteproc_internal.h index 157e762c1571..70701a50ddfa 100644 --- a/drivers/remoteproc/remoteproc_internal.h +++ b/drivers/remoteproc/remoteproc_internal.h | |||
| @@ -107,12 +107,12 @@ struct resource_table *rproc_find_rsc_table(struct rproc *rproc, | |||
| 107 | 107 | ||
| 108 | static inline | 108 | static inline |
| 109 | struct resource_table *rproc_find_loaded_rsc_table(struct rproc *rproc, | 109 | struct resource_table *rproc_find_loaded_rsc_table(struct rproc *rproc, |
| 110 | const struct firmware *fw) | 110 | const struct firmware *fw) |
| 111 | { | 111 | { |
| 112 | if (rproc->fw_ops->find_loaded_rsc_table) | 112 | if (rproc->fw_ops->find_loaded_rsc_table) |
| 113 | return rproc->fw_ops->find_loaded_rsc_table(rproc, fw); | 113 | return rproc->fw_ops->find_loaded_rsc_table(rproc, fw); |
| 114 | 114 | ||
| 115 | return NULL; | 115 | return NULL; |
| 116 | } | 116 | } |
| 117 | 117 | ||
| 118 | extern const struct rproc_fw_ops rproc_elf_fw_ops; | 118 | extern const struct rproc_fw_ops rproc_elf_fw_ops; |
