aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/modules.py
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2023-07-19 21:20:09 +0200
committerThierry Reding <thierry.reding@gmail.com>2023-07-28 09:34:42 +0200
commit0323e8fedd1ef25342cf7abf3a2024f5670362b8 (patch)
treea08eb05d41c65033ab6643e8034824d9b271f271 /scripts/gdb/linux/modules.py
parent84c33f4278249aecb49375fb884b0b14a3664a63 (diff)
pwm: atmel-tcb: Harmonize resource allocation order
Allocate driver data as first resource in the probe function. This way it can be used during allocation of the other resources (instead of assigning these to local variables first and update driver data only when it's allocated). Also as driver data is allocated using a devm function this should happen first to have the order of freeing resources in the error path and the remove function in reverse. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions