From: Shinya Kuribayashi Date: Thu, 17 May 2012 11:10:16 +0000 (+0900) Subject: USB: gpio_vbus: handle IRQ flags properly X-Git-Tag: v3.5-rc1~149^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8240c1b810ac4adc13e04244781db6d2ff272be;p=pandora-kernel.git USB: gpio_vbus: handle IRQ flags properly Currently, 'res->flags' handlings are wrong in three respects: * the driver _modifies_ the contents of platform data * res->flags is set up, but not used anywhere in the driver * request_irq() always takes VBUS_IRQ_FLAGS, regardless of refs->flags This patch tries to fix this with a policy: If a platform IRQ resource is available, give preference to its IRQ flag(s) over a default one (VBUS_IRQ_FLAGS). Signed-off-by: Shinya Kuribayashi Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed