[PATCH 01/15] spi: altera: remove unnecessary platform_set_drvdata()

2013-05-03 Thread Jingoo Han
The driver core clears the driver data to NULL after device_release
or on probe failure, since commit 0998d0631001288a5974afc0b2a5f568bcdecb4d
(device-core: Ensure drvdata = NULL when no driver is bound).
Thus, it is not needed to manually clear the device driver data to NULL.

Signed-off-by: Jingoo Han jg1@samsung.com
---
 drivers/spi/spi-altera.c |2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/drivers/spi/spi-altera.c b/drivers/spi/spi-altera.c
index a537f8d..81b9adb 100644
--- a/drivers/spi/spi-altera.c
+++ b/drivers/spi/spi-altera.c
@@ -285,7 +285,6 @@ static int altera_spi_probe(struct platform_device *pdev)
 exit_busy:
err = -EBUSY;
 exit:
-   platform_set_drvdata(pdev, NULL);
spi_master_put(master);
return err;
 }
@@ -296,7 +295,6 @@ static int altera_spi_remove(struct platform_device *dev)
struct spi_master *master = hw-bitbang.master;
 
spi_bitbang_stop(hw-bitbang);
-   platform_set_drvdata(dev, NULL);
spi_master_put(master);
return 0;
 }
-- 
1.7.2.5



--
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with 2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
___
spi-devel-general mailing list
spi-devel-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spi-devel-general


[PATCH 02/15] spi: ath79: remove unnecessary platform_set_drvdata()

2013-05-03 Thread Jingoo Han
The driver core clears the driver data to NULL after device_release
or on probe failure, since commit 0998d0631001288a5974afc0b2a5f568bcdecb4d
(device-core: Ensure drvdata = NULL when no driver is bound).
Thus, it is not needed to manually clear the device driver data to NULL.

Signed-off-by: Jingoo Han jg1@samsung.com
---
 drivers/spi/spi-ath79.c |2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/drivers/spi/spi-ath79.c b/drivers/spi/spi-ath79.c
index e504b76..6f6d455 100644
--- a/drivers/spi/spi-ath79.c
+++ b/drivers/spi/spi-ath79.c
@@ -287,7 +287,6 @@ err_clk_put:
 err_unmap:
iounmap(sp-base);
 err_put_master:
-   platform_set_drvdata(pdev, NULL);
spi_master_put(sp-bitbang.master);
 
return ret;
@@ -302,7 +301,6 @@ static int ath79_spi_remove(struct platform_device *pdev)
clk_disable(sp-clk);
clk_put(sp-clk);
iounmap(sp-base);
-   platform_set_drvdata(pdev, NULL);
spi_master_put(sp-bitbang.master);
 
return 0;
-- 
1.7.2.5



--
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with 2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
___
spi-devel-general mailing list
spi-devel-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spi-devel-general


[PATCH 03/15] spi: au1550: remove unnecessary platform_set_drvdata()

2013-05-03 Thread Jingoo Han
The driver core clears the driver data to NULL after device_release
or on probe failure, since commit 0998d0631001288a5974afc0b2a5f568bcdecb4d
(device-core: Ensure drvdata = NULL when no driver is bound).
Thus, it is not needed to manually clear the device driver data to NULL.

Signed-off-by: Jingoo Han jg1@samsung.com
---
 drivers/spi/spi-au1550.c |2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/drivers/spi/spi-au1550.c b/drivers/spi/spi-au1550.c
index 44dd34b..39560f4 100644
--- a/drivers/spi/spi-au1550.c
+++ b/drivers/spi/spi-au1550.c
@@ -987,8 +987,6 @@ static int au1550_spi_remove(struct platform_device *pdev)
au1xxx_dbdma_chan_free(hw-dma_tx_ch);
}
 
-   platform_set_drvdata(pdev, NULL);
-
spi_master_put(hw-master);
return 0;
 }
-- 
1.7.2.5



--
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with 2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
___
spi-devel-general mailing list
spi-devel-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spi-devel-general


[PATCH 04/15] spi: bcm63xx: remove unnecessary platform_set_drvdata()

2013-05-03 Thread Jingoo Han
The driver core clears the driver data to NULL after device_release
or on probe failure, since commit 0998d0631001288a5974afc0b2a5f568bcdecb4d
(device-core: Ensure drvdata = NULL when no driver is bound).
Thus, it is not needed to manually clear the device driver data to NULL.

Signed-off-by: Jingoo Han jg1@samsung.com
---
 drivers/spi/spi-bcm63xx.c |3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/drivers/spi/spi-bcm63xx.c b/drivers/spi/spi-bcm63xx.c
index a4ec5f4..099d083 100644
--- a/drivers/spi/spi-bcm63xx.c
+++ b/drivers/spi/spi-bcm63xx.c
@@ -469,7 +469,6 @@ static int bcm63xx_spi_probe(struct platform_device *pdev)
 out_clk_disable:
clk_disable_unprepare(clk);
 out_err:
-   platform_set_drvdata(pdev, NULL);
spi_master_put(master);
 out_clk:
clk_put(clk);
@@ -491,8 +490,6 @@ static int bcm63xx_spi_remove(struct platform_device *pdev)
clk_disable_unprepare(bs-clk);
clk_put(bs-clk);
 
-   platform_set_drvdata(pdev, 0);
-
spi_master_put(master);
 
return 0;
-- 
1.7.2.5



--
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with 2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
___
spi-devel-general mailing list
spi-devel-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spi-devel-general


[PATCH 05/15] spi: bfin5xx: remove unnecessary platform_set_drvdata()

2013-05-03 Thread Jingoo Han
The driver core clears the driver data to NULL after device_release
or on probe failure, since commit 0998d0631001288a5974afc0b2a5f568bcdecb4d
(device-core: Ensure drvdata = NULL when no driver is bound).
Thus, it is not needed to manually clear the device driver data to NULL.

Signed-off-by: Jingoo Han jg1@samsung.com
---
 drivers/spi/spi-bfin5xx.c |3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/drivers/spi/spi-bfin5xx.c b/drivers/spi/spi-bfin5xx.c
index 317f564..68ca444 100644
--- a/drivers/spi/spi-bfin5xx.c
+++ b/drivers/spi/spi-bfin5xx.c
@@ -1418,9 +1418,6 @@ static int bfin_spi_remove(struct platform_device *pdev)
 
peripheral_free_list(drv_data-pin_req);
 
-   /* Prevent double remove */
-   platform_set_drvdata(pdev, NULL);
-
return 0;
 }
 
-- 
1.7.2.5



--
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with 2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
___
spi-devel-general mailing list
spi-devel-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spi-devel-general


[PATCH 06/15] spi: bfin-sport: remove unnecessary platform_set_drvdata()

2013-05-03 Thread Jingoo Han
The driver core clears the driver data to NULL after device_release
or on probe failure, since commit 0998d0631001288a5974afc0b2a5f568bcdecb4d
(device-core: Ensure drvdata = NULL when no driver is bound).
Thus, it is not needed to manually clear the device driver data to NULL.

Signed-off-by: Jingoo Han jg1@samsung.com
---
 drivers/spi/spi-bfin-sport.c |3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/drivers/spi/spi-bfin-sport.c b/drivers/spi/spi-bfin-sport.c
index 39b0d17..6d04c80 100644
--- a/drivers/spi/spi-bfin-sport.c
+++ b/drivers/spi/spi-bfin-sport.c
@@ -882,9 +882,6 @@ static int bfin_sport_spi_remove(struct platform_device 
*pdev)
 
peripheral_free_list(drv_data-pin_req);
 
-   /* Prevent double remove */
-   platform_set_drvdata(pdev, NULL);
-
return 0;
 }
 
-- 
1.7.2.5



--
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with 2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
___
spi-devel-general mailing list
spi-devel-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spi-devel-general


[PATCH 07/15] spi: clps711x: remove unnecessary platform_set_drvdata()

2013-05-03 Thread Jingoo Han
The driver core clears the driver data to NULL after device_release
or on probe failure, since commit 0998d0631001288a5974afc0b2a5f568bcdecb4d
(device-core: Ensure drvdata = NULL when no driver is bound).
Thus, it is not needed to manually clear the device driver data to NULL.

Signed-off-by: Jingoo Han jg1@samsung.com
---
 drivers/spi/spi-clps711x.c |2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/drivers/spi/spi-clps711x.c b/drivers/spi/spi-clps711x.c
index a11cbf0..6859a02 100644
--- a/drivers/spi/spi-clps711x.c
+++ b/drivers/spi/spi-clps711x.c
@@ -254,7 +254,6 @@ err_out:
if (gpio_is_valid(hw-chipselect[i]))
gpio_free(hw-chipselect[i]);
 
-   platform_set_drvdata(pdev, NULL);
spi_master_put(master);
kfree(master);
 
@@ -274,7 +273,6 @@ static int spi_clps711x_remove(struct platform_device *pdev)
gpio_free(hw-chipselect[i]);
 
devm_clk_put(pdev-dev, hw-spi_clk);
-   platform_set_drvdata(pdev, NULL);
spi_unregister_master(master);
kfree(master);
 
-- 
1.7.2.5



--
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with 2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
___
spi-devel-general mailing list
spi-devel-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spi-devel-general


[PATCH 08/15] spi: coldfire-qspi: remove unnecessary platform_set_drvdata()

2013-05-03 Thread Jingoo Han
The driver core clears the driver data to NULL after device_release
or on probe failure, since commit 0998d0631001288a5974afc0b2a5f568bcdecb4d
(device-core: Ensure drvdata = NULL when no driver is bound).
Thus, it is not needed to manually clear the device driver data to NULL.

Signed-off-by: Jingoo Han jg1@samsung.com
---
 drivers/spi/spi-coldfire-qspi.c |1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/drivers/spi/spi-coldfire-qspi.c b/drivers/spi/spi-coldfire-qspi.c
index 7b5cc9e..3f17660 100644
--- a/drivers/spi/spi-coldfire-qspi.c
+++ b/drivers/spi/spi-coldfire-qspi.c
@@ -524,7 +524,6 @@ static int mcfqspi_remove(struct platform_device *pdev)
/* disable the hardware (set the baud rate to 0) */
mcfqspi_wr_qmr(mcfqspi, MCFQSPI_QMR_MSTR);
 
-   platform_set_drvdata(pdev, NULL);
mcfqspi_cs_teardown(mcfqspi);
clk_disable(mcfqspi-clk);
clk_put(mcfqspi-clk);
-- 
1.7.2.5



--
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with 2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
___
spi-devel-general mailing list
spi-devel-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spi-devel-general


[PATCH 09/15] spi: dw-mmio: remove unnecessary platform_set_drvdata()

2013-05-03 Thread Jingoo Han
The driver core clears the driver data to NULL after device_release
or on probe failure, since commit 0998d0631001288a5974afc0b2a5f568bcdecb4d
(device-core: Ensure drvdata = NULL when no driver is bound).
Thus, it is not needed to manually clear the device driver data to NULL.

Signed-off-by: Jingoo Han jg1@samsung.com
---
 drivers/spi/spi-dw-mmio.c |2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/drivers/spi/spi-dw-mmio.c b/drivers/spi/spi-dw-mmio.c
index 4a6d5c9..4aa8be8 100644
--- a/drivers/spi/spi-dw-mmio.c
+++ b/drivers/spi/spi-dw-mmio.c
@@ -111,8 +111,6 @@ static int dw_spi_mmio_remove(struct platform_device *pdev)
struct dw_spi_mmio *dwsmmio = platform_get_drvdata(pdev);
struct resource *mem;
 
-   platform_set_drvdata(pdev, NULL);
-
clk_disable(dwsmmio-clk);
clk_put(dwsmmio-clk);
dwsmmio-clk = NULL;
-- 
1.7.2.5



--
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with 2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
___
spi-devel-general mailing list
spi-devel-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spi-devel-general


[PATCH 10/15] spi: ep93xx: remove unnecessary platform_set_drvdata()

2013-05-03 Thread Jingoo Han
The driver core clears the driver data to NULL after device_release
or on probe failure, since commit 0998d0631001288a5974afc0b2a5f568bcdecb4d
(device-core: Ensure drvdata = NULL when no driver is bound).
Thus, it is not needed to manually clear the device driver data to NULL.

Signed-off-by: Jingoo Han jg1@samsung.com
---
 drivers/spi/spi-ep93xx.c |2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/drivers/spi/spi-ep93xx.c b/drivers/spi/spi-ep93xx.c
index d7bac60..8d4f2a6 100644
--- a/drivers/spi/spi-ep93xx.c
+++ b/drivers/spi/spi-ep93xx.c
@@ -1132,7 +1132,6 @@ fail_put_clock:
clk_put(espi-clk);
 fail_release_master:
spi_master_put(master);
-   platform_set_drvdata(pdev, NULL);
 
return error;
 }
@@ -1167,7 +1166,6 @@ static int ep93xx_spi_remove(struct platform_device *pdev)
 
ep93xx_spi_release_dma(espi);
clk_put(espi-clk);
-   platform_set_drvdata(pdev, NULL);
 
spi_unregister_master(master);
return 0;
-- 
1.7.2.5



--
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with 2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
___
spi-devel-general mailing list
spi-devel-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spi-devel-general


[PATCH 11/15] spi: spi-gpio: remove unnecessary platform_set_drvdata()

2013-05-03 Thread Jingoo Han
The driver core clears the driver data to NULL after device_release
or on probe failure, since commit 0998d0631001288a5974afc0b2a5f568bcdecb4d
(device-core: Ensure drvdata = NULL when no driver is bound).
Thus, it is not needed to manually clear the device driver data to NULL.

Signed-off-by: Jingoo Han jg1@samsung.com
---
 drivers/spi/spi-gpio.c |2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/drivers/spi/spi-gpio.c b/drivers/spi/spi-gpio.c
index 0021fc4..9672c7b 100644
--- a/drivers/spi/spi-gpio.c
+++ b/drivers/spi/spi-gpio.c
@@ -514,8 +514,6 @@ static int spi_gpio_remove(struct platform_device *pdev)
status = spi_bitbang_stop(spi_gpio-bitbang);
spi_master_put(spi_gpio-bitbang.master);
 
-   platform_set_drvdata(pdev, NULL);
-
if (SPI_MISO_GPIO != SPI_GPIO_NO_MISO)
gpio_free(SPI_MISO_GPIO);
if (SPI_MOSI_GPIO != SPI_GPIO_NO_MOSI)
-- 
1.7.2.5



--
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with 2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
___
spi-devel-general mailing list
spi-devel-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spi-devel-general


[PATCH 12/15] spi: imx: remove unnecessary platform_set_drvdata()

2013-05-03 Thread Jingoo Han
The driver core clears the driver data to NULL after device_release
or on probe failure, since commit 0998d0631001288a5974afc0b2a5f568bcdecb4d
(device-core: Ensure drvdata = NULL when no driver is bound).
Thus, it is not needed to manually clear the device driver data to NULL.

Signed-off-by: Jingoo Han jg1@samsung.com
---
 drivers/spi/spi-imx.c |3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/drivers/spi/spi-imx.c b/drivers/spi/spi-imx.c
index 0befeeb..f4d7cac 100644
--- a/drivers/spi/spi-imx.c
+++ b/drivers/spi/spi-imx.c
@@ -902,7 +902,6 @@ out_gpio_free:
}
spi_master_put(master);
kfree(master);
-   platform_set_drvdata(pdev, NULL);
return ret;
 }
 
@@ -929,8 +928,6 @@ static int spi_imx_remove(struct platform_device *pdev)
 
release_mem_region(res-start, resource_size(res));
 
-   platform_set_drvdata(pdev, NULL);
-
return 0;
 }
 
-- 
1.7.2.5



--
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with 2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
___
spi-devel-general mailing list
spi-devel-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spi-devel-general


[PATCH 13/15] spi: oc-tiny: remove unnecessary platform_set_drvdata()

2013-05-03 Thread Jingoo Han
The driver core clears the driver data to NULL after device_release
or on probe failure, since commit 0998d0631001288a5974afc0b2a5f568bcdecb4d
(device-core: Ensure drvdata = NULL when no driver is bound).
Thus, it is not needed to manually clear the device driver data to NULL.

Signed-off-by: Jingoo Han jg1@samsung.com
---
 drivers/spi/spi-oc-tiny.c |2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/drivers/spi/spi-oc-tiny.c b/drivers/spi/spi-oc-tiny.c
index e60a776..58deb79 100644
--- a/drivers/spi/spi-oc-tiny.c
+++ b/drivers/spi/spi-oc-tiny.c
@@ -368,7 +368,6 @@ exit_gpio:
 exit_busy:
err = -EBUSY;
 exit:
-   platform_set_drvdata(pdev, NULL);
spi_master_put(master);
return err;
 }
@@ -382,7 +381,6 @@ static int tiny_spi_remove(struct platform_device *pdev)
spi_bitbang_stop(hw-bitbang);
for (i = 0; i  hw-gpio_cs_count; i++)
gpio_free(hw-gpio_cs[i]);
-   platform_set_drvdata(pdev, NULL);
spi_master_put(master);
return 0;
 }
-- 
1.7.2.5



--
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with 2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
___
spi-devel-general mailing list
spi-devel-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spi-devel-general


[PATCH 14/15] spi: pxa2xx: remove unnecessary platform_set_drvdata()

2013-05-03 Thread Jingoo Han
The driver core clears the driver data to NULL after device_release
or on probe failure, since commit 0998d0631001288a5974afc0b2a5f568bcdecb4d
(device-core: Ensure drvdata = NULL when no driver is bound).
Thus, it is not needed to manually clear the device driver data to NULL.

Signed-off-by: Jingoo Han jg1@samsung.com
---
 drivers/spi/spi-pxa2xx.c |3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/drivers/spi/spi-pxa2xx.c b/drivers/spi/spi-pxa2xx.c
index f5d84d6..5a7fa2c 100644
--- a/drivers/spi/spi-pxa2xx.c
+++ b/drivers/spi/spi-pxa2xx.c
@@ -1299,9 +1299,6 @@ static int pxa2xx_spi_remove(struct platform_device *pdev)
/* Disconnect from the SPI framework */
spi_unregister_master(drv_data-master);
 
-   /* Prevent double remove */
-   platform_set_drvdata(pdev, NULL);
-
return 0;
 }
 
-- 
1.7.2.5



--
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with 2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
___
spi-devel-general mailing list
spi-devel-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spi-devel-general


[PATCH 15/15] spi: s3c64xx: remove unnecessary platform_set_drvdata()

2013-05-03 Thread Jingoo Han
The driver core clears the driver data to NULL after device_release
or on probe failure, since commit 0998d0631001288a5974afc0b2a5f568bcdecb4d
(device-core: Ensure drvdata = NULL when no driver is bound).
Thus, it is not needed to manually clear the device driver data to NULL.

Signed-off-by: Jingoo Han jg1@samsung.com
---
 drivers/spi/spi-s3c64xx.c |2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c
index 5000586..5f3759d 100644
--- a/drivers/spi/spi-s3c64xx.c
+++ b/drivers/spi/spi-s3c64xx.c
@@ -1399,7 +1399,6 @@ err3:
 err2:
clk_disable_unprepare(sdd-clk);
 err0:
-   platform_set_drvdata(pdev, NULL);
spi_master_put(master);
 
return ret;
@@ -1420,7 +1419,6 @@ static int s3c64xx_spi_remove(struct platform_device 
*pdev)
 
clk_disable_unprepare(sdd-clk);
 
-   platform_set_drvdata(pdev, NULL);
spi_master_put(master);
 
return 0;
-- 
1.7.2.5



--
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with 2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
___
spi-devel-general mailing list
spi-devel-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spi-devel-general


Re: [PATCH 01/15] spi: altera: remove unnecessary platform_set_drvdata()

2013-05-03 Thread Jingoo Han
On Friday, May 03, 2013 4:08 PM, Grant Likelywrote:
 On Fri, May 3, 2013 at 7:48 AM, Jingoo Han jg1@samsung.com wrote:
  The driver core clears the driver data to NULL after device_release
  or on probe failure, since commit 0998d0631001288a5974afc0b2a5f568bcdecb4d
  (device-core: Ensure drvdata = NULL when no driver is bound).
  Thus, it is not needed to manually clear the device driver data to NULL.
 
  Signed-off-by: Jingoo Han jg1@samsung.com
 
 Hi Jingoo,
 
 Thanks for doing this. However, there is no need to have a separate
 patch for each and every spi driver. Can you please squash them all
 into a single patch and repost?
 
 Acked-by: Grant Likely grant.lik...@linaro.org

Hi Grant,

OK, I see.
I prefer the separate patches, but I will squash them
into a single patch and repost it. :)
Thank you.


Best regards,
Jingoo Han

 
  ---
   drivers/spi/spi-altera.c |2 --
   1 files changed, 0 insertions(+), 2 deletions(-)
 
  diff --git a/drivers/spi/spi-altera.c b/drivers/spi/spi-altera.c
  index a537f8d..81b9adb 100644
  --- a/drivers/spi/spi-altera.c
  +++ b/drivers/spi/spi-altera.c
  @@ -285,7 +285,6 @@ static int altera_spi_probe(struct platform_device 
  *pdev)
   exit_busy:
  err = -EBUSY;
   exit:
  -   platform_set_drvdata(pdev, NULL);
  spi_master_put(master);
  return err;
   }
  @@ -296,7 +295,6 @@ static int altera_spi_remove(struct platform_device 
  *dev)
  struct spi_master *master = hw-bitbang.master;
 
  spi_bitbang_stop(hw-bitbang);
  -   platform_set_drvdata(dev, NULL);
  spi_master_put(master);
  return 0;
   }
  --
  1.7.2.5
 
 
 
 
 
 --
 Grant Likely, B.Sc., P.Eng.
 Secret Lab Technologies Ltd.


--
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with 2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
___
spi-devel-general mailing list
spi-devel-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spi-devel-general


[PATCH V2] spi: remove unnecessary platform_set_drvdata()

2013-05-03 Thread Jingoo Han
The driver core clears the driver data to NULL after device_release
or on probe failure, since commit 0998d0631001288a5974afc0b2a5f568bcdecb4d
(device-core: Ensure drvdata = NULL when no driver is bound).
Thus, it is not needed to manually clear the device driver data to NULL.

Signed-off-by: Jingoo Han jg1@samsung.com
---
Changes since v1:
- squashed all patches into a single patch

 drivers/spi/spi-altera.c|2 --
 drivers/spi/spi-ath79.c |2 --
 drivers/spi/spi-au1550.c|2 --
 drivers/spi/spi-bcm63xx.c   |3 ---
 drivers/spi/spi-bfin-sport.c|3 ---
 drivers/spi/spi-bfin5xx.c   |3 ---
 drivers/spi/spi-clps711x.c  |2 --
 drivers/spi/spi-coldfire-qspi.c |1 -
 drivers/spi/spi-dw-mmio.c   |2 --
 drivers/spi/spi-ep93xx.c|2 --
 drivers/spi/spi-gpio.c  |2 --
 drivers/spi/spi-imx.c   |3 ---
 drivers/spi/spi-oc-tiny.c   |2 --
 drivers/spi/spi-pxa2xx.c|3 ---
 drivers/spi/spi-s3c64xx.c   |2 --
 15 files changed, 0 insertions(+), 34 deletions(-)

diff --git a/drivers/spi/spi-altera.c b/drivers/spi/spi-altera.c
index a537f8d..81b9adb 100644
--- a/drivers/spi/spi-altera.c
+++ b/drivers/spi/spi-altera.c
@@ -285,7 +285,6 @@ static int altera_spi_probe(struct platform_device *pdev)
 exit_busy:
err = -EBUSY;
 exit:
-   platform_set_drvdata(pdev, NULL);
spi_master_put(master);
return err;
 }
@@ -296,7 +295,6 @@ static int altera_spi_remove(struct platform_device *dev)
struct spi_master *master = hw-bitbang.master;
 
spi_bitbang_stop(hw-bitbang);
-   platform_set_drvdata(dev, NULL);
spi_master_put(master);
return 0;
 }
diff --git a/drivers/spi/spi-ath79.c b/drivers/spi/spi-ath79.c
index e504b76..6f6d455 100644
--- a/drivers/spi/spi-ath79.c
+++ b/drivers/spi/spi-ath79.c
@@ -287,7 +287,6 @@ err_clk_put:
 err_unmap:
iounmap(sp-base);
 err_put_master:
-   platform_set_drvdata(pdev, NULL);
spi_master_put(sp-bitbang.master);
 
return ret;
@@ -302,7 +301,6 @@ static int ath79_spi_remove(struct platform_device *pdev)
clk_disable(sp-clk);
clk_put(sp-clk);
iounmap(sp-base);
-   platform_set_drvdata(pdev, NULL);
spi_master_put(sp-bitbang.master);
 
return 0;
diff --git a/drivers/spi/spi-au1550.c b/drivers/spi/spi-au1550.c
index 44dd34b..39560f4 100644
--- a/drivers/spi/spi-au1550.c
+++ b/drivers/spi/spi-au1550.c
@@ -987,8 +987,6 @@ static int au1550_spi_remove(struct platform_device *pdev)
au1xxx_dbdma_chan_free(hw-dma_tx_ch);
}
 
-   platform_set_drvdata(pdev, NULL);
-
spi_master_put(hw-master);
return 0;
 }
diff --git a/drivers/spi/spi-bcm63xx.c b/drivers/spi/spi-bcm63xx.c
index a4ec5f4..099d083 100644
--- a/drivers/spi/spi-bcm63xx.c
+++ b/drivers/spi/spi-bcm63xx.c
@@ -469,7 +469,6 @@ static int bcm63xx_spi_probe(struct platform_device *pdev)
 out_clk_disable:
clk_disable_unprepare(clk);
 out_err:
-   platform_set_drvdata(pdev, NULL);
spi_master_put(master);
 out_clk:
clk_put(clk);
@@ -491,8 +490,6 @@ static int bcm63xx_spi_remove(struct platform_device *pdev)
clk_disable_unprepare(bs-clk);
clk_put(bs-clk);
 
-   platform_set_drvdata(pdev, 0);
-
spi_master_put(master);
 
return 0;
diff --git a/drivers/spi/spi-bfin-sport.c b/drivers/spi/spi-bfin-sport.c
index 39b0d17..6d04c80 100644
--- a/drivers/spi/spi-bfin-sport.c
+++ b/drivers/spi/spi-bfin-sport.c
@@ -882,9 +882,6 @@ static int bfin_sport_spi_remove(struct platform_device 
*pdev)
 
peripheral_free_list(drv_data-pin_req);
 
-   /* Prevent double remove */
-   platform_set_drvdata(pdev, NULL);
-
return 0;
 }
 
diff --git a/drivers/spi/spi-bfin5xx.c b/drivers/spi/spi-bfin5xx.c
index 317f564..68ca444 100644
--- a/drivers/spi/spi-bfin5xx.c
+++ b/drivers/spi/spi-bfin5xx.c
@@ -1418,9 +1418,6 @@ static int bfin_spi_remove(struct platform_device *pdev)
 
peripheral_free_list(drv_data-pin_req);
 
-   /* Prevent double remove */
-   platform_set_drvdata(pdev, NULL);
-
return 0;
 }
 
diff --git a/drivers/spi/spi-clps711x.c b/drivers/spi/spi-clps711x.c
index a11cbf0..6859a02 100644
--- a/drivers/spi/spi-clps711x.c
+++ b/drivers/spi/spi-clps711x.c
@@ -254,7 +254,6 @@ err_out:
if (gpio_is_valid(hw-chipselect[i]))
gpio_free(hw-chipselect[i]);
 
-   platform_set_drvdata(pdev, NULL);
spi_master_put(master);
kfree(master);
 
@@ -274,7 +273,6 @@ static int spi_clps711x_remove(struct platform_device *pdev)
gpio_free(hw-chipselect[i]);
 
devm_clk_put(pdev-dev, hw-spi_clk);
-   platform_set_drvdata(pdev, NULL);
spi_unregister_master(master);
kfree(master);
 
diff --git a/drivers/spi/spi-coldfire-qspi.c b/drivers/spi/spi-coldfire-qspi.c
index 7b5cc9e..3f17660 100644

Re: [PATCH 01/15] spi: altera: remove unnecessary platform_set_drvdata()

2013-05-03 Thread Grant Likely
On Fri, May 3, 2013 at 7:48 AM, Jingoo Han jg1@samsung.com wrote:
 The driver core clears the driver data to NULL after device_release
 or on probe failure, since commit 0998d0631001288a5974afc0b2a5f568bcdecb4d
 (device-core: Ensure drvdata = NULL when no driver is bound).
 Thus, it is not needed to manually clear the device driver data to NULL.

 Signed-off-by: Jingoo Han jg1@samsung.com

Hi Jingoo,

Thanks for doing this. However, there is no need to have a separate
patch for each and every spi driver. Can you please squash them all
into a single patch and repost?

Acked-by: Grant Likely grant.lik...@linaro.org

 ---
  drivers/spi/spi-altera.c |2 --
  1 files changed, 0 insertions(+), 2 deletions(-)

 diff --git a/drivers/spi/spi-altera.c b/drivers/spi/spi-altera.c
 index a537f8d..81b9adb 100644
 --- a/drivers/spi/spi-altera.c
 +++ b/drivers/spi/spi-altera.c
 @@ -285,7 +285,6 @@ static int altera_spi_probe(struct platform_device *pdev)
  exit_busy:
 err = -EBUSY;
  exit:
 -   platform_set_drvdata(pdev, NULL);
 spi_master_put(master);
 return err;
  }
 @@ -296,7 +295,6 @@ static int altera_spi_remove(struct platform_device *dev)
 struct spi_master *master = hw-bitbang.master;

 spi_bitbang_stop(hw-bitbang);
 -   platform_set_drvdata(dev, NULL);
 spi_master_put(master);
 return 0;
  }
 --
 1.7.2.5





--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.

--
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with 2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
___
spi-devel-general mailing list
spi-devel-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spi-devel-general


[git pull] SPI bug fixes

2013-05-03 Thread Grant Likely
Hi Mark,

Here are some commits that I picked up a while ago but for some reason
never asked Linus to pull them. :( Can you pull this branch into your
tree for your next pull request to Linus?

Thanks,
g.


The following changes since commit fe6969094214350e586d56fbfa3ef97cdd74b270:

  Merge tag 'dm-3.9-fixes-2' of
git://git.kernel.org/pub/scm/linux/kernel/git/agk/linux-dm (2013-04-05
19:30:14 -0700)

are available in the git repository at:

  git://git.secretlab.ca/git/linux spi/merge

for you to fetch changes up to 0d2d0cc5216db678070efc911ef47f4cb53b4aad:

  spi/davinci: fix module build error (2013-04-07 10:12:21 +0100)


Andreas Larsson (2):
  spi: Initialize cs_gpio and cs_gpios with -ENOENT
  spi: Return error from of_spi_register_master on bad cs-gpios property

Joachim Eastwood (1):
  spi/atmel: fix speed_hz check in atmel_spi_transfer()

Manjunathappa, Prakash (1):
  spi/davinci: fix module build error

 drivers/spi/spi-atmel.c   | 4 ++--
 drivers/spi/spi-davinci.c | 2 +-
 drivers/spi/spi.c | 9 ++---
 include/linux/spi/spi.h   | 4 ++--
 4 files changed, 11 insertions(+), 8 deletions(-)

--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.

--
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with 2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
___
spi-devel-general mailing list
spi-devel-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spi-devel-general


[SPAM] business question

2013-05-03 Thread Patrick Thomas
Hello, 

If you are reading this message, you are proving that email marketing works.
Use email marketing to drive sales and leads for less than any other marketing. 

Our Offer:  

 Use our targeted database of 200MM consumers | 45MM Businesses
 Use our servers to send your messages 
 No contracts | Month to Month 
 Flat Rate for Unlimited Mailing   

E-mail Marketing has been proven to be tremendously cost-effective and 
efficient.   

Call us at 1 (800) 676-2011 for a DEMO and receive a special discount.  

We look forward to working with your company!   

Sincerely,  

Patrick Thomas  
Senior Prospect Specialist  
E-mail Marketing Services   
1 (800) 676-2011



--
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with 2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
___
spi-devel-general mailing list
spi-devel-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spi-devel-general


[SPAM] Profitez près de votre ville et économisez jusqu'à 70 pourcent.

2013-05-03 Thread AffairesNobles

Le partenaire ABC vous recommande:

(http://obfm41.com/xtdd4pzl11vw3vhu2y/index0.html)
(http://obfm41.com/ccdoopjv1mnnpe3utl/index1.html)
Soyez heureux!

(http://obfm41.com/f2dyrpmm1vlwoniz0s/index2.html)
Tous les jours des nouveaux Deals vous assurent une expérience de shopping 
inoubliable et avec des réductions allant jusquacute;à 70%!

(http://obfm41.com/1xdgdpl11l2nfwazbd/index3.html)
(http://obfm41.com/h2qcroyrggywarivzl/index4.html)
(http://obfm41.com/3xqtdo5cghbn5mavwy/index5.html)
France SAS  |  76-78 rue Saint Lazare  |  75009 Paris  |  France
--
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with 2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
___
spi-devel-general mailing list
spi-devel-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spi-devel-general