diff options
| author | Sourabh Jain <sourabhjain@linux.ibm.com> | 2026-07-27 11:04:15 +0530 |
|---|---|---|
| committer | Madhavan Srinivasan <maddy@linux.ibm.com> | 2026-08-03 14:05:55 +0530 |
| commit | e65b526affa621b50646cafdf6b06505af07032e (patch) | |
| tree | e873c3c8dfa2a9ece63a34b87326d1100a21a3ad /tools/lib/python | |
| parent | 516a254918453ec99660201263d01189c082332c (diff) | |
powerpc/pseries: Handle and log pseries-wdt registration failures
The pseries watchdog initialization registers the pseries-wdt platform
device using platform_device_register_simple(), but currently ignores
its return value.
Check the returned pointer for errors, log a descriptive error message
when registration fails, and propagate the failure code to the caller.
This avoids silently ignoring platform device registration failures.
Cc: stable@vger.kernel.org
Reviewed-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Signed-off-by: Sourabh Jain <sourabhjain@linux.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20260727053416.276317-3-sourabhjain@linux.ibm.com
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
