summaryrefslogtreecommitdiff
path: root/drivers/macintosh
diff options
context:
space:
mode:
authorFinn Thain <fthain@telegraphics.com.au>2020-06-28 07:23:12 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2020-07-26 16:34:25 +0300
commit046ace8256489f32740da07de55a913ca09ce5cf (patch)
tree0f7839de259934c70862ffdffe6234b7c24905c3 /drivers/macintosh
parent5c0c15a1953a7de2878d7e6f5711fd3322b11faa (diff)
downloadlinux-046ace8256489f32740da07de55a913ca09ce5cf.tar.xz
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.c2
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);