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>
This commit is contained in:
Wolfram Sang 2012-04-19 16:53:49 +02:00 committed by Wolfram Sang
parent 199bca2a72
commit 75fb1f25d4

View file

@ -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); pci_iounmap(pdev, adap_info->pch_data[0].pch_base_address);
for (i = 0; i < adap_info->ch_num; i++) 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); pci_set_drvdata(pdev, NULL);