Unverified Commit 21ce84da authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!9362 macintosh/via-macii: Fix "BUG: sleeping function called from invalid context"

parents 2b2a7e65 1d7ff300
Loading
Loading
Loading
Loading
+3 −8
Original line number Diff line number Diff line
@@ -142,24 +142,19 @@ static int macii_probe(void)
/* Initialize the driver */
static int macii_init(void)
{
	unsigned long flags;
	int err;

	local_irq_save(flags);

	err = macii_init_via();
	if (err)
		goto out;
		return err;

	err = request_irq(IRQ_MAC_ADB, macii_interrupt, 0, "ADB",
			  macii_interrupt);
	if (err)
		goto out;
		return err;

	macii_state = idle;
out:
	local_irq_restore(flags);
	return err;
	return 0;
}

/* initialize the hardware */