From: Alexandre Courbot Date: Thu, 12 Feb 2015 04:36:11 +0000 (+0900) Subject: mmc: pwrseq: simplify alloc/free hooks X-Git-Tag: omap-for-v4.2/o2_dc~168^2~48 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f12a0ce4ce4a;p=pandora-kernel.git mmc: pwrseq: simplify alloc/free hooks The alloc() and free() hooks required each pwrseq implementation to set host->pwrseq themselves. This is error-prone and could be done at a higher level if alloc() was changed to return a pointer to a struct mmc_pwrseq instead of an error code. This patch performs this change and moves the burden of maintaining host->pwrseq from the power sequence hooks to the pwrseq code. Signed-off-by: Alexandre Courbot Signed-off-by: Ulf Hansson --- Reading git-diff-tree failed