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

Commit 6cc4abe4 authored by Eric Miao's avatar Eric Miao
Browse files

pxafb: only initialize the smart panel thread when dealing with a smartpanel



Signed-off-by: default avatarDaniel Mack <daniel@caiaq.de>
Signed-off-by: default avatarEric Miao <eric.miao@marvell.com>
parent 1ec26db1
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -804,6 +804,9 @@ static int pxafb_smart_thread(void *arg)

static int pxafb_smart_init(struct pxafb_info *fbi)
{
	if (!(fbi->lccr0 | LCCR0_LCDT))
		return 0;

	fbi->smart_thread = kthread_run(pxafb_smart_thread, fbi,
					"lcd_refresh");
	if (IS_ERR(fbi->smart_thread)) {