]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: designware: Use NULL instead of false
authorFabio Estevam <fabio.estevam@freescale.com>
Mon, 22 Sep 2014 20:52:07 +0000 (14:52 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 22 Sep 2014 20:52:07 +0000 (14:52 -0600)
commit0e285dc2e1e901a507773e5e2067bc4dfa076e5d
tree92ef3e79b4512fdfbd7cd115b30e4e24ba546a6f
parentf13df6cce1b9b9c54467ebd68a4a42d9af5deb0d
PCI: designware: Use NULL instead of false

of_get_address() expects pointers in the third and fourth parameters.

Pass NULL in order to fix the following sparse warnings:

  drivers/pci/host/pcie-designware.c:433:51: warning: Using plain integer as NULL pointer
  drivers/pci/host/pcie-designware.c:433:58: warning: Using plain integer as NULL pointer

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Lucas Stach <l.stach@pengutronix.de>
Acked-by: Jingoo Han <jg1.han@samsung.com>
drivers/pci/host/pcie-designware.c