From mboxrd@z Thu Jan 1 00:00:00 1970 From: marex@denx.de (Marek Vasut) Date: Fri, 22 Nov 2013 01:42:22 +0100 Subject: [PATCH] backlight: pwm_bl: Do not make the regulator mandatory In-Reply-To: <1385055795-24002-1-git-send-email-fabio.estevam@freescale.com> References: <1385055795-24002-1-git-send-email-fabio.estevam@freescale.com> Message-ID: <201311220142.22605.marex@denx.de> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Dear Fabio Estevam, > Commit 22ceeee1 (pwm-backlight: Add power supply support) caused breakage > on boards that do not define the backlight regulator on their dts files. > > Instead of making the backlight regulator mandatory, treat it as optional > instead, so that we do not have breakage. > > This avoids the need for adding a dummy regulator on every dts file that > uses the pwm-backlight. > > Tested on a mx6qsabresd. This patch certainly makes sense, there are plenty of simple boards that have no actual supply for the PWM. Acked-by: Marek Vasut Best regards, Marek Vasut