Commit 046ace82 authored by Finn Thain's avatar Finn Thain Committed by Michael Ellerman

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: default avatarFinn Thain <fthain@telegraphics.com.au>
Tested-by: default avatarStan Johnson <userm57@yahoo.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/a40f80dde90991757007b6962c386a208c970586.1593318192.git.fthain@telegraphics.com.au
parent 5c0c15a1
...@@ -313,7 +313,7 @@ static void macii_poll(void) ...@@ -313,7 +313,7 @@ static void macii_poll(void)
/* Reset the bus */ /* Reset the bus */
static int macii_reset_bus(void) static int macii_reset_bus(void)
{ {
static struct adb_request req; struct adb_request req;
/* Command = 0, Address = ignored */ /* Command = 0, Address = ignored */
adb_request(&req, NULL, ADBREQ_NOSEND, 1, ADB_BUSRESET); adb_request(&req, NULL, ADBREQ_NOSEND, 1, ADB_BUSRESET);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment