Re: [PATCH] mfd: omap: cleanup: use macros to check for TLL mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Sep 14, 2011 at 7:57 PM, Kishon Vijay Abraham I <kishon@xxxxxx> wrote:
> In one particular place the old form of checking for TLL mode is used.
> This patch fixes the same by using macros to check for TLL mode.
>
> Signed-off-by: Kishon Vijay Abraham I <kishon@xxxxxx>
> ---
> patch is created on top of runtime patches from keshava hsoted at
> git://gitorious.org/~kmg/mirrors/kmg-usbhs-pm.git
> branch:kmg-pm-1
>  drivers/mfd/omap-usb-host.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/mfd/omap-usb-host.c b/drivers/mfd/omap-usb-host.c
> index e6f3b01..d43ca08 100644
> --- a/drivers/mfd/omap-usb-host.c
> +++ b/drivers/mfd/omap-usb-host.c
> @@ -401,7 +401,7 @@ static void usbhs_omap_tll_init(struct device *dev, u8 tll_channel_count)
>                        reg |= ohci_omap3_fslsmode(pdata->port_mode[i])
>                                << OMAP_TLL_CHANNEL_CONF_FSLSMODE_SHIFT;
>                        reg |= OMAP_TLL_CHANNEL_CONF_CHANMODE_FSLS;
> -               } else if (pdata->port_mode[i] == OMAP_EHCI_PORT_MODE_TLL) {
> +               } else if (is_ehci_tll_mode(pdata->port_mode[i])) {
>
>                        /* Disable AutoIdle, BitStuffing and use SDR Mode */
>                        reg &= ~(OMAP_TLL_CHANNEL_CONF_UTMIAUTOIDLE
> --
> 1.7.0.4
>
>

is this rebased to my pm branch of runtime pm adaptations?

regards
keshava
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux