From: Geert Uytterhoeven Date: Thu, 4 Jun 2015 18:22:32 +0000 (+0200) Subject: ARM: shmobile: R-Car: Get rid of on_off_fn() function pointer X-Git-Tag: omap-for-v4.3/fixes-merge-window~9^2~24^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bcb8243792eaa855a51c96bfeaa5dbca19f48d07;p=pandora-kernel.git ARM: shmobile: R-Car: Get rid of on_off_fn() function pointer Simplify the power request code by passing an "on" flag, and picking the right status bit and register offset in the innermost function, based on this flag. This allows to remove the rcar_sysc_pwr_{off,on}() helper functions, and the function pointer through which they were called. Make sr_bit and reg_offs unsigned while we're at it. Signed-off-by: Geert Uytterhoeven Signed-off-by: Simon Horman --- Reading git-diff-tree failed