From: Andy Shevchenko Date: Wed, 14 Jan 2015 16:39:31 +0000 (+0200) Subject: x86: pmc-atom: Assign debugfs node as soon as possible X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~156^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b43d7125f3b6f7d46e72da64f65f3187a83b66b;p=pandora-kernel.git x86: pmc-atom: Assign debugfs node as soon as possible pmc_dbgfs_unregister() will be called when pmc->dbgfs_dir is unconditionally NULL on error path in pmc_dbgfs_register(). To prevent this we move the assignment to where is should be. Fixes: f855911c1f48 (x86/pmc_atom: Expose PMC device state and platform sleep state) Reported-by: Thomas Gleixner Signed-off-by: Andy Shevchenko Cc: Aubrey Li Cc: Rafael J. Wysocki Cc: Kumar P. Mahesh Link: http://lkml.kernel.org/r/1421253575-22509-2-git-send-email-andriy.shevchenko@linux.intel.com Signed-off-by: Thomas Gleixner --- Reading git-diff-tree failed