From: Dmitry Torokhov Date: Mon, 26 Mar 2012 00:23:19 +0000 (-0700) Subject: Input: xilinx_ps2 - allocate serio port separately X-Git-Tag: v3.5-rc1~103^2^2~57 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=271002ca7956e5ef140c02af1bd8e93063924ec6;p=pandora-kernel.git Input: xilinx_ps2 - allocate serio port separately 'struct serio' is a refcounted data structure with lifetime rules different from 'struct xps2data'. It is quite likely that serio_unregister_port() will try to free memory allocated by the port and that is why it should be allocated separately. Also switch to using platform_get/set_drvdata instead of dev_get/set_drvdata because we are dealing with platform device. Reported-by: Tobias Klauser Signed-off-by: Dmitry Torokhov --- Reading git-diff-tree failed