summaryrefslogtreecommitdiff
path: root/drivers/power
diff options
context:
space:
mode:
authorDamian Hobson-Garcia <dhobsong@igel.co.jp>2012-11-16 05:46:12 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-11-21 21:44:10 (GMT)
commitd5185c4eb3a022f7e7a435238c2b0b885e6b4821 (patch)
treeaece700c34a2f5af161740a2e85a756040dd557a /drivers/power
parent439926c81c01f31f9ffa7af7bf2d242b7f794f3c (diff)
downloadlinux-d5185c4eb3a022f7e7a435238c2b0b885e6b4821.tar.xz
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 <fengguang.wu@intel.com> Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp> Cc: "Hans J. Koch" <hjk@hansjkoch.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/power')
0 files changed, 0 insertions, 0 deletions