From: Kumar Gala Date: Fri, 10 Jun 2011 06:52:57 +0000 (-0500) Subject: driver core: Add ability for arch code to setup pdev_archdata X-Git-Tag: v3.1-rc1~236^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a77ce8167cc1d0370fcb1d79b367d62e050cb2b0;p=pandora-kernel.git driver core: Add ability for arch code to setup pdev_archdata On some architectures we need to setup pdev_archdata before we add the device. Waiting til a bus_notifier is too late since we might need the pdev_archdata in the bus notifier. One example is setting up of dma_mask pointers such that it can be used in a bus_notifier. We add weak noop version of arch_setup_pdev_archdata() and allow the arch code to override with access the full definitions of struct device, struct platform_device, and struct pdev_archdata. Acked-by: Greg Kroah-Hartman Signed-off-by: Kumar Gala --- Reading git-diff-tree failed