Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4a672cfa authored by Martin Schwidefsky's avatar Martin Schwidefsky
Browse files

[S390] fix initialization of stp



chsc_sstpc returns -EIO on error and 0 on success but stp_reset checks
against 1 instead of 0. chsc_sstpc used to return 1 on success, one
call location has not been updated ..

Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 408aec3c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1356,7 +1356,7 @@ static void __init stp_reset(void)

	stp_page = alloc_bootmem_pages(PAGE_SIZE);
	rc = chsc_sstpc(stp_page, STP_OP_CTRL, 0x0000);
	if (rc == 1)
	if (rc == 0)
		set_bit(CLOCK_SYNC_HAS_STP, &clock_sync_flags);
	else if (stp_online) {
		printk(KERN_WARNING "Running on non STP capable machine.\n");