diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2022-10-12 16:00:32 +0200 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2023-04-14 18:03:06 +0200 |
commit | 04523aceae8c89d3c91ff33bdde6892f63a60f35 (patch) | |
tree | 393b6369e0e5348b340c6293389752a57392e5cd /net/core/ptp_classifier.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 <u.kleine-koenig@pengutronix.de>
Reviewed-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'net/core/ptp_classifier.c')
0 files changed, 0 insertions, 0 deletions