diff options
author | Uwe Kleine-König <[email protected]> | 2022-10-12 16:00:32 +0200 |
---|---|---|
committer | Arnd Bergmann <[email protected]> | 2023-04-14 18:03:06 +0200 |
commit | 04523aceae8c89d3c91ff33bdde6892f63a60f35 (patch) | |
tree | 393b6369e0e5348b340c6293389752a57392e5cd /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | aebe916f9e79f3d754da2a7d9e2720d18bbff72b (diff) |
soc: ti: smartreflex: Simplify getting the opam_sr pointer
The probe function stores the sr_info pointer using
platform_set_drvdata(). Use the corresponding platform_get_drvdata() to
retrieve that pointer in the remove and shutdown functions.
This simplifies these functions and makes error handling unnecessary.
This is a good thing as at least for .remove() returning an error code
doesn't have the desired effect.
This is a preparation for making platform remove callbacks return void.
Signed-off-by: Uwe Kleine-König <[email protected]>
Reviewed-by: Tony Lindgren <[email protected]>
Signed-off-by: Arnd Bergmann <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions