diff options
author | Wolfram Sang <wolfram@the-dreams.de> | 2012-04-19 16:53:49 +0200 |
---|---|---|
committer | Wolfram Sang <w.sang@pengutronix.de> | 2012-05-12 14:28:13 +0200 |
commit | 75fb1f25d48b64ff11081623c2104ad345882c9f (patch) | |
tree | b9ba0eba843aa1efc939656525b327eb89ea90a8 /drivers/i2c | |
parent | 199bca2a72a3a5cd71401b4f12171393742be84a (diff) | |
download | linux-3.10-75fb1f25d48b64ff11081623c2104ad345882c9f.tar.gz linux-3.10-75fb1f25d48b64ff11081623c2104ad345882c9f.tar.bz2 linux-3.10-75fb1f25d48b64ff11081623c2104ad345882c9f.zip |
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')
-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 9da12cecb3b..6e9e0759f7d 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); |