From: Greg Kroah-Hartman Date: Fri, 23 Jan 2015 02:05:58 +0000 (+0800) Subject: greybus: Revert "protocol.c: fix a kernel panic caused by __gb_protocol_register" X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c1a0a8fccf92d825a6c324c3e2363fefdb3f19da;p=openwrt%2Fstaging%2Fblogic.git greybus: Revert "protocol.c: fix a kernel panic caused by __gb_protocol_register" This reverts commit 57131bf309d34568dd3b8f8e9da7a7ba25e9495e, it isn't going to be needed as the patch this fixes will be reverted. Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/protocol.c b/drivers/staging/greybus/protocol.c index 400f73386474..ae8ab21ee920 100644 --- a/drivers/staging/greybus/protocol.c +++ b/drivers/staging/greybus/protocol.c @@ -70,7 +70,7 @@ int __gb_protocol_register(struct gb_protocol *protocol, struct module *module) * We need to insert the protocol here, before the existing one * (or before the head if we searched the whole list) */ - list_add_tail(&protocol->links, &gb_protocols); + list_add_tail(&protocol->links, &existing->links); spin_unlock_irq(&gb_protocols_lock); pr_info("Registered %s protocol.\n", protocol->name);