diff options
author | Wolfram Sang <wolfram@the-dreams.de> | 2012-04-19 10:53:49 -0400 |
---|---|---|
committer | Wolfram Sang <w.sang@pengutronix.de> | 2012-05-12 08:28:13 -0400 |
commit | 75fb1f25d48b64ff11081623c2104ad345882c9f (patch) | |
tree | b9ba0eba843aa1efc939656525b327eb89ea90a8 /drivers/i2c/busses/i2c-eg20t.c | |
parent | 199bca2a72a3a5cd71401b4f12171393742be84a (diff) |
i2c: eg20t: use NULL instead of 0
sparse rightfully says:
drivers/i2c/busses/i2c-eg20t.c:990:59: warning: Using plain integer as NULL pointer
Signed-off-by: Wolfram Sang <wolfram@the-dreams.de>
Cc: Tomoya MORINAGA <tomoya.rohm@gmail.com>
Diffstat (limited to 'drivers/i2c/busses/i2c-eg20t.c')
-rw-r--r-- | drivers/i2c/busses/i2c-eg20t.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-eg20t.c b/drivers/i2c/busses/i2c-eg20t.c index 9da12cecb3bb..6e9e0759f7df 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) | |||
872 | pci_iounmap(pdev, adap_info->pch_data[0].pch_base_address); | 872 | pci_iounmap(pdev, adap_info->pch_data[0].pch_base_address); |
873 | 873 | ||
874 | for (i = 0; i < adap_info->ch_num; i++) | 874 | for (i = 0; i < adap_info->ch_num; i++) |
875 | adap_info->pch_data[i].pch_base_address = 0; | 875 | adap_info->pch_data[i].pch_base_address = NULL; |
876 | 876 | ||
877 | pci_set_drvdata(pdev, NULL); | 877 | pci_set_drvdata(pdev, NULL); |
878 | 878 | ||