Skip to content

Commit 046ace8

Browse files
Finn Thainmpe
authored andcommitted
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
1 parent 5c0c15a commit 046ace8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/macintosh/via-macii.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ static void macii_poll(void)
313313
/* Reset the bus */
314314
static int macii_reset_bus(void)
315315
{
316-
static struct adb_request req;
316+
struct adb_request req;
317317

318318
/* Command = 0, Address = ignored */
319319
adb_request(&req, NULL, ADBREQ_NOSEND, 1, ADB_BUSRESET);

0 commit comments

Comments
 (0)