Re: [PATCH 1/2 Resend] mfd: htc-i2cpld: Remove unused code

2014-07-28 Thread Lee Jones
On Fri, 18 Jul 2014, Sachin Kamat wrote:

> Removed code unused in this function.
> 
> Signed-off-by: Sachin Kamat 
> Cc: Cory Maccarrone 
> ---
> Compile tested.
> ---
>  drivers/mfd/htc-i2cpld.c |5 -
>  1 file changed, 5 deletions(-)

Applied, thanks.

> diff --git a/drivers/mfd/htc-i2cpld.c b/drivers/mfd/htc-i2cpld.c
> index d7b2a75aca3e..b44f0203983b 100644
> --- a/drivers/mfd/htc-i2cpld.c
> +++ b/drivers/mfd/htc-i2cpld.c
> @@ -332,18 +332,13 @@ static int htcpld_setup_chip_irq(
>   int chip_index)
>  {
>   struct htcpld_data *htcpld;
> - struct device *dev = >dev;
> - struct htcpld_core_platform_data *pdata;
>   struct htcpld_chip *chip;
> - struct htcpld_chip_platform_data *plat_chip_data;
>   unsigned int irq, irq_end;
>   int ret = 0;
>  
>   /* Get the platform and driver data */
> - pdata = dev_get_platdata(dev);
>   htcpld = platform_get_drvdata(pdev);
>   chip = >chip[chip_index];
> - plat_chip_data = >chip[chip_index];
>  
>   /* Setup irq handlers */
>   irq_end = chip->irq_start + chip->nirqs;

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 1/2 Resend] mfd: htc-i2cpld: Remove unused code

2014-07-28 Thread Lee Jones
On Fri, 18 Jul 2014, Sachin Kamat wrote:

 Removed code unused in this function.
 
 Signed-off-by: Sachin Kamat sachin.ka...@samsung.com
 Cc: Cory Maccarrone darkstar6...@gmail.com
 ---
 Compile tested.
 ---
  drivers/mfd/htc-i2cpld.c |5 -
  1 file changed, 5 deletions(-)

Applied, thanks.

 diff --git a/drivers/mfd/htc-i2cpld.c b/drivers/mfd/htc-i2cpld.c
 index d7b2a75aca3e..b44f0203983b 100644
 --- a/drivers/mfd/htc-i2cpld.c
 +++ b/drivers/mfd/htc-i2cpld.c
 @@ -332,18 +332,13 @@ static int htcpld_setup_chip_irq(
   int chip_index)
  {
   struct htcpld_data *htcpld;
 - struct device *dev = pdev-dev;
 - struct htcpld_core_platform_data *pdata;
   struct htcpld_chip *chip;
 - struct htcpld_chip_platform_data *plat_chip_data;
   unsigned int irq, irq_end;
   int ret = 0;
  
   /* Get the platform and driver data */
 - pdata = dev_get_platdata(dev);
   htcpld = platform_get_drvdata(pdev);
   chip = htcpld-chip[chip_index];
 - plat_chip_data = pdata-chip[chip_index];
  
   /* Setup irq handlers */
   irq_end = chip-irq_start + chip-nirqs;

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 1/2 Resend] mfd: htc-i2cpld: Remove unused code

2014-07-18 Thread Sachin Kamat
Removed code unused in this function.

Signed-off-by: Sachin Kamat 
Cc: Cory Maccarrone 
---
Compile tested.
---
 drivers/mfd/htc-i2cpld.c |5 -
 1 file changed, 5 deletions(-)

diff --git a/drivers/mfd/htc-i2cpld.c b/drivers/mfd/htc-i2cpld.c
index d7b2a75aca3e..b44f0203983b 100644
--- a/drivers/mfd/htc-i2cpld.c
+++ b/drivers/mfd/htc-i2cpld.c
@@ -332,18 +332,13 @@ static int htcpld_setup_chip_irq(
int chip_index)
 {
struct htcpld_data *htcpld;
-   struct device *dev = >dev;
-   struct htcpld_core_platform_data *pdata;
struct htcpld_chip *chip;
-   struct htcpld_chip_platform_data *plat_chip_data;
unsigned int irq, irq_end;
int ret = 0;
 
/* Get the platform and driver data */
-   pdata = dev_get_platdata(dev);
htcpld = platform_get_drvdata(pdev);
chip = >chip[chip_index];
-   plat_chip_data = >chip[chip_index];
 
/* Setup irq handlers */
irq_end = chip->irq_start + chip->nirqs;
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 1/2 Resend] mfd: htc-i2cpld: Remove unused code

2014-07-18 Thread Sachin Kamat
Removed code unused in this function.

Signed-off-by: Sachin Kamat sachin.ka...@samsung.com
Cc: Cory Maccarrone darkstar6...@gmail.com
---
Compile tested.
---
 drivers/mfd/htc-i2cpld.c |5 -
 1 file changed, 5 deletions(-)

diff --git a/drivers/mfd/htc-i2cpld.c b/drivers/mfd/htc-i2cpld.c
index d7b2a75aca3e..b44f0203983b 100644
--- a/drivers/mfd/htc-i2cpld.c
+++ b/drivers/mfd/htc-i2cpld.c
@@ -332,18 +332,13 @@ static int htcpld_setup_chip_irq(
int chip_index)
 {
struct htcpld_data *htcpld;
-   struct device *dev = pdev-dev;
-   struct htcpld_core_platform_data *pdata;
struct htcpld_chip *chip;
-   struct htcpld_chip_platform_data *plat_chip_data;
unsigned int irq, irq_end;
int ret = 0;
 
/* Get the platform and driver data */
-   pdata = dev_get_platdata(dev);
htcpld = platform_get_drvdata(pdev);
chip = htcpld-chip[chip_index];
-   plat_chip_data = pdata-chip[chip_index];
 
/* Setup irq handlers */
irq_end = chip-irq_start + chip-nirqs;
-- 
1.7.9.5

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/