From: Damian Hobson-Garcia Date: Fri, 16 Nov 2012 05:46:12 +0000 (+0900) Subject: drivers: uio: Only allocate new private data when probing device tree node X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~85^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5185c4eb3a022f7e7a435238c2b0b885e6b4821;p=pandora-kernel.git drivers: uio: Only allocate new private data when probing device tree node The same condition should be used both when allocating and freeing the driver private data. When dev.of_node is non NULL, allocate a new private data structure, otherwise use the values from the platform data. Reported-by: Fengguang Wu Signed-off-by: Damian Hobson-Garcia Cc: "Hans J. Koch" Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed