From: Wolfram Sang Date: Sat, 28 Jun 2008 18:31:52 +0000 (+0200) Subject: powerpc/mpc5200: Fix wrong 'no interrupt' handling in of_i2c X-Git-Tag: v2.6.27-rc1~222^2~26^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11d579ee0a19052a5a90ebfe0c39e7ed8ce8a9dc;p=pandora-kernel.git powerpc/mpc5200: Fix wrong 'no interrupt' handling in of_i2c If an I2C device node does not specify an interrupt, the .irq member of the board_info struct was set to -1. This caused crashes on following irq_dispose_mappings. Leave it NO_IRQ as returned from irq_of_parse_and_map. (Suggesting -1 as 'i2c-no-irq' used to be a bug in linux/i2c.h.) Signed-off-by: Wolfram Sang Acked-by: Sean MacLennan Signed-off-by: Grant Likely --- Reading git-diff-tree failed