From: Wolfram Sang <[email protected]>

sparse rightfully says:
drivers/i2c/busses/i2c-eg20t.c:990:59: warning: Using plain integer as NULL 
pointer

Signed-off-by: Wolfram Sang <[email protected]>
Cc: Tomoya MORINAGA <[email protected]>
---
 drivers/i2c/busses/i2c-eg20t.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/i2c/busses/i2c-eg20t.c b/drivers/i2c/busses/i2c-eg20t.c
index 9da12ce..6e9e075 100644
--- a/drivers/i2c/busses/i2c-eg20t.c
+++ b/drivers/i2c/busses/i2c-eg20t.c
@@ -872,7 +872,7 @@ static void __devexit pch_i2c_remove(struct pci_dev *pdev)
                pci_iounmap(pdev, adap_info->pch_data[0].pch_base_address);
 
        for (i = 0; i < adap_info->ch_num; i++)
-               adap_info->pch_data[i].pch_base_address = 0;
+               adap_info->pch_data[i].pch_base_address = NULL;
 
        pci_set_drvdata(pdev, NULL);
 
-- 
1.7.10

--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to