diff options
author | Finn Thain <fthain@telegraphics.com.au> | 2020-06-28 14:23:12 +1000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2020-07-26 23:34:25 +1000 |
commit | 046ace8256489f32740da07de55a913ca09ce5cf (patch) | |
tree | 0f7839de259934c70862ffdffe6234b7c24905c3 /drivers/macintosh | |
parent | 5c0c15a1953a7de2878d7e6f5711fd3322b11faa (diff) | |
download | linux-stable-046ace8256489f32740da07de55a913ca09ce5cf.tar.gz linux-stable-046ace8256489f32740da07de55a913ca09ce5cf.tar.bz2 linux-stable-046ace8256489f32740da07de55a913ca09ce5cf.zip |
macintosh/via-macii: Use the stack for reset request storage
The adb_request struct can be stored on the stack because the request
is synchronous and is completed before the function returns.
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Tested-by: Stan Johnson <userm57@yahoo.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/a40f80dde90991757007b6962c386a208c970586.1593318192.git.fthain@telegraphics.com.au
Diffstat (limited to 'drivers/macintosh')
-rw-r--r-- | drivers/macintosh/via-macii.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/macintosh/via-macii.c b/drivers/macintosh/via-macii.c index 447273967e1e..2f9be4ec7d34 100644 --- a/drivers/macintosh/via-macii.c +++ b/drivers/macintosh/via-macii.c @@ -313,7 +313,7 @@ static void macii_poll(void) /* Reset the bus */ static int macii_reset_bus(void) { - static struct adb_request req; + struct adb_request req; /* Command = 0, Address = ignored */ adb_request(&req, NULL, ADBREQ_NOSEND, 1, ADB_BUSRESET); |