diff mbox

omap: usb: host: remove deprecated flag 'es2_compatibility'

Message ID 1343153320-4628-1-git-send-email-ruslan.bilovol@ti.com (mailing list archive)
State New, archived
Headers show

Commit Message

Ruslan Bilovol July 24, 2012, 6:08 p.m. UTC
Currently this flag is not used anywhere and may be safely removed.

Signed-off-by: Ruslan Bilovol <ruslan.bilovol@ti.com>
---
 arch/arm/mach-omap2/usb-host.c        |    1 -
 arch/arm/plat-omap/include/plat/usb.h |    4 ----
 2 files changed, 0 insertions(+), 5 deletions(-)

Comments

Felipe Balbi July 25, 2012, 7:54 a.m. UTC | #1
Hi,

On Tue, Jul 24, 2012 at 09:08:40PM +0300, Ruslan Bilovol wrote:
> Currently this flag is not used anywhere and may be safely removed.
> 
> Signed-off-by: Ruslan Bilovol <ruslan.bilovol@ti.com>

looks good to me. Keshava ?

> ---
>  arch/arm/mach-omap2/usb-host.c        |    1 -
>  arch/arm/plat-omap/include/plat/usb.h |    4 ----
>  2 files changed, 0 insertions(+), 5 deletions(-)
> 
> diff --git a/arch/arm/mach-omap2/usb-host.c b/arch/arm/mach-omap2/usb-host.c
> index dde8a11..5e1cb53 100644
> --- a/arch/arm/mach-omap2/usb-host.c
> +++ b/arch/arm/mach-omap2/usb-host.c
> @@ -500,7 +500,6 @@ void __init usbhs_init(const struct usbhs_omap_board_data *pdata)
>  		ehci_data.regulator[i] = pdata->regulator[i];
>  	}
>  	ehci_data.phy_reset = pdata->phy_reset;
> -	ohci_data.es2_compatibility = pdata->es2_compatibility;
>  	usbhs_data.ehci_data = &ehci_data;
>  	usbhs_data.ohci_data = &ohci_data;
>  
> diff --git a/arch/arm/plat-omap/include/plat/usb.h b/arch/arm/plat-omap/include/plat/usb.h
> index 762eeb0..f8c1eb8 100644
> --- a/arch/arm/plat-omap/include/plat/usb.h
> +++ b/arch/arm/plat-omap/include/plat/usb.h
> @@ -32,9 +32,6 @@ struct usbhs_omap_board_data {
>  	/* have to be valid if phy_reset is true and portx is in phy mode */
>  	int	reset_gpio_port[OMAP3_HS_USB_PORTS];
>  
> -	/* Set this to true for ES2.x silicon */
> -	unsigned			es2_compatibility:1;
> -
>  	unsigned			phy_reset:1;
>  
>  	/*
> @@ -53,7 +50,6 @@ struct ehci_hcd_omap_platform_data {
>  
>  struct ohci_hcd_omap_platform_data {
>  	enum usbhs_omap_port_mode	port_mode[OMAP3_HS_USB_PORTS];
> -	unsigned			es2_compatibility:1;
>  };
>  
>  struct usbhs_omap_platform_data {
> -- 
> 1.7.1
>
Munegowda, Keshava July 25, 2012, 12:34 p.m. UTC | #2
On Wed, Jul 25, 2012 at 1:24 PM, Felipe Balbi <balbi@ti.com> wrote:
> Hi,
>
> On Tue, Jul 24, 2012 at 09:08:40PM +0300, Ruslan Bilovol wrote:
>> Currently this flag is not used anywhere and may be safely removed.
>>
>> Signed-off-by: Ruslan Bilovol <ruslan.bilovol@ti.com>
>
> looks good to me. Keshava ?

Ruslan
     please remove the structure ohci_hcd_omap_platform_data too.
the ohci port configuration is any taken care by omap-usb-host.c file..

regards
keshava


>
>> ---
>>  arch/arm/mach-omap2/usb-host.c        |    1 -
>>  arch/arm/plat-omap/include/plat/usb.h |    4 ----
>>  2 files changed, 0 insertions(+), 5 deletions(-)
>>
>> diff --git a/arch/arm/mach-omap2/usb-host.c b/arch/arm/mach-omap2/usb-host.c
>> index dde8a11..5e1cb53 100644
>> --- a/arch/arm/mach-omap2/usb-host.c
>> +++ b/arch/arm/mach-omap2/usb-host.c
>> @@ -500,7 +500,6 @@ void __init usbhs_init(const struct usbhs_omap_board_data *pdata)
>>               ehci_data.regulator[i] = pdata->regulator[i];
>>       }
>>       ehci_data.phy_reset = pdata->phy_reset;
>> -     ohci_data.es2_compatibility = pdata->es2_compatibility;
>>       usbhs_data.ehci_data = &ehci_data;
>>       usbhs_data.ohci_data = &ohci_data;
>>
>> diff --git a/arch/arm/plat-omap/include/plat/usb.h b/arch/arm/plat-omap/include/plat/usb.h
>> index 762eeb0..f8c1eb8 100644
>> --- a/arch/arm/plat-omap/include/plat/usb.h
>> +++ b/arch/arm/plat-omap/include/plat/usb.h
>> @@ -32,9 +32,6 @@ struct usbhs_omap_board_data {
>>       /* have to be valid if phy_reset is true and portx is in phy mode */
>>       int     reset_gpio_port[OMAP3_HS_USB_PORTS];
>>
>> -     /* Set this to true for ES2.x silicon */
>> -     unsigned                        es2_compatibility:1;
>> -
>>       unsigned                        phy_reset:1;
>>
>>       /*
>> @@ -53,7 +50,6 @@ struct ehci_hcd_omap_platform_data {
>>
>>  struct ohci_hcd_omap_platform_data {
>>       enum usbhs_omap_port_mode       port_mode[OMAP3_HS_USB_PORTS];
>> -     unsigned                        es2_compatibility:1;
>>  };
>>
>>  struct usbhs_omap_platform_data {
>> --
>> 1.7.1
>>
>
> --
> balbi
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/arch/arm/mach-omap2/usb-host.c b/arch/arm/mach-omap2/usb-host.c
index dde8a11..5e1cb53 100644
--- a/arch/arm/mach-omap2/usb-host.c
+++ b/arch/arm/mach-omap2/usb-host.c
@@ -500,7 +500,6 @@  void __init usbhs_init(const struct usbhs_omap_board_data *pdata)
 		ehci_data.regulator[i] = pdata->regulator[i];
 	}
 	ehci_data.phy_reset = pdata->phy_reset;
-	ohci_data.es2_compatibility = pdata->es2_compatibility;
 	usbhs_data.ehci_data = &ehci_data;
 	usbhs_data.ohci_data = &ohci_data;
 
diff --git a/arch/arm/plat-omap/include/plat/usb.h b/arch/arm/plat-omap/include/plat/usb.h
index 762eeb0..f8c1eb8 100644
--- a/arch/arm/plat-omap/include/plat/usb.h
+++ b/arch/arm/plat-omap/include/plat/usb.h
@@ -32,9 +32,6 @@  struct usbhs_omap_board_data {
 	/* have to be valid if phy_reset is true and portx is in phy mode */
 	int	reset_gpio_port[OMAP3_HS_USB_PORTS];
 
-	/* Set this to true for ES2.x silicon */
-	unsigned			es2_compatibility:1;
-
 	unsigned			phy_reset:1;
 
 	/*
@@ -53,7 +50,6 @@  struct ehci_hcd_omap_platform_data {
 
 struct ohci_hcd_omap_platform_data {
 	enum usbhs_omap_port_mode	port_mode[OMAP3_HS_USB_PORTS];
-	unsigned			es2_compatibility:1;
 };
 
 struct usbhs_omap_platform_data {