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

Commit 60f917b8 authored by Fabian Frederick's avatar Fabian Frederick Committed by Chris Metcalf
Browse files

drivers/tty/hvc/hvc_tile.c: use PTR_ERR_OR_ZERO



replace IS_ERR/PTR_ERR

Cc: Chris Metcalf <cmetcalf@tilera.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarChris Metcalf <cmetcalf@tilera.com>
parent b2dfa048
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -196,7 +196,7 @@ static int __init hvc_tile_init(void)
#ifndef __tilegx__
	struct hvc_struct *hp;
	hp = hvc_alloc(0, 0, &hvc_tile_get_put_ops, 128);
	return IS_ERR(hp) ? PTR_ERR(hp) : 0;
	return PTR_ERR_OR_ZERO(hp);
#else
	platform_device_register(&hvc_tile_pdev);
	return platform_driver_register(&hvc_tile_driver);