mfd: pmic: Fix memory leak in debug probe

Free the debug device allocated before an
unsuccessful exit, both in pmic8058 and
pmic8901.

CRs-fixed: 308192
Signed-off-by: Jay Chokshi <jchokshi@codeaurora.org>
(cherry picked from commit b6961a9b314dcea6b506aa091d8c947b4f1a7db7)

Change-Id: Ice0e7c0d267e48f61dc3858a0e30511f7aa2ee80
Signed-off-by: Shruthi Krishna <skrish@codeaurora.org>
From: Sumit Bhattacharya <sumitb@nvidia.com>

dma_alloc_coherent wants to split pages after allocation in order to
reduce the memory footprint. This does not work well with GFP_COMP
pages, so drop this flag before allocation.

This patch is ported from arch/avr32
(commit 3611553ef985ef7c5863c8a94641738addd04cff).

Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
mm: use aligned zone start for pfn_to_bitidx calculation