]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
platform/chrome: cros_usbpd_logger: Simplify with devm
authorKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Thu, 5 Mar 2026 21:45:49 +0000 (22:45 +0100)
committerTzung-Bi Shih <tzungbi@kernel.org>
Fri, 20 Mar 2026 02:57:04 +0000 (02:57 +0000)
commit168e4b208ca8c2e04de20cc6cb7e2fb035dc1ec8
tree96cef16f3526ebcebf04ba7b3e1b490ce1a2aae0
parentc98f7d6ac39fed778a425c0ca18b002f6ee5a77a
platform/chrome: cros_usbpd_logger: Simplify with devm

Simplify the driver by using devm interfaces, which allow to drop
probe() error paths and the remove() callback.

Change is not equivalent in the workqueue itself: use non-legacy API
which does not set (__WQ_LEGACY | WQ_MEM_RECLAIM).  The workqueue is
used to update logs, thus there is no point to run it for memory
reclaim.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20260305-workqueue-devm-v2-10-66a38741c652@oss.qualcomm.com
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
drivers/platform/chrome/cros_usbpd_logger.c