Geert Uytterhoeven
08880713ce
regulator: core: Streamline debugfs operations
...
If CONFIG_DEBUG_FS is not set:
regulator: Failed to create debugfs directory
...
regulator-dummy: Failed to create debugfs directory
As per the comments for debugfs_create_dir(), errors returned by this
function should be expected, and ignored:
* If debugfs is not enabled in the kernel, the value -%ENODEV will be
* returned.
*
* NOTE: it's expected that most callers should _ignore_ the errors returned
* by this function. Other debugfs functions handle the fact that the "dentry"
* passed to them could be an error and they don't crash in that case.
* Drivers should generally work fine even if debugfs fails to init anyway.
Adhere to the debugfs spirit, and streamline all operations by:
1. Demoting the importance of the printed error messages to debug
level, like is already done in create_regulator(),
2. Further ignoring any returned errors, as by design, all debugfs
functions are no-ops when passed an error pointer.
Fixes: 2bf1c45be3b8f3a3 ("regulator: Fix error checking for debugfs_create_dir")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/2f8bb6e113359ddfab7b59e4d4274bd4c06d6d0a.1685013051.git.geert+renesas@glider.be
Signed-off-by: Mark Brown <broonie@kernel.org>
2023-05-25 12:15:41 +01:00
..
2023-05-08 08:50:11 +09:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:25 +00:00
2023-05-08 08:50:11 +09:00
2023-03-20 13:11:25 +00:00
2023-05-08 08:50:11 +09:00
2023-03-20 13:11:25 +00:00
2023-03-23 13:50:58 +00:00
2023-03-23 13:50:59 +00:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:29 +00:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:26 +00:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:28 +00:00
2023-03-20 13:11:29 +00:00
2023-03-20 13:11:28 +00:00
2023-05-25 12:15:41 +01:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:28 +00:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:25 +00:00
2023-04-12 12:52:10 +01:00
2023-05-08 08:50:11 +09:00
2021-11-30 13:08:18 +00:00
2023-05-08 08:50:11 +09:00
2019-05-03 15:07:39 +09:00
2023-05-08 08:50:11 +09:00
2019-05-03 15:07:39 +09:00
2023-03-20 13:11:25 +00:00
2021-07-11 23:50:43 +01:00
2019-05-30 11:29:22 -07:00
2022-12-08 13:02:37 +00:00
2023-03-20 13:11:25 +00:00
2019-05-30 11:26:32 -07:00
2023-05-08 08:50:11 +09:00
2023-05-08 08:50:11 +09:00
2023-01-13 13:06:03 +00:00
2023-04-11 16:11:32 +01:00
2023-03-20 13:11:25 +00:00
2023-05-23 19:01:55 +01:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:29 +00:00
2022-11-03 13:34:53 +00:00
2021-11-24 12:57:30 +00:00
2023-05-08 08:50:11 +09:00
2023-05-08 08:50:11 +09:00
2023-05-23 22:43:03 +01:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:27 +00:00
2023-05-08 08:50:11 +09:00
2023-03-20 13:11:25 +00:00
2023-05-08 08:50:11 +09:00
2023-05-08 08:50:11 +09:00
2023-05-08 08:50:11 +09:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:25 +00:00
2023-05-08 08:50:11 +09:00
2023-05-08 08:50:11 +09:00
2023-05-09 13:26:49 +09:00
2023-03-20 13:11:29 +00:00
2023-05-08 08:50:11 +09:00
2023-05-08 08:50:11 +09:00
2023-05-08 08:50:11 +09:00
2023-05-08 08:50:11 +09:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:25 +00:00
2023-05-08 08:50:11 +09:00
2023-05-08 08:50:11 +09:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:25 +00:00
2023-05-08 08:50:11 +09:00
2023-05-08 08:50:11 +09:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:27 +00:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:25 +00:00
2023-05-08 08:50:11 +09:00
2019-03-04 00:01:08 +00:00
2019-05-30 11:26:32 -07:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:25 +00:00
2023-05-08 08:50:11 +09:00
2023-05-08 08:50:11 +09:00
2023-05-08 08:50:11 +09:00
2023-05-08 08:50:11 +09:00
2023-05-08 08:50:11 +09:00
2020-01-17 15:34:31 +00:00
2023-05-08 08:50:11 +09:00
2019-04-26 10:38:23 +01:00
2023-03-20 13:11:29 +00:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:29 +00:00
2023-03-20 13:11:29 +00:00
2023-03-20 13:11:30 +00:00
2023-03-20 13:11:27 +00:00
2023-05-18 19:24:47 +09:00
2023-03-20 13:11:28 +00:00
2023-03-20 13:11:29 +00:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:29 +00:00
2022-12-08 13:02:37 +00:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:25 +00:00
2023-05-25 10:55:24 +01:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:25 +00:00
2023-05-08 08:50:11 +09:00
2023-05-08 08:50:11 +09:00
2023-05-08 08:50:11 +09:00
2019-05-03 15:05:52 +09:00
2023-05-08 08:50:11 +09:00
2019-05-03 15:05:52 +09:00
2023-05-08 08:50:11 +09:00
2019-05-03 15:05:52 +09:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:25 +00:00
2023-04-11 12:40:16 +01:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:28 +00:00
2023-03-20 13:11:28 +00:00
2023-04-06 21:09:06 +01:00
2023-03-20 13:11:25 +00:00
2023-05-23 19:01:59 +01:00
2023-03-20 13:11:25 +00:00
2021-11-18 13:57:47 +00:00
2023-05-08 08:50:11 +09:00
2023-05-08 08:50:11 +09:00
2023-03-29 17:46:31 +01:00
2023-03-20 13:11:29 +00:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:29 +00:00
2023-05-08 08:50:11 +09:00
2023-03-20 13:11:30 +00:00
2023-05-08 08:50:11 +09:00
2023-05-08 08:50:11 +09:00
2023-05-08 08:50:11 +09:00
2023-05-08 08:50:11 +09:00
2023-05-08 08:50:11 +09:00
2023-05-08 08:50:11 +09:00
2023-05-08 08:50:11 +09:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:26 +00:00
2023-01-26 22:54:47 +00:00
2023-03-20 13:11:25 +00:00
2023-05-08 08:50:11 +09:00
2019-05-13 11:07:43 +01:00
2023-04-25 17:13:47 -07:00
2023-03-20 13:11:27 +00:00
2023-04-27 16:36:55 -07:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:27 +00:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:29 +00:00
2023-05-08 08:50:11 +09:00
2023-05-08 08:50:11 +09:00
2023-05-08 08:50:11 +09:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:25 +00:00
2023-05-08 08:50:11 +09:00
2023-05-17 10:38:20 +09:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:25 +00:00
2023-05-08 08:50:11 +09:00
2023-05-08 08:50:11 +09:00
2023-05-08 08:50:11 +09:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:25 +00:00
2023-05-08 08:50:11 +09:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:25 +00:00
2023-05-09 13:27:03 +09:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:29 +00:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:26 +00:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:28 +00:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:25 +00:00
2023-03-20 13:11:25 +00:00
2023-03-23 12:24:15 +00:00