From: Andres Salomon Date: Tue, 30 Nov 2010 21:54:39 +0000 (-0800) Subject: mfd: Fix cs5535 warning on x86-64 X-Git-Tag: 2.1b_release~5532^2~44 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=816b4580cef948c7d9ac9e3e63fb1b663012f057;p=platform%2Fkernel%2Fkernel-mfld-blackbay.git mfd: Fix cs5535 warning on x86-64 ARRAY_SIZE() returns size_t; use %zu instead of %d so that we don't get warnings on x86-64. Signed-off-by: Andres Salomon Acked-by: Randy Dunlap Signed-off-by: Samuel Ortiz --- diff --git a/drivers/mfd/cs5535-mfd.c b/drivers/mfd/cs5535-mfd.c index b141ca7..59ca6f1 100644 --- a/drivers/mfd/cs5535-mfd.c +++ b/drivers/mfd/cs5535-mfd.c @@ -103,7 +103,7 @@ static int __devinit cs5535_mfd_probe(struct pci_dev *pdev, goto err_disable; } - dev_info(&pdev->dev, "%d devices registered.\n", + dev_info(&pdev->dev, "%zu devices registered.\n", ARRAY_SIZE(cs5535_mfd_cells)); return 0;