From: Dmitry Torokhov Date: Thu, 12 Mar 2015 21:00:03 +0000 (-0700) Subject: hwrng: bcm63xx - make use of devm_hwrng_register X-Git-Tag: omap-for-v4.2/o2_dc~130^2~89 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6229c16060fe;p=pandora-kernel.git hwrng: bcm63xx - make use of devm_hwrng_register This change converts bcm63xx-rng to use devm* API for managing all resources, which allows us to dispense with the rest of error handling path and remove() function. Also we combine hwern and driver-private data into a single allocation, use clk_prepare_enable() instead of "naked" clk_enable() and move clock enabling/disabling into hwrnd inti(0 and cleanup() methods so the clock stays off until rng is used. Signed-off-by: Dmitry Torokhov Signed-off-by: Herbert Xu --- Reading git-diff-tree failed