Re: [PATCH v3 11/12] memory-hotplug: remove sysfs file of node

2012-11-19 Thread Yasuaki Ishimatsu
Hi Wen,

This patch cannot be applied, if I apply latest acpi framework's patch-set:

https://lkml.org/lkml/2012/11/15/21

Because acpi_memory_disable_device() is gone by the patch-set.

I updated the patch and attached it on the mail.

2012/11/01 18:44, Wen Congyang wrote:
 This patch introduces a new function try_offline_node() to
 remove sysfs file of node when all memory sections of this
 node are removed. If some memory sections of this node are
 not removed, this function does nothing.
 
 CC: David Rientjes rient...@google.com
 CC: Jiang Liu liu...@gmail.com
 CC: Len Brown len.br...@intel.com
 CC: Christoph Lameter c...@linux.com
 Cc: Minchan Kim minchan@gmail.com
 CC: Andrew Morton a...@linux-foundation.org
 CC: KOSAKI Motohiro kosaki.motoh...@jp.fujitsu.com
 CC: Yasuaki Ishimatsu isimatu.yasu...@jp.fujitsu.com
 Signed-off-by: Wen Congyang we...@cn.fujitsu.com
 ---
   drivers/acpi/acpi_memhotplug.c |  8 +-
   include/linux/memory_hotplug.h |  2 +-
   mm/memory_hotplug.c| 58 
 --
   3 files changed, 64 insertions(+), 4 deletions(-)
 
 diff --git a/drivers/acpi/acpi_memhotplug.c b/drivers/acpi/acpi_memhotplug.c
 index 24c807f..0780f99 100644
 --- a/drivers/acpi/acpi_memhotplug.c
 +++ b/drivers/acpi/acpi_memhotplug.c
 @@ -310,7 +310,9 @@ static int acpi_memory_disable_device(struct 
 acpi_memory_device *mem_device)
   {
   int result;
   struct acpi_memory_info *info, *n;
 + int node;
   
 + node = acpi_get_node(mem_device-device-handle);
   
   /*
* Ask the VM to offline this memory range.
 @@ -318,7 +320,11 @@ static int acpi_memory_disable_device(struct 
 acpi_memory_device *mem_device)
*/
   list_for_each_entry_safe(info, n, mem_device-res_list, list) {
   if (info-enabled) {
 - result = remove_memory(info-start_addr, info-length);
 + if (node  0)
 + node = memory_add_physaddr_to_nid(
 + info-start_addr);
 + result = remove_memory(node, info-start_addr,
 + info-length);
   if (result)
   return result;
   }
 diff --git a/include/linux/memory_hotplug.h b/include/linux/memory_hotplug.h
 index d4c4402..7b4cfe6 100644
 --- a/include/linux/memory_hotplug.h
 +++ b/include/linux/memory_hotplug.h
 @@ -231,7 +231,7 @@ extern int arch_add_memory(int nid, u64 start, u64 size);
   extern int offline_pages(unsigned long start_pfn, unsigned long nr_pages);
   extern int offline_memory_block(struct memory_block *mem);
   extern bool is_memblock_offlined(struct memory_block *mem);
 -extern int remove_memory(u64 start, u64 size);
 +extern int remove_memory(int node, u64 start, u64 size);
   extern int sparse_add_one_section(struct zone *zone, unsigned long 
 start_pfn,
   int nr_pages);
   extern void sparse_remove_one_section(struct zone *zone, struct mem_section 
 *ms);
 diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c
 index 7bcced0..d965da3 100644
 --- a/mm/memory_hotplug.c
 +++ b/mm/memory_hotplug.c
 @@ -29,6 +29,7 @@
   #include linux/suspend.h
   #include linux/mm_inline.h
   #include linux/firmware-map.h
 +#include linux/stop_machine.h
   
   #include asm/tlbflush.h
   
 @@ -1299,7 +1300,58 @@ static int is_memblock_offlined_cb(struct memory_block 
 *mem, void *arg)
   return ret;
   }
   
 -int __ref remove_memory(u64 start, u64 size)
 +static int check_cpu_on_node(void *data)
 +{
 + struct pglist_data *pgdat = data;
 + int cpu;
 +
 + for_each_present_cpu(cpu) {
 + if (cpu_to_node(cpu) == pgdat-node_id)
 + /*
 +  * the cpu on this node isn't removed, and we can't
 +  * offline this node.
 +  */
 + return -EBUSY;
 + }
 +
 + return 0;
 +}
 +
 +/* offline the node if all memory sections of this node are removed */
 +static void try_offline_node(int nid)
 +{
 + unsigned long start_pfn = NODE_DATA(nid)-node_start_pfn;
 + unsigned long end_pfn = start_pfn + NODE_DATA(nid)-node_spanned_pages;
 + unsigned long pfn;
 +
 + for (pfn = start_pfn; pfn  end_pfn; pfn += PAGES_PER_SECTION) {
 + unsigned long section_nr = pfn_to_section_nr(pfn);
 +
 + if (!present_section_nr(section_nr))
 + continue;
 +
 + if (pfn_to_nid(pfn) != nid)
 + continue;
 +
 + /*
 +  * some memory sections of this node are not removed, and we
 +  * can't offline node now.
 +  */
 + return;
 + }
 +
 + if (stop_machine(check_cpu_on_node, NODE_DATA(nid), NULL))
 + return;
 +
 + /*
 +  * all memory/cpu of this node are removed, we can offline this
 +  * 

[PATCH] powerpc, perf: Change PMU flag representation from decimal to hex

2012-11-19 Thread Anshuman Khandual
Change the representation of the PMU flags from decimal to hex since they
are bitfields which are easier to read in hex.

Signed-off-by: Anshuman Khandual khand...@linux.vnet.ibm.com
---
 Changed the 64 bit constants into 32 bit constants as it would apply to
 32 bit variable power_pmu.flags

 arch/powerpc/include/asm/perf_event_server.h | 10 +-
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/arch/powerpc/include/asm/perf_event_server.h 
b/arch/powerpc/include/asm/perf_event_server.h
index 9710be3..d3e9748 100644
--- a/arch/powerpc/include/asm/perf_event_server.h
+++ b/arch/powerpc/include/asm/perf_event_server.h
@@ -45,11 +45,11 @@ struct power_pmu {
 /*
  * Values for power_pmu.flags
  */
-#define PPMU_LIMITED_PMC5_61   /* PMC5/6 have limited function */
-#define PPMU_ALT_SIPR  2   /* uses alternate posn for SIPR/HV */
-#define PPMU_NO_SIPR   4   /* no SIPR/HV in MMCRA at all */
-#define PPMU_NO_CONT_SAMPLING  8   /* no continuous sampling */
-#define PPMU_SIAR_VALID16  /* Processor has SIAR Valid bit 
*/
+#define PPMU_LIMITED_PMC5_60x0001 /* PMC5/6 have limited function */
+#define PPMU_ALT_SIPR  0x0002 /* uses alternate posn for SIPR/HV */
+#define PPMU_NO_SIPR   0x0004 /* no SIPR/HV in MMCRA at all */
+#define PPMU_NO_CONT_SAMPLING  0x0008 /* no continuous sampling */
+#define PPMU_SIAR_VALID0x0010 /* Processor has SIAR Valid 
bit */
 
 /*
  * Values for flags to get_alternatives()
-- 
1.7.11.7

___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev


Re: [PATCH 31/32] perf powerpc: Use uapi/unistd.h to fix build error

2012-11-19 Thread Josh Boyer
On Sun, Nov 18, 2012 at 9:29 AM, Arnaldo Carvalho de Melo
a...@infradead.org wrote:
 From: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com

 Use the 'unistd.h' from arch/powerpc/include/uapi to build the perf tool.

This would work for powerpc, but at least s390x and ARM have the same
build issue.  Why would we fix this piecemeal per-arch?

David Howells has a patch that _should_ fix it for all of them at once.
Is there a reason that isn't going in?

josh
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev


Re: [PATCH 31/32] perf powerpc: Use uapi/unistd.h to fix build error

2012-11-19 Thread Arnaldo Carvalho de Melo
Em Mon, Nov 19, 2012 at 08:29:09AM -0500, Josh Boyer escreveu:
 On Sun, Nov 18, 2012 at 9:29 AM, Arnaldo Carvalho de Melo 
 a...@infradead.org wrote:
  From: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com

  Use the 'unistd.h' from arch/powerpc/include/uapi to build the perf tool.
 
 This would work for powerpc, but at least s390x and ARM have the same
 build issue.  Why would we fix this piecemeal per-arch?
 
 David Howells has a patch that _should_ fix it for all of them at once.
 Is there a reason that isn't going in?

David rebased his patch on top of my perf/core branch, I just tested it
and all works as expected, so I'd say he should push that branch
upstream as I can't just cherry pick some csets, it needs a merge that
involves more than just tools/perf AFAIK.

- Arnaldo
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev


Re: [PATCH 31/32] perf powerpc: Use uapi/unistd.h to fix build error

2012-11-19 Thread Josh Boyer
On Mon, Nov 19, 2012 at 10:07 AM, Arnaldo Carvalho de Melo
a...@ghostprotocols.net wrote:
 Em Mon, Nov 19, 2012 at 08:29:09AM -0500, Josh Boyer escreveu:
 On Sun, Nov 18, 2012 at 9:29 AM, Arnaldo Carvalho de Melo 
 a...@infradead.org wrote:
  From: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com

  Use the 'unistd.h' from arch/powerpc/include/uapi to build the perf tool.

 This would work for powerpc, but at least s390x and ARM have the same
 build issue.  Why would we fix this piecemeal per-arch?

 David Howells has a patch that _should_ fix it for all of them at once.
 Is there a reason that isn't going in?

 David rebased his patch on top of my perf/core branch, I just tested it
 and all works as expected, so I'd say he should push that branch
 upstream as I can't just cherry pick some csets, it needs a merge that
 involves more than just tools/perf AFAIK.

OK...  is perf/core (all 32 commits) headed into 3.7?  Because the perf
build is broken in 3.7-rcX, and we're at the point where Linus gets kind
of picky about what he accepts.  So we'd need your branch and David's to
fix compile issues.  And then we'd need Xiao Guangrong's fixes for 'perf
kvm' to only build on x86.  That's quite a number of fixes we need just
to get perf to compile.  Is someone other than me keeping track of
that?

I would just like people to stop wondering when perf builds on non-x86
architectures will work.

josh
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev


Re: [PATCH 119/493] usb: remove use of __devexit_p

2012-11-19 Thread Felipe Balbi
Hi,

On Mon, Nov 19, 2012 at 01:21:08PM -0500, Bill Pemberton wrote:
 CONFIG_HOTPLUG is going away as an option so __devexit_p is no longer
 needed.
 
 Signed-off-by: Bill Pemberton wf...@virginia.edu
 Cc: Peter Korsgaard jac...@sunsite.dk 
 Cc: Alexander Shishkin alexander.shish...@linux.intel.com 
 Cc: Felipe Balbi ba...@ti.com 
 Cc: Li Yang le...@freescale.com 
 Cc: Alan Stern st...@rowland.harvard.edu 
 Cc: Wan ZongShun mcuos@gmail.com 
 Cc: Ben Dooks ben-li...@fluff.org 
 Cc: Kukjin Kim kgene@samsung.com 
 Cc: linux-...@vger.kernel.org 
 Cc: linux-o...@vger.kernel.org 
 Cc: linuxppc-dev@lists.ozlabs.org 
 Cc: linux-arm-ker...@lists.infradead.org 
 Cc: linux-samsung-...@vger.kernel.org 
 ---
  drivers/usb/c67x00/c67x00-drv.c  | 2 +-
  drivers/usb/chipidea/ci13xxx_imx.c   | 2 +-
  drivers/usb/chipidea/ci13xxx_msm.c   | 2 +-
  drivers/usb/chipidea/ci13xxx_pci.c   | 2 +-
  drivers/usb/chipidea/core.c  | 2 +-
  drivers/usb/chipidea/usbmisc_imx6q.c | 2 +-
  drivers/usb/dwc3/core.c  | 2 +-
  drivers/usb/dwc3/dwc3-exynos.c   | 2 +-
  drivers/usb/dwc3/dwc3-omap.c | 2 +-
  drivers/usb/dwc3/dwc3-pci.c  | 2 +-
  drivers/usb/gadget/bcm63xx_udc.c | 2 +-
  drivers/usb/gadget/fsl_qe_udc.c  | 2 +-
  drivers/usb/gadget/hid.c | 2 +-
  drivers/usb/gadget/lpc32xx_udc.c | 2 +-
  drivers/usb/gadget/net2272.c | 4 ++--
  drivers/usb/gadget/omap_udc.c| 2 +-
  drivers/usb/gadget/s3c-hsotg.c   | 2 +-
  drivers/usb/host/bcma-hcd.c  | 2 +-
  drivers/usb/host/ehci-atmel.c| 2 +-
  drivers/usb/host/ehci-msm.c  | 2 +-
  drivers/usb/host/ehci-platform.c | 2 +-
  drivers/usb/host/ehci-s5p.c  | 2 +-
  drivers/usb/host/ehci-w90x900.c  | 2 +-
  drivers/usb/host/fhci-hcd.c  | 2 +-
  drivers/usb/host/fsl-mph-dr-of.c | 2 +-
  drivers/usb/host/isp1362-hcd.c   | 2 +-
  drivers/usb/host/isp1760-if.c| 2 +-
  drivers/usb/host/ohci-at91.c | 2 +-
  drivers/usb/host/ohci-exynos.c   | 2 +-
  drivers/usb/host/ohci-jz4740.c   | 2 +-
  drivers/usb/host/ohci-omap3.c| 2 +-
  drivers/usb/host/ohci-platform.c | 2 +-
  drivers/usb/host/ohci-s3c2410.c  | 2 +-
  drivers/usb/host/ohci-tmio.c | 2 +-
  drivers/usb/host/r8a66597-hcd.c  | 2 +-
  drivers/usb/host/sl811-hcd.c | 2 +-
  drivers/usb/host/ssb-hcd.c   | 2 +-
  drivers/usb/host/u132-hcd.c  | 2 +-
  drivers/usb/musb/am35x.c | 2 +-
  drivers/usb/musb/da8xx.c | 2 +-
  drivers/usb/musb/davinci.c   | 2 +-
  drivers/usb/musb/musb_core.c | 2 +-
  drivers/usb/musb/musb_dsps.c | 2 +-
  drivers/usb/musb/omap2430.c  | 2 +-
  drivers/usb/musb/tusb6010.c  | 2 +-
  drivers/usb/musb/ux500.c | 2 +-
  drivers/usb/otg/ab8500-usb.c | 2 +-
  drivers/usb/otg/fsl_otg.c| 2 +-
  drivers/usb/otg/msm_otg.c| 2 +-
  drivers/usb/otg/mxs-phy.c| 2 +-
  drivers/usb/otg/nop-usb-xceiv.c  | 2 +-
  drivers/usb/phy/mv_u3d_phy.c | 2 +-
  drivers/usb/phy/omap-usb2.c  | 2 +-
  drivers/usb/phy/rcar-phy.c   | 2 +-
  drivers/usb/renesas_usbhs/common.c   | 2 +-
  55 files changed, 56 insertions(+), 56 deletions(-)

For drivers/usb/gadget, drivers/usb/dwc3/, drivers/usb/musb/,
drivers/usb/otg/, drivers/usb/phy, and drivers/usb/renesas_usbhs:

Acked-by: Felipe Balbi ba...@ti.com

-- 
balbi


signature.asc
Description: Digital signature
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [PATCH 159/493] usb: remove use of __devinit

2012-11-19 Thread Felipe Balbi
Hi,

On Mon, Nov 19, 2012 at 01:21:48PM -0500, Bill Pemberton wrote:
 CONFIG_HOTPLUG is going away as an option so __devinit is no longer
 needed.
 
 Signed-off-by: Bill Pemberton wf...@virginia.edu
 Cc: Peter Korsgaard jac...@sunsite.dk 
 Cc: Alexander Shishkin alexander.shish...@linux.intel.com 
 Cc: Felipe Balbi ba...@ti.com 
 Cc: Li Yang le...@freescale.com 
 Cc: Alan Stern st...@rowland.harvard.edu 
 Cc: Geoff Levand ge...@infradead.org 
 Cc: Wan ZongShun mcuos@gmail.com 
 Cc: Olav Kongas o...@artecdesign.ee 
 Cc: Lennert Buytenhek ker...@wantstofly.org 
 Cc: Ben Dooks ben-li...@fluff.org 
 Cc: Kukjin Kim kgene@samsung.com 
 Cc: linux-...@vger.kernel.org 
 Cc: linux-o...@vger.kernel.org 
 Cc: linuxppc-dev@lists.ozlabs.org 
 Cc: cbe-oss-...@lists.ozlabs.org 
 Cc: linux-arm-ker...@lists.infradead.org 
 Cc: linux-samsung-...@vger.kernel.org 
 ---
  drivers/usb/c67x00/c67x00-drv.c  |  2 +-
  drivers/usb/chipidea/ci13xxx_imx.c   |  2 +-
  drivers/usb/chipidea/ci13xxx_msm.c   |  2 +-
  drivers/usb/chipidea/ci13xxx_pci.c   |  2 +-
  drivers/usb/chipidea/core.c  |  2 +-
  drivers/usb/chipidea/usbmisc_imx6q.c |  2 +-
  drivers/usb/dwc3/core.c  | 11 +--
  drivers/usb/dwc3/debugfs.c   |  2 +-
  drivers/usb/dwc3/dwc3-exynos.c   |  4 ++--
  drivers/usb/dwc3/dwc3-omap.c |  4 ++--
  drivers/usb/dwc3/dwc3-pci.c  |  4 ++--
  drivers/usb/dwc3/gadget.c|  4 ++--
  drivers/usb/gadget/at91_udc.c|  4 ++--
  drivers/usb/gadget/bcm63xx_udc.c |  2 +-
  drivers/usb/gadget/f_uac2.c  |  2 +-
  drivers/usb/gadget/fsl_qe_udc.c  |  8 
  drivers/usb/gadget/mv_udc_core.c |  2 +-
  drivers/usb/gadget/net2272.c | 13 ++---
  drivers/usb/gadget/omap_udc.c|  6 +++---
  drivers/usb/gadget/s3c-hsotg.c   |  6 +++---
  drivers/usb/gadget/s3c-hsudc.c   |  2 +-
  drivers/usb/host/bcma-hcd.c  |  9 -
  drivers/usb/host/ehci-atmel.c|  2 +-
  drivers/usb/host/ehci-grlib.c|  2 +-
  drivers/usb/host/ehci-orion.c|  4 ++--
  drivers/usb/host/ehci-platform.c |  2 +-
  drivers/usb/host/ehci-ppc-of.c   |  4 ++--
  drivers/usb/host/ehci-ps3.c  |  2 +-
  drivers/usb/host/ehci-s5p.c  |  2 +-
  drivers/usb/host/ehci-w90x900.c  |  4 ++--
  drivers/usb/host/ehci-xilinx-of.c|  2 +-
  drivers/usb/host/fhci-hcd.c  |  2 +-
  drivers/usb/host/fsl-mph-dr-of.c |  8 
  drivers/usb/host/imx21-hcd.c |  2 +-
  drivers/usb/host/isp116x-hcd.c   |  2 +-
  drivers/usb/host/isp1362-hcd.c   |  2 +-
  drivers/usb/host/isp1760-if.c|  4 ++--
  drivers/usb/host/ohci-at91.c | 12 ++--
  drivers/usb/host/ohci-ep93xx.c   |  2 +-
  drivers/usb/host/ohci-exynos.c   |  2 +-
  drivers/usb/host/ohci-jz4740.c   |  2 +-
  drivers/usb/host/ohci-nxp.c  |  4 ++--
  drivers/usb/host/ohci-octeon.c   |  2 +-
  drivers/usb/host/ohci-omap3.c|  2 +-
  drivers/usb/host/ohci-pci.c  |  2 +-
  drivers/usb/host/ohci-platform.c |  2 +-
  drivers/usb/host/ohci-ppc-of.c   |  4 ++--
  drivers/usb/host/ohci-ps3.c  |  4 ++--
  drivers/usb/host/ohci-pxa27x.c   |  6 +++---
  drivers/usb/host/ohci-s3c2410.c  |  2 +-
  drivers/usb/host/ohci-sa.c   |  2 +-
  drivers/usb/host/ohci-spear.c|  2 +-
  drivers/usb/host/ohci-tmio.c |  2 +-
  drivers/usb/host/pci-quirks.c| 14 +++---
  drivers/usb/host/r8a66597-hcd.c  |  2 +-
  drivers/usb/host/sl811-hcd.c |  2 +-
  drivers/usb/host/ssb-hcd.c   | 11 +--
  drivers/usb/host/u132-hcd.c  |  2 +-
  drivers/usb/host/uhci-grlib.c|  2 +-
  drivers/usb/host/uhci-platform.c |  2 +-
  drivers/usb/musb/am35x.c |  2 +-
  drivers/usb/musb/blackfin.c  |  2 +-
  drivers/usb/musb/cppi_dma.c  |  3 +--
  drivers/usb/musb/da8xx.c |  2 +-
  drivers/usb/musb/davinci.c   |  2 +-
  drivers/usb/musb/musb_core.c | 15 +++
  drivers/usb/musb/musb_debugfs.c  |  2 +-
  drivers/usb/musb/musb_dma.h  |  3 +--
  drivers/usb/musb/musb_dsps.c |  4 ++--
  drivers/usb/musb/musb_gadget.c   |  6 +++---
  drivers/usb/musb/musbhsdma.c |  3 +--
  drivers/usb/musb/omap2430.c  |  2 +-
  drivers/usb/musb/tusb6010.c  |  2 +-
  drivers/usb/musb/tusb6010_omap.c |  3 +--
  drivers/usb/musb/ux500.c |  2 +-
  drivers/usb/musb/ux500_dma.c |  3 +--
  drivers/usb/otg/ab8500-usb.c |  2 +-
  drivers/usb/otg/fsl_otg.c|  2 +-
  drivers/usb/otg/isp1301_omap.c   |  2 +-
  drivers/usb/otg/nop-usb-xceiv.c  |  2 +-
  drivers/usb/otg/twl4030-usb.c|  2 +-
  drivers/usb/otg/twl6030-usb.c|  2 +-
  drivers/usb/phy/mv_u3d_phy.c |  2 +-
  drivers/usb/phy/omap-usb2.c  |  2 +-
  drivers/usb/phy/rcar-phy.c   |  2 +-
  85 

Re: [PATCH 371/493] usb: remove use of __devinitconst

2012-11-19 Thread Felipe Balbi
Hi,

On Mon, Nov 19, 2012 at 01:25:20PM -0500, Bill Pemberton wrote:
 CONFIG_HOTPLUG is going away as an option so __devinitconst is no
 longer needed.
 
 Signed-off-by: Bill Pemberton wf...@virginia.edu
 Cc: Li Yang le...@freescale.com 
 Cc: Felipe Balbi ba...@ti.com 
 Cc: linux-...@vger.kernel.org 
 Cc: linuxppc-dev@lists.ozlabs.org 
 ---
  drivers/usb/gadget/fsl_qe_udc.c | 2 +-
  drivers/usb/host/bcma-hcd.c | 2 +-
  drivers/usb/host/pci-quirks.c   | 2 +-
  drivers/usb/host/ssb-hcd.c  | 2 +-
  drivers/usb/musb/musb_dsps.c| 6 +++---
  5 files changed, 7 insertions(+), 7 deletions(-)

For drivers/usb/gadget, drivers/usb/musb/:

Acked-by: Felipe Balbi ba...@ti.com

-- 
balbi


signature.asc
Description: Digital signature
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [PATCH 431/493] usb: remove use of __devexit

2012-11-19 Thread Felipe Balbi
Hi,

On Mon, Nov 19, 2012 at 01:26:20PM -0500, Bill Pemberton wrote:
 CONFIG_HOTPLUG is going away as an option so __devexit is no
 longer needed.
 
 Signed-off-by: Bill Pemberton wf...@virginia.edu
 Cc: Peter Korsgaard jac...@sunsite.dk 
 Cc: Alexander Shishkin alexander.shish...@linux.intel.com 
 Cc: Felipe Balbi ba...@ti.com 
 Cc: Li Yang le...@freescale.com 
 Cc: Alan Stern st...@rowland.harvard.edu 
 Cc: Wan ZongShun mcuos@gmail.com 
 Cc: Ben Dooks ben-li...@fluff.org 
 Cc: Kukjin Kim kgene@samsung.com 
 Cc: linux-...@vger.kernel.org 
 Cc: linux-o...@vger.kernel.org 
 Cc: linuxppc-dev@lists.ozlabs.org 
 Cc: linux-arm-ker...@lists.infradead.org 
 Cc: linux-samsung-...@vger.kernel.org 
 ---
  drivers/usb/c67x00/c67x00-drv.c  |  2 +-
  drivers/usb/chipidea/ci13xxx_imx.c   |  2 +-
  drivers/usb/chipidea/ci13xxx_msm.c   |  2 +-
  drivers/usb/chipidea/ci13xxx_pci.c   |  2 +-
  drivers/usb/chipidea/core.c  |  2 +-
  drivers/usb/chipidea/usbmisc_imx6q.c |  2 +-
  drivers/usb/dwc3/core.c  |  2 +-
  drivers/usb/dwc3/debugfs.c   |  2 +-
  drivers/usb/dwc3/dwc3-exynos.c   |  2 +-
  drivers/usb/dwc3/dwc3-omap.c |  2 +-
  drivers/usb/dwc3/dwc3-pci.c  |  2 +-
  drivers/usb/gadget/bcm63xx_udc.c |  2 +-
  drivers/usb/gadget/fsl_qe_udc.c  |  2 +-
  drivers/usb/gadget/hid.c |  2 +-
  drivers/usb/gadget/lpc32xx_udc.c |  2 +-
  drivers/usb/gadget/mv_u3d_core.c |  2 +-
  drivers/usb/gadget/mv_udc_core.c |  2 +-
  drivers/usb/gadget/net2272.c | 10 +-
  drivers/usb/gadget/omap_udc.c|  2 +-
  drivers/usb/gadget/s3c-hsotg.c   |  4 ++--
  drivers/usb/host/bcma-hcd.c  |  2 +-
  drivers/usb/host/ehci-atmel.c|  2 +-
  drivers/usb/host/ehci-msm.c  |  2 +-
  drivers/usb/host/ehci-platform.c |  2 +-
  drivers/usb/host/ehci-s5p.c  |  2 +-
  drivers/usb/host/ehci-w90x900.c  |  2 +-
  drivers/usb/host/fhci-hcd.c  |  4 ++--
  drivers/usb/host/fsl-mph-dr-of.c |  4 ++--
  drivers/usb/host/isp1362-hcd.c   |  2 +-
  drivers/usb/host/isp1760-if.c|  2 +-
  drivers/usb/host/ohci-at91.c |  6 +++---
  drivers/usb/host/ohci-exynos.c   |  2 +-
  drivers/usb/host/ohci-jz4740.c   |  2 +-
  drivers/usb/host/ohci-omap3.c|  2 +-
  drivers/usb/host/ohci-platform.c |  2 +-
  drivers/usb/host/ohci-s3c2410.c  |  2 +-
  drivers/usb/host/ohci-tmio.c |  2 +-
  drivers/usb/host/r8a66597-hcd.c  |  2 +-
  drivers/usb/host/sl811-hcd.c |  2 +-
  drivers/usb/host/ssb-hcd.c   |  4 ++--
  drivers/usb/host/u132-hcd.c  |  2 +-
  drivers/usb/musb/am35x.c |  2 +-
  drivers/usb/musb/blackfin.c  |  2 +-
  drivers/usb/musb/da8xx.c |  2 +-
  drivers/usb/musb/davinci.c   |  2 +-
  drivers/usb/musb/musb_core.c |  2 +-
  drivers/usb/musb/musb_dsps.c |  2 +-
  drivers/usb/musb/omap2430.c  |  2 +-
  drivers/usb/musb/tusb6010.c  |  2 +-
  drivers/usb/musb/ux500.c |  2 +-
  drivers/usb/otg/ab8500-usb.c |  2 +-
  drivers/usb/otg/fsl_otg.c|  2 +-
  drivers/usb/otg/msm_otg.c|  2 +-
  drivers/usb/otg/mxs-phy.c|  2 +-
  drivers/usb/otg/nop-usb-xceiv.c  |  2 +-
  drivers/usb/phy/omap-usb2.c  |  2 +-
  drivers/usb/phy/rcar-phy.c   |  2 +-
  drivers/usb/renesas_usbhs/common.c   |  2 +-

For drivers/usb/gadget, drivers/usb/dwc3/, drivers/usb/musb/,
drivers/usb/otg/, drivers/usb/phy, and drivers/usb/renesas_usbhs:

Acked-by: Felipe Balbi ba...@ti.com

-- 
balbi


signature.asc
Description: Digital signature
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [PATCH 3/4] perf/POWER7: Make event translations available in sysfs

2012-11-19 Thread Jiri Olsa
On Fri, Nov 16, 2012 at 11:35:37AM -0800, Sukadev Bhattiprolu wrote:
 Jiri Olsa [jo...@redhat.com] wrote:
 |  
 |  Can we remove the assumption that the event id is a generic event that
 |  has PERF_COUNT_HW_ prefix and also let the architectures pass in a show
 |  function ? This would allow architectures to display any arch specific
 |  events that don't yet have a generic counterpart.
 |  
 |  IOW, can we do something like this (untested) and make PERF_EVENT_ATTR 
 global:
 | 
 | hm, then you probably can use following:
 | 
 | http://www.spinics.net/lists/kernel/msg1434233.html
 
 For now, power events can simply be u64 - so am hoping to have something
 like this and replace the raw codes:
 
 #define PM_CYC0x1e
 #define PM_GCT_NOSLOT_CYC 0x100f8
 
 EVENT_ATTR_STR() is interesting, but would require new/extra macros like
 
 #define PM_CYC_STR0x1e
 #define PM_GCT_NOSLOT_CYC_STR 0x100f8
 
 I went down the path we discussed earlier - to have x86 and Power share
 the EVENT_ATTR() macros. This is making the x86 code less concise
 
   EVENT_ATTR(cpu-cycles,  CPU_CYCLES)
 
 becomes
 
   EVENT_ATTR(cpu-cycles,  PERF_COUNT_HW_CPU_CYCLES, events_sysfs_show)
 
 with each EVENT_ATTR() explcitly adding events_sysfs_show or needing another
 wrapper around the wrappers.
 
 Still tweaking it, but would it be flexible to make 'struct pmu_events_attr'
 common and let architectures define the EVENT_ATTR() as needed ? Would
 duplicate some code but hopefully not a lot.

sounds good, let's see ;)

jirka
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev


[PATCH 211/493] hwrng: remove use of __devinit

2012-11-19 Thread Bill Pemberton
CONFIG_HOTPLUG is going away as an option so __devinit is no longer
needed.

Signed-off-by: Bill Pemberton wf...@virginia.edu
Cc: Deepak Saxena dsax...@plexity.net 
Cc: Olof Johansson o...@lixom.net 
Cc: linuxppc-dev@lists.ozlabs.org 
---
 drivers/char/hw_random/bcm63xx-rng.c| 2 +-
 drivers/char/hw_random/exynos-rng.c | 2 +-
 drivers/char/hw_random/n2-drv.c | 4 ++--
 drivers/char/hw_random/octeon-rng.c | 2 +-
 drivers/char/hw_random/omap-rng.c   | 2 +-
 drivers/char/hw_random/pasemi-rng.c | 2 +-
 drivers/char/hw_random/ppc4xx-rng.c | 2 +-
 drivers/char/hw_random/timeriomem-rng.c | 2 +-
 8 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/drivers/char/hw_random/bcm63xx-rng.c 
b/drivers/char/hw_random/bcm63xx-rng.c
index 95bcc88..c46fc74 100644
--- a/drivers/char/hw_random/bcm63xx-rng.c
+++ b/drivers/char/hw_random/bcm63xx-rng.c
@@ -61,7 +61,7 @@ static int bcm63xx_rng_data_read(struct hwrng *rng, u32 *data)
return 4;
 }
 
-static int __devinit bcm63xx_rng_probe(struct platform_device *pdev)
+static int bcm63xx_rng_probe(struct platform_device *pdev)
 {
struct resource *r;
struct clk *clk;
diff --git a/drivers/char/hw_random/exynos-rng.c 
b/drivers/char/hw_random/exynos-rng.c
index 046d6ae..92d302a 100644
--- a/drivers/char/hw_random/exynos-rng.c
+++ b/drivers/char/hw_random/exynos-rng.c
@@ -101,7 +101,7 @@ static int exynos_read(struct hwrng *rng, void *buf,
return 4;
 }
 
-static int __devinit exynos_rng_probe(struct platform_device *pdev)
+static int exynos_rng_probe(struct platform_device *pdev)
 {
struct exynos_rng *exynos_rng;
 
diff --git a/drivers/char/hw_random/n2-drv.c b/drivers/char/hw_random/n2-drv.c
index cbde832..432235b 100644
--- a/drivers/char/hw_random/n2-drv.c
+++ b/drivers/char/hw_random/n2-drv.c
@@ -611,7 +611,7 @@ static void n2rng_work(struct work_struct *work)
schedule_delayed_work(np-work, HZ * 2);
 }
 
-static void __devinit n2rng_driver_version(void)
+static void n2rng_driver_version(void)
 {
static int n2rng_version_printed;
 
@@ -620,7 +620,7 @@ static void __devinit n2rng_driver_version(void)
 }
 
 static const struct of_device_id n2rng_match[];
-static int __devinit n2rng_probe(struct platform_device *op)
+static int n2rng_probe(struct platform_device *op)
 {
const struct of_device_id *match;
int multi_capable;
diff --git a/drivers/char/hw_random/octeon-rng.c 
b/drivers/char/hw_random/octeon-rng.c
index 5c34c09..1eada56 100644
--- a/drivers/char/hw_random/octeon-rng.c
+++ b/drivers/char/hw_random/octeon-rng.c
@@ -56,7 +56,7 @@ static int octeon_rng_data_read(struct hwrng *rng, u32 *data)
return sizeof(u32);
 }
 
-static int __devinit octeon_rng_probe(struct platform_device *pdev)
+static int octeon_rng_probe(struct platform_device *pdev)
 {
struct resource *res_ports;
struct resource *res_result;
diff --git a/drivers/char/hw_random/omap-rng.c 
b/drivers/char/hw_random/omap-rng.c
index 45e467d..d8c54e2 100644
--- a/drivers/char/hw_random/omap-rng.c
+++ b/drivers/char/hw_random/omap-rng.c
@@ -104,7 +104,7 @@ static struct hwrng omap_rng_ops = {
.data_read  = omap_rng_data_read,
 };
 
-static int __devinit omap_rng_probe(struct platform_device *pdev)
+static int omap_rng_probe(struct platform_device *pdev)
 {
struct omap_rng_private_data *priv;
int ret;
diff --git a/drivers/char/hw_random/pasemi-rng.c 
b/drivers/char/hw_random/pasemi-rng.c
index 3a63267..da5dfb5 100644
--- a/drivers/char/hw_random/pasemi-rng.c
+++ b/drivers/char/hw_random/pasemi-rng.c
@@ -94,7 +94,7 @@ static struct hwrng pasemi_rng = {
.data_read  = pasemi_rng_data_read,
 };
 
-static int __devinit rng_probe(struct platform_device *ofdev)
+static int rng_probe(struct platform_device *ofdev)
 {
void __iomem *rng_regs;
struct device_node *rng_np = ofdev-dev.of_node;
diff --git a/drivers/char/hw_random/ppc4xx-rng.c 
b/drivers/char/hw_random/ppc4xx-rng.c
index c51762c..c4b89c2 100644
--- a/drivers/char/hw_random/ppc4xx-rng.c
+++ b/drivers/char/hw_random/ppc4xx-rng.c
@@ -90,7 +90,7 @@ static struct hwrng ppc4xx_rng = {
.data_read = ppc4xx_rng_data_read,
 };
 
-static int __devinit ppc4xx_rng_probe(struct platform_device *dev)
+static int ppc4xx_rng_probe(struct platform_device *dev)
 {
void __iomem *rng_regs;
int err = 0;
diff --git a/drivers/char/hw_random/timeriomem-rng.c 
b/drivers/char/hw_random/timeriomem-rng.c
index d5144ec..0153d0c 100644
--- a/drivers/char/hw_random/timeriomem-rng.c
+++ b/drivers/char/hw_random/timeriomem-rng.c
@@ -88,7 +88,7 @@ static struct hwrng timeriomem_rng_ops = {
.priv   = 0,
 };
 
-static int __devinit timeriomem_rng_probe(struct platform_device *pdev)
+static int timeriomem_rng_probe(struct platform_device *pdev)
 {
struct resource *res;
int ret;
-- 
1.8.0

___
Linuxppc-dev mailing 

[PATCH 035/493] powerpc: remove use of __devexit_p

2012-11-19 Thread Bill Pemberton
CONFIG_HOTPLUG is going away as an option so __devexit_p is no longer
needed.

Signed-off-by: Bill Pemberton wf...@virginia.edu
Cc: Anatolij Gustschin ag...@denx.de 
Cc: Kumar Gala ga...@kernel.crashing.org 
Cc: linuxppc-dev@lists.ozlabs.org 
---
 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c  | 2 +-
 arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c | 2 +-
 arch/powerpc/sysdev/fsl_85xx_l2ctlr.c  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c 
b/arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c
index 2351f9e..459fa49 100644
--- a/arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c
+++ b/arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c
@@ -576,7 +576,7 @@ static struct platform_driver mpc52xx_lpbfifo_driver = {
.of_match_table = mpc52xx_lpbfifo_match,
},
.probe = mpc52xx_lpbfifo_probe,
-   .remove = __devexit_p(mpc52xx_lpbfifo_remove),
+   .remove = mpc52xx_lpbfifo_remove,
 };
 
 /***
diff --git a/arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c 
b/arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c
index ef6537b..fe27e4a 100644
--- a/arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c
+++ b/arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c
@@ -228,7 +228,7 @@ static struct i2c_driver mcu_driver = {
.of_match_table = mcu_of_match_table,
},
.probe = mcu_probe,
-   .remove = __devexit_p(mcu_remove),
+   .remove = mcu_remove,
.id_table = mcu_ids,
 };
 
diff --git a/arch/powerpc/sysdev/fsl_85xx_l2ctlr.c 
b/arch/powerpc/sysdev/fsl_85xx_l2ctlr.c
index d131c8a..103c94a 100644
--- a/arch/powerpc/sysdev/fsl_85xx_l2ctlr.c
+++ b/arch/powerpc/sysdev/fsl_85xx_l2ctlr.c
@@ -213,7 +213,7 @@ static struct platform_driver 
mpc85xx_l2ctlr_of_platform_driver = {
.of_match_table = mpc85xx_l2ctlr_of_match,
},
.probe  = mpc85xx_l2ctlr_of_probe,
-   .remove = __devexit_p(mpc85xx_l2ctlr_of_remove),
+   .remove = mpc85xx_l2ctlr_of_remove,
 };
 
 static __init int mpc85xx_l2ctlr_of_init(void)
-- 
1.8.0

___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev


[PATCH 024/493] powerpc: remove CONFIG_HOTPLUG ifdefs

2012-11-19 Thread Bill Pemberton
Remove conditional code based on CONFIG_HOTPLUG being false.  It's
always on now in preparation of it going away as an option.

Signed-off-by: Bill Pemberton wf...@virginia.edu
Cc: linuxppc-dev@lists.ozlabs.org 
---
 arch/powerpc/mm/tlb_hash64.c | 8 ++--
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/arch/powerpc/mm/tlb_hash64.c b/arch/powerpc/mm/tlb_hash64.c
index ae758b3..841afee 100644
--- a/arch/powerpc/mm/tlb_hash64.c
+++ b/arch/powerpc/mm/tlb_hash64.c
@@ -183,11 +183,9 @@ void tlb_flush(struct mmu_gather *tlb)
  * since 64K pages may overlap with other bridges when using 64K pages
  * with 4K HW pages on IO space.
  *
- * Because of that usage pattern, it's only available with CONFIG_HOTPLUG
- * and is implemented for small size rather than speed.
+ * Because of that usage pattern, it is implemented for small size
+ * rather than speed.
  */
-#ifdef CONFIG_HOTPLUG
-
 void __flush_hash_table_range(struct mm_struct *mm, unsigned long start,
  unsigned long end)
 {
@@ -221,5 +219,3 @@ void __flush_hash_table_range(struct mm_struct *mm, 
unsigned long start,
arch_leave_lazy_mmu_mode();
local_irq_restore(flags);
 }
-
-#endif /* CONFIG_HOTPLUG */
-- 
1.8.0

___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev


[PATCH 072/493] drivers/macintosh: remove use of __devexit_p

2012-11-19 Thread Bill Pemberton
CONFIG_HOTPLUG is going away as an option so __devexit_p is no longer
needed.

Signed-off-by: Bill Pemberton wf...@virginia.edu
Cc: Benjamin Herrenschmidt b...@kernel.crashing.org 
Cc: linuxppc-dev@lists.ozlabs.org 
---
 drivers/macintosh/rack-meter.c | 2 +-
 drivers/macintosh/windfarm_pm112.c | 2 +-
 drivers/macintosh/windfarm_pm121.c | 2 +-
 drivers/macintosh/windfarm_pm81.c  | 2 +-
 drivers/macintosh/windfarm_pm91.c  | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/macintosh/rack-meter.c b/drivers/macintosh/rack-meter.c
index 6dc26b6..18cd177 100644
--- a/drivers/macintosh/rack-meter.c
+++ b/drivers/macintosh/rack-meter.c
@@ -588,7 +588,7 @@ static struct macio_driver rackmeter_driver = {
.of_match_table = rackmeter_match,
},
.probe = rackmeter_probe,
-   .remove = __devexit_p(rackmeter_remove),
+   .remove = rackmeter_remove,
.shutdown = rackmeter_shutdown,
 };
 
diff --git a/drivers/macintosh/windfarm_pm112.c 
b/drivers/macintosh/windfarm_pm112.c
index e0ee807..54ac434 100644
--- a/drivers/macintosh/windfarm_pm112.c
+++ b/drivers/macintosh/windfarm_pm112.c
@@ -665,7 +665,7 @@ static int __devexit wf_pm112_remove(struct platform_device 
*dev)
 
 static struct platform_driver wf_pm112_driver = {
.probe = wf_pm112_probe,
-   .remove = __devexit_p(wf_pm112_remove),
+   .remove = wf_pm112_remove,
.driver = {
.name = windfarm,
.owner  = THIS_MODULE,
diff --git a/drivers/macintosh/windfarm_pm121.c 
b/drivers/macintosh/windfarm_pm121.c
index 04067e0..ec0ec67 100644
--- a/drivers/macintosh/windfarm_pm121.c
+++ b/drivers/macintosh/windfarm_pm121.c
@@ -995,7 +995,7 @@ static int __devexit pm121_remove(struct platform_device 
*ddev)
 
 static struct platform_driver pm121_driver = {
.probe = pm121_probe,
-   .remove = __devexit_p(pm121_remove),
+   .remove = pm121_remove,
.driver = {
.name = windfarm,
.bus = platform_bus_type,
diff --git a/drivers/macintosh/windfarm_pm81.c 
b/drivers/macintosh/windfarm_pm81.c
index 990c876..92ba8f5 100644
--- a/drivers/macintosh/windfarm_pm81.c
+++ b/drivers/macintosh/windfarm_pm81.c
@@ -763,7 +763,7 @@ static int __devexit wf_smu_remove(struct platform_device 
*ddev)
 
 static struct platform_driver wf_smu_driver = {
 .probe = wf_smu_probe,
-.remove = __devexit_p(wf_smu_remove),
+   .remove = wf_smu_remove,
.driver = {
.name = windfarm,
.owner  = THIS_MODULE,
diff --git a/drivers/macintosh/windfarm_pm91.c 
b/drivers/macintosh/windfarm_pm91.c
index 7653603..5be25b9 100644
--- a/drivers/macintosh/windfarm_pm91.c
+++ b/drivers/macintosh/windfarm_pm91.c
@@ -692,7 +692,7 @@ static int __devexit wf_smu_remove(struct platform_device 
*ddev)
 
 static struct platform_driver wf_smu_driver = {
 .probe = wf_smu_probe,
-.remove = __devexit_p(wf_smu_remove),
+   .remove = wf_smu_remove,
.driver = {
.name = windfarm,
.owner  = THIS_MODULE,
-- 
1.8.0

___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev


[PATCH 215/493] drivers/macintosh: remove use of __devinit

2012-11-19 Thread Bill Pemberton
CONFIG_HOTPLUG is going away as an option so __devinit is no longer
needed.

Signed-off-by: Bill Pemberton wf...@virginia.edu
Cc: Benjamin Herrenschmidt b...@kernel.crashing.org 
Cc: linuxppc-dev@lists.ozlabs.org 
---
 drivers/macintosh/macio_asic.c |  2 +-
 drivers/macintosh/mediabay.c   |  2 +-
 drivers/macintosh/rack-meter.c |  6 +++---
 drivers/macintosh/windfarm_ad7417_sensor.c |  8 
 drivers/macintosh/windfarm_fcu_controls.c  | 14 +++---
 5 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/drivers/macintosh/macio_asic.c b/drivers/macintosh/macio_asic.c
index ef87310..2cdbd47 100644
--- a/drivers/macintosh/macio_asic.c
+++ b/drivers/macintosh/macio_asic.c
@@ -679,7 +679,7 @@ void macio_release_resources(struct macio_dev *dev)
 
 #ifdef CONFIG_PCI
 
-static int __devinit macio_pci_probe(struct pci_dev *pdev, const struct 
pci_device_id *ent)
+static int macio_pci_probe(struct pci_dev *pdev, const struct pci_device_id 
*ent)
 {
struct device_node* np;
struct macio_chip* chip;
diff --git a/drivers/macintosh/mediabay.c b/drivers/macintosh/mediabay.c
index 3f8d032..7d2422a 100644
--- a/drivers/macintosh/mediabay.c
+++ b/drivers/macintosh/mediabay.c
@@ -556,7 +556,7 @@ static int media_bay_task(void *x)
return 0;
 }
 
-static int __devinit media_bay_attach(struct macio_dev *mdev, const struct 
of_device_id *match)
+static int media_bay_attach(struct macio_dev *mdev, const struct of_device_id 
*match)
 {
struct media_bay_info* bay;
u32 __iomem *regbase;
diff --git a/drivers/macintosh/rack-meter.c b/drivers/macintosh/rack-meter.c
index 18cd177..3b4453f 100644
--- a/drivers/macintosh/rack-meter.c
+++ b/drivers/macintosh/rack-meter.c
@@ -253,7 +253,7 @@ static void rackmeter_do_timer(struct work_struct *work)
 msecs_to_jiffies(CPU_SAMPLING_RATE));
 }
 
-static void __devinit rackmeter_init_cpu_sniffer(struct rackmeter *rm)
+static void rackmeter_init_cpu_sniffer(struct rackmeter *rm)
 {
unsigned int cpu;
 
@@ -287,7 +287,7 @@ static void rackmeter_stop_cpu_sniffer(struct rackmeter *rm)
cancel_delayed_work_sync(rm-cpu[1].sniffer);
 }
 
-static int __devinit rackmeter_setup(struct rackmeter *rm)
+static int rackmeter_setup(struct rackmeter *rm)
 {
pr_debug(rackmeter: setting up i2s..\n);
rackmeter_setup_i2s(rm);
@@ -362,7 +362,7 @@ static irqreturn_t rackmeter_irq(int irq, void *arg)
return IRQ_HANDLED;
 }
 
-static int __devinit rackmeter_probe(struct macio_dev* mdev,
+static int rackmeter_probe(struct macio_dev* mdev,
 const struct of_device_id *match)
 {
struct device_node *i2s = NULL, *np = NULL;
diff --git a/drivers/macintosh/windfarm_ad7417_sensor.c 
b/drivers/macintosh/windfarm_ad7417_sensor.c
index ac3f243..d0aa631 100644
--- a/drivers/macintosh/windfarm_ad7417_sensor.c
+++ b/drivers/macintosh/windfarm_ad7417_sensor.c
@@ -177,7 +177,7 @@ static const struct wf_sensor_ops wf_ad7417_adc_ops = {
.owner  = THIS_MODULE,
 };
 
-static void __devinit wf_ad7417_add_sensor(struct wf_ad7417_priv *pv,
+static void wf_ad7417_add_sensor(struct wf_ad7417_priv *pv,
   int index, const char *name,
   const struct wf_sensor_ops *ops)
 {
@@ -188,7 +188,7 @@ static void __devinit wf_ad7417_add_sensor(struct 
wf_ad7417_priv *pv,
kref_get(pv-ref);
 }
 
-static void __devinit wf_ad7417_init_chip(struct wf_ad7417_priv *pv)
+static void wf_ad7417_init_chip(struct wf_ad7417_priv *pv)
 {
int rc;
u8 buf[2];
@@ -230,7 +230,7 @@ static void __devinit wf_ad7417_init_chip(struct 
wf_ad7417_priv *pv)
pv-config = config;
 }
 
-static int __devinit wf_ad7417_probe(struct i2c_client *client,
+static int wf_ad7417_probe(struct i2c_client *client,
 const struct i2c_device_id *id)
 {
struct wf_ad7417_priv *pv;
@@ -322,7 +322,7 @@ static struct i2c_driver wf_ad7417_driver = {
.id_table   = wf_ad7417_id,
 };
 
-static int __devinit wf_ad7417_init(void)
+static int wf_ad7417_init(void)
 {
/* This is only supported on these machines */
if (!of_machine_is_compatible(PowerMac7,2) 
diff --git a/drivers/macintosh/windfarm_fcu_controls.c 
b/drivers/macintosh/windfarm_fcu_controls.c
index fd6ed15..84354d5 100644
--- a/drivers/macintosh/windfarm_fcu_controls.c
+++ b/drivers/macintosh/windfarm_fcu_controls.c
@@ -282,7 +282,7 @@ static const struct wf_control_ops wf_fcu_fan_pwm_ops = {
.owner  = THIS_MODULE,
 };
 
-static void __devinit wf_fcu_get_pump_minmax(struct wf_fcu_fan *fan)
+static void wf_fcu_get_pump_minmax(struct wf_fcu_fan *fan)
 {
const struct mpu_data *mpu = wf_get_mpu(0);
u16 pump_min = 0, pump_max = 0x;
@@ -317,7 +317,7 @@ static void __devinit wf_fcu_get_pump_minmax(struct 

[PATCH 117/493] tty: remove use of __devexit_p

2012-11-19 Thread Bill Pemberton
CONFIG_HOTPLUG is going away as an option so __devexit_p is no longer
needed.

Signed-off-by: Bill Pemberton wf...@virginia.edu
Cc: Jiri Slaby jirisl...@gmail.com 
Cc: linuxppc-dev@lists.ozlabs.org 
---
 drivers/tty/cyclades.c | 2 +-
 drivers/tty/hvc/hvc_opal.c | 2 +-
 drivers/tty/hvc/hvcs.c | 2 +-
 drivers/tty/isicom.c   | 2 +-
 drivers/tty/moxa.c | 2 +-
 drivers/tty/mxser.c| 2 +-
 drivers/tty/nozomi.c   | 2 +-
 drivers/tty/synclink.c | 2 +-
 drivers/tty/synclink_gt.c  | 2 +-
 drivers/tty/synclinkmp.c   | 2 +-
 10 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/drivers/tty/cyclades.c b/drivers/tty/cyclades.c
index 0a6a0bc..0244acf 100644
--- a/drivers/tty/cyclades.c
+++ b/drivers/tty/cyclades.c
@@ -3971,7 +3971,7 @@ static struct pci_driver cy_pci_driver = {
.name = cyclades,
.id_table = cy_pci_dev_id,
.probe = cy_pci_probe,
-   .remove = __devexit_p(cy_pci_remove)
+   .remove = cy_pci_remove
 };
 #endif
 
diff --git a/drivers/tty/hvc/hvc_opal.c b/drivers/tty/hvc/hvc_opal.c
index a4f488f..f39337f 100644
--- a/drivers/tty/hvc/hvc_opal.c
+++ b/drivers/tty/hvc/hvc_opal.c
@@ -239,7 +239,7 @@ static int __devexit hvc_opal_remove(struct platform_device 
*dev)
 
 static struct platform_driver hvc_opal_driver = {
.probe  = hvc_opal_probe,
-   .remove = __devexit_p(hvc_opal_remove),
+   .remove = hvc_opal_remove,
.driver = {
.name   = hvc_opal_name,
.owner  = THIS_MODULE,
diff --git a/drivers/tty/hvc/hvcs.c b/drivers/tty/hvc/hvcs.c
index 744c3b8..888af58 100644
--- a/drivers/tty/hvc/hvcs.c
+++ b/drivers/tty/hvc/hvcs.c
@@ -874,7 +874,7 @@ static int __devexit hvcs_remove(struct vio_dev *dev)
 static struct vio_driver hvcs_vio_driver = {
.id_table   = hvcs_driver_table,
.probe  = hvcs_probe,
-   .remove = __devexit_p(hvcs_remove),
+   .remove = hvcs_remove,
.name   = hvcs_driver_name,
 };
 
diff --git a/drivers/tty/isicom.c b/drivers/tty/isicom.c
index d7492e1..4775747 100644
--- a/drivers/tty/isicom.c
+++ b/drivers/tty/isicom.c
@@ -168,7 +168,7 @@ static struct pci_driver isicom_driver = {
.name   = isicom,
.id_table   = isicom_pci_tbl,
.probe  = isicom_probe,
-   .remove = __devexit_p(isicom_remove)
+   .remove = isicom_remove
 };
 
 static int prev_card = 3;  /*  start servicing isi_card[0] */
diff --git a/drivers/tty/moxa.c b/drivers/tty/moxa.c
index 56e616b..c2d0cc3 100644
--- a/drivers/tty/moxa.c
+++ b/drivers/tty/moxa.c
@@ -1029,7 +1029,7 @@ static struct pci_driver moxa_pci_driver = {
.name = moxa,
.id_table = moxa_pcibrds,
.probe = moxa_pci_probe,
-   .remove = __devexit_p(moxa_pci_remove)
+   .remove = moxa_pci_remove
 };
 #endif /* CONFIG_PCI */
 
diff --git a/drivers/tty/mxser.c b/drivers/tty/mxser.c
index cfda47d..f026797 100644
--- a/drivers/tty/mxser.c
+++ b/drivers/tty/mxser.c
@@ -2666,7 +2666,7 @@ static struct pci_driver mxser_driver = {
.name = mxser,
.id_table = mxser_pcibrds,
.probe = mxser_probe,
-   .remove = __devexit_p(mxser_remove)
+   .remove = mxser_remove
 };
 
 static int __init mxser_module_init(void)
diff --git a/drivers/tty/nozomi.c b/drivers/tty/nozomi.c
index b917c94..dc0213e 100644
--- a/drivers/tty/nozomi.c
+++ b/drivers/tty/nozomi.c
@@ -1903,7 +1903,7 @@ static struct pci_driver nozomi_driver = {
.name = NOZOMI_NAME,
.id_table = nozomi_pci_tbl,
.probe = nozomi_card_init,
-   .remove = __devexit_p(nozomi_card_exit),
+   .remove = nozomi_card_exit,
 };
 
 static __init int nozomi_init(void)
diff --git a/drivers/tty/synclink.c b/drivers/tty/synclink.c
index 70e3a52..65b8669 100644
--- a/drivers/tty/synclink.c
+++ b/drivers/tty/synclink.c
@@ -898,7 +898,7 @@ static struct pci_driver synclink_pci_driver = {
.name   = synclink,
.id_table   = synclink_pci_tbl,
.probe  = synclink_init_one,
-   .remove = __devexit_p(synclink_remove_one),
+   .remove = synclink_remove_one,
 };
 
 static struct tty_driver *serial_driver;
diff --git a/drivers/tty/synclink_gt.c b/drivers/tty/synclink_gt.c
index b38e954..28a2ccf 100644
--- a/drivers/tty/synclink_gt.c
+++ b/drivers/tty/synclink_gt.c
@@ -110,7 +110,7 @@ static struct pci_driver pci_driver = {
.name   = synclink_gt,
.id_table   = pci_table,
.probe  = init_one,
-   .remove = __devexit_p(remove_one),
+   .remove = remove_one,
 };
 
 static bool pci_registered;
diff --git a/drivers/tty/synclinkmp.c b/drivers/tty/synclinkmp.c
index f17d9f3..3e56e1e 100644
--- a/drivers/tty/synclinkmp.c
+++ b/drivers/tty/synclinkmp.c
@@ -492,7 +492,7 @@ static struct pci_driver synclinkmp_pci_driver = {
.name  

[PATCH 344/493] powerpc: remove use of __devinitdata

2012-11-19 Thread Bill Pemberton
CONFIG_HOTPLUG is going away as an option so __devinitdata is no
longer needed.

Signed-off-by: Bill Pemberton wf...@virginia.edu
Cc: Kumar Gala ga...@kernel.crashing.org 
Cc: Grant Likely grant.lik...@secretlab.ca 
Cc: Rob Herring rob.herr...@calxeda.com 
Cc: linuxppc-dev@lists.ozlabs.org 
Cc: devicetree-disc...@lists.ozlabs.org 
---
 arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c | 2 +-
 arch/powerpc/sysdev/bestcomm/bestcomm.c| 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c 
b/arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c
index 712a436..e4be690 100644
--- a/arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c
+++ b/arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c
@@ -216,7 +216,7 @@ static const struct i2c_device_id mcu_ids[] = {
 };
 MODULE_DEVICE_TABLE(i2c, mcu_ids);
 
-static struct of_device_id mcu_of_match_table[] __devinitdata = {
+static struct of_device_id mcu_of_match_table[] = {
{ .compatible = fsl,mcu-mpc8349emitx, },
{ },
 };
diff --git a/arch/powerpc/sysdev/bestcomm/bestcomm.c 
b/arch/powerpc/sysdev/bestcomm/bestcomm.c
index 4c15b19..d913063 100644
--- a/arch/powerpc/sysdev/bestcomm/bestcomm.c
+++ b/arch/powerpc/sysdev/bestcomm/bestcomm.c
@@ -30,7 +30,7 @@
 #define DRIVER_NAME bestcomm-core
 
 /* MPC5200 device tree match tables */
-static struct of_device_id mpc52xx_sram_ids[] __devinitdata = {
+static struct of_device_id mpc52xx_sram_ids[] = {
{ .compatible = fsl,mpc5200-sram, },
{ .compatible = mpc5200-sram, },
{}
-- 
1.8.0

___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev


[PATCH 382/493] powerpc: remove use of __devinitconst

2012-11-19 Thread Bill Pemberton
CONFIG_HOTPLUG is going away as an option so __devinitconst is no
longer needed.

Signed-off-by: Bill Pemberton wf...@virginia.edu
Cc: Anatolij Gustschin ag...@denx.de 
Cc: Kumar Gala ga...@kernel.crashing.org 
Cc: linuxppc-dev@lists.ozlabs.org 
---
 arch/powerpc/kernel/io-workarounds.c  | 2 +-
 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c | 2 +-
 arch/powerpc/platforms/85xx/corenet_ds.c  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/powerpc/kernel/io-workarounds.c 
b/arch/powerpc/kernel/io-workarounds.c
index 34b909c..b6a37a9 100644
--- a/arch/powerpc/kernel/io-workarounds.c
+++ b/arch/powerpc/kernel/io-workarounds.c
@@ -118,7 +118,7 @@ static void iowa_##name at  
\
 #undef DEF_PCI_AC_RET
 #undef DEF_PCI_AC_NORET
 
-static const struct ppc_pci_io __devinitconst iowa_pci_io = {
+static const struct ppc_pci_io iowa_pci_io = {
 
 #define DEF_PCI_AC_RET(name, ret, at, al, space, aa)   .name = iowa_##name,
 #define DEF_PCI_AC_NORET(name, at, al, space, aa)  .name = iowa_##name,
diff --git a/arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c 
b/arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c
index b89e02f..a055991 100644
--- a/arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c
+++ b/arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c
@@ -564,7 +564,7 @@ static int __devexit mpc52xx_lpbfifo_remove(struct 
platform_device *op)
return 0;
 }
 
-static struct of_device_id mpc52xx_lpbfifo_match[] __devinitconst = {
+static struct of_device_id mpc52xx_lpbfifo_match[] = {
{ .compatible = fsl,mpc5200-lpbfifo, },
{},
 };
diff --git a/arch/powerpc/platforms/85xx/corenet_ds.c 
b/arch/powerpc/platforms/85xx/corenet_ds.c
index ed69c92..6f355d8 100644
--- a/arch/powerpc/platforms/85xx/corenet_ds.c
+++ b/arch/powerpc/platforms/85xx/corenet_ds.c
@@ -64,7 +64,7 @@ void __init corenet_ds_setup_arch(void)
pr_info(%s board from Freescale Semiconductor\n, ppc_md.name);
 }
 
-static const struct of_device_id of_device_ids[] __devinitconst = {
+static const struct of_device_id of_device_ids[] = {
{
.compatible = simple-bus
},
-- 
1.8.0

___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev


[PATCH 443/493] drivers/macintosh: remove use of __devexit

2012-11-19 Thread Bill Pemberton
CONFIG_HOTPLUG is going away as an option so __devexit is no
longer needed.

Signed-off-by: Bill Pemberton wf...@virginia.edu
Cc: Benjamin Herrenschmidt b...@kernel.crashing.org 
Cc: linuxppc-dev@lists.ozlabs.org 
---
 drivers/macintosh/macio_asic.c | 2 +-
 drivers/macintosh/rack-meter.c | 2 +-
 drivers/macintosh/windfarm_ad7417_sensor.c | 4 ++--
 drivers/macintosh/windfarm_fcu_controls.c  | 2 +-
 drivers/macintosh/windfarm_pm112.c | 2 +-
 drivers/macintosh/windfarm_pm121.c | 2 +-
 drivers/macintosh/windfarm_pm72.c  | 2 +-
 drivers/macintosh/windfarm_pm81.c  | 2 +-
 drivers/macintosh/windfarm_pm91.c  | 2 +-
 drivers/macintosh/windfarm_rm31.c  | 2 +-
 10 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/drivers/macintosh/macio_asic.c b/drivers/macintosh/macio_asic.c
index 31617fd..ac5c879 100644
--- a/drivers/macintosh/macio_asic.c
+++ b/drivers/macintosh/macio_asic.c
@@ -739,7 +739,7 @@ static int macio_pci_probe(struct pci_dev *pdev, const 
struct pci_device_id *ent
return 0;
 }
 
-static void __devexit macio_pci_remove(struct pci_dev* pdev)
+static void macio_pci_remove(struct pci_dev* pdev)
 {
panic(removing of macio-asic not supported !\n);
 }
diff --git a/drivers/macintosh/rack-meter.c b/drivers/macintosh/rack-meter.c
index 3b4453f..19c689c 100644
--- a/drivers/macintosh/rack-meter.c
+++ b/drivers/macintosh/rack-meter.c
@@ -521,7 +521,7 @@ static int rackmeter_probe(struct macio_dev* mdev,
return rc;
 }
 
-static int __devexit rackmeter_remove(struct macio_dev* mdev)
+static int rackmeter_remove(struct macio_dev* mdev)
 {
struct rackmeter *rm = dev_get_drvdata(mdev-ofdev.dev);
 
diff --git a/drivers/macintosh/windfarm_ad7417_sensor.c 
b/drivers/macintosh/windfarm_ad7417_sensor.c
index d0aa631..0835217 100644
--- a/drivers/macintosh/windfarm_ad7417_sensor.c
+++ b/drivers/macintosh/windfarm_ad7417_sensor.c
@@ -290,7 +290,7 @@ static int wf_ad7417_probe(struct i2c_client *client,
return 0;
 }
 
-static int __devexit wf_ad7417_remove(struct i2c_client *client)
+static int wf_ad7417_remove(struct i2c_client *client)
 {
struct wf_ad7417_priv *pv = dev_get_drvdata(client-dev);
int i;
@@ -333,7 +333,7 @@ static int wf_ad7417_init(void)
return i2c_add_driver(wf_ad7417_driver);
 }
 
-static void __devexit wf_ad7417_exit(void)
+static void wf_ad7417_exit(void)
 {
i2c_del_driver(wf_ad7417_driver);
 }
diff --git a/drivers/macintosh/windfarm_fcu_controls.c 
b/drivers/macintosh/windfarm_fcu_controls.c
index 84354d5..ec41083 100644
--- a/drivers/macintosh/windfarm_fcu_controls.c
+++ b/drivers/macintosh/windfarm_fcu_controls.c
@@ -564,7 +564,7 @@ static int wf_fcu_probe(struct i2c_client *client,
return 0;
 }
 
-static int __devexit wf_fcu_remove(struct i2c_client *client)
+static int wf_fcu_remove(struct i2c_client *client)
 {
struct wf_fcu_priv *pv = dev_get_drvdata(client-dev);
struct wf_fcu_fan *fan;
diff --git a/drivers/macintosh/windfarm_pm112.c 
b/drivers/macintosh/windfarm_pm112.c
index 54ac434..35ef6e2 100644
--- a/drivers/macintosh/windfarm_pm112.c
+++ b/drivers/macintosh/windfarm_pm112.c
@@ -656,7 +656,7 @@ static int wf_pm112_probe(struct platform_device *dev)
return 0;
 }
 
-static int __devexit wf_pm112_remove(struct platform_device *dev)
+static int wf_pm112_remove(struct platform_device *dev)
 {
wf_unregister_client(pm112_events);
/* should release all sensors and controls */
diff --git a/drivers/macintosh/windfarm_pm121.c 
b/drivers/macintosh/windfarm_pm121.c
index ec0ec67..af605e9 100644
--- a/drivers/macintosh/windfarm_pm121.c
+++ b/drivers/macintosh/windfarm_pm121.c
@@ -987,7 +987,7 @@ static int pm121_probe(struct platform_device *ddev)
return 0;
 }
 
-static int __devexit pm121_remove(struct platform_device *ddev)
+static int pm121_remove(struct platform_device *ddev)
 {
wf_unregister_client(pm121_events);
return 0;
diff --git a/drivers/macintosh/windfarm_pm72.c 
b/drivers/macintosh/windfarm_pm72.c
index 84ac913..6e55853 100644
--- a/drivers/macintosh/windfarm_pm72.c
+++ b/drivers/macintosh/windfarm_pm72.c
@@ -776,7 +776,7 @@ static int wf_pm72_probe(struct platform_device *dev)
return 0;
 }
 
-static int __devexit wf_pm72_remove(struct platform_device *dev)
+static int wf_pm72_remove(struct platform_device *dev)
 {
wf_unregister_client(pm72_events);
 
diff --git a/drivers/macintosh/windfarm_pm81.c 
b/drivers/macintosh/windfarm_pm81.c
index 92ba8f5..a67d5dd 100644
--- a/drivers/macintosh/windfarm_pm81.c
+++ b/drivers/macintosh/windfarm_pm81.c
@@ -720,7 +720,7 @@ static int wf_smu_probe(struct platform_device *ddev)
return 0;
 }
 
-static int __devexit wf_smu_remove(struct platform_device *ddev)
+static int wf_smu_remove(struct platform_device *ddev)
 {
wf_unregister_client(wf_smu_events);
 
diff --git a/drivers/macintosh/windfarm_pm91.c 

[PATCH 119/493] usb: remove use of __devexit_p

2012-11-19 Thread Bill Pemberton
CONFIG_HOTPLUG is going away as an option so __devexit_p is no longer
needed.

Signed-off-by: Bill Pemberton wf...@virginia.edu
Cc: Peter Korsgaard jac...@sunsite.dk 
Cc: Alexander Shishkin alexander.shish...@linux.intel.com 
Cc: Felipe Balbi ba...@ti.com 
Cc: Li Yang le...@freescale.com 
Cc: Alan Stern st...@rowland.harvard.edu 
Cc: Wan ZongShun mcuos@gmail.com 
Cc: Ben Dooks ben-li...@fluff.org 
Cc: Kukjin Kim kgene@samsung.com 
Cc: linux-...@vger.kernel.org 
Cc: linux-o...@vger.kernel.org 
Cc: linuxppc-dev@lists.ozlabs.org 
Cc: linux-arm-ker...@lists.infradead.org 
Cc: linux-samsung-...@vger.kernel.org 
---
 drivers/usb/c67x00/c67x00-drv.c  | 2 +-
 drivers/usb/chipidea/ci13xxx_imx.c   | 2 +-
 drivers/usb/chipidea/ci13xxx_msm.c   | 2 +-
 drivers/usb/chipidea/ci13xxx_pci.c   | 2 +-
 drivers/usb/chipidea/core.c  | 2 +-
 drivers/usb/chipidea/usbmisc_imx6q.c | 2 +-
 drivers/usb/dwc3/core.c  | 2 +-
 drivers/usb/dwc3/dwc3-exynos.c   | 2 +-
 drivers/usb/dwc3/dwc3-omap.c | 2 +-
 drivers/usb/dwc3/dwc3-pci.c  | 2 +-
 drivers/usb/gadget/bcm63xx_udc.c | 2 +-
 drivers/usb/gadget/fsl_qe_udc.c  | 2 +-
 drivers/usb/gadget/hid.c | 2 +-
 drivers/usb/gadget/lpc32xx_udc.c | 2 +-
 drivers/usb/gadget/net2272.c | 4 ++--
 drivers/usb/gadget/omap_udc.c| 2 +-
 drivers/usb/gadget/s3c-hsotg.c   | 2 +-
 drivers/usb/host/bcma-hcd.c  | 2 +-
 drivers/usb/host/ehci-atmel.c| 2 +-
 drivers/usb/host/ehci-msm.c  | 2 +-
 drivers/usb/host/ehci-platform.c | 2 +-
 drivers/usb/host/ehci-s5p.c  | 2 +-
 drivers/usb/host/ehci-w90x900.c  | 2 +-
 drivers/usb/host/fhci-hcd.c  | 2 +-
 drivers/usb/host/fsl-mph-dr-of.c | 2 +-
 drivers/usb/host/isp1362-hcd.c   | 2 +-
 drivers/usb/host/isp1760-if.c| 2 +-
 drivers/usb/host/ohci-at91.c | 2 +-
 drivers/usb/host/ohci-exynos.c   | 2 +-
 drivers/usb/host/ohci-jz4740.c   | 2 +-
 drivers/usb/host/ohci-omap3.c| 2 +-
 drivers/usb/host/ohci-platform.c | 2 +-
 drivers/usb/host/ohci-s3c2410.c  | 2 +-
 drivers/usb/host/ohci-tmio.c | 2 +-
 drivers/usb/host/r8a66597-hcd.c  | 2 +-
 drivers/usb/host/sl811-hcd.c | 2 +-
 drivers/usb/host/ssb-hcd.c   | 2 +-
 drivers/usb/host/u132-hcd.c  | 2 +-
 drivers/usb/musb/am35x.c | 2 +-
 drivers/usb/musb/da8xx.c | 2 +-
 drivers/usb/musb/davinci.c   | 2 +-
 drivers/usb/musb/musb_core.c | 2 +-
 drivers/usb/musb/musb_dsps.c | 2 +-
 drivers/usb/musb/omap2430.c  | 2 +-
 drivers/usb/musb/tusb6010.c  | 2 +-
 drivers/usb/musb/ux500.c | 2 +-
 drivers/usb/otg/ab8500-usb.c | 2 +-
 drivers/usb/otg/fsl_otg.c| 2 +-
 drivers/usb/otg/msm_otg.c| 2 +-
 drivers/usb/otg/mxs-phy.c| 2 +-
 drivers/usb/otg/nop-usb-xceiv.c  | 2 +-
 drivers/usb/phy/mv_u3d_phy.c | 2 +-
 drivers/usb/phy/omap-usb2.c  | 2 +-
 drivers/usb/phy/rcar-phy.c   | 2 +-
 drivers/usb/renesas_usbhs/common.c   | 2 +-
 55 files changed, 56 insertions(+), 56 deletions(-)

diff --git a/drivers/usb/c67x00/c67x00-drv.c b/drivers/usb/c67x00/c67x00-drv.c
index 6f3b6e2..855d538 100644
--- a/drivers/usb/c67x00/c67x00-drv.c
+++ b/drivers/usb/c67x00/c67x00-drv.c
@@ -219,7 +219,7 @@ static int __devexit c67x00_drv_remove(struct 
platform_device *pdev)
 
 static struct platform_driver c67x00_driver = {
.probe  = c67x00_drv_probe,
-   .remove = __devexit_p(c67x00_drv_remove),
+   .remove = c67x00_drv_remove,
.driver = {
.owner = THIS_MODULE,
.name = c67x00,
diff --git a/drivers/usb/chipidea/ci13xxx_imx.c 
b/drivers/usb/chipidea/ci13xxx_imx.c
index 0f5ca4b..5659730 100644
--- a/drivers/usb/chipidea/ci13xxx_imx.c
+++ b/drivers/usb/chipidea/ci13xxx_imx.c
@@ -252,7 +252,7 @@ MODULE_DEVICE_TABLE(of, ci13xxx_imx_dt_ids);
 
 static struct platform_driver ci13xxx_imx_driver = {
.probe = ci13xxx_imx_probe,
-   .remove = __devexit_p(ci13xxx_imx_remove),
+   .remove = ci13xxx_imx_remove,
.driver = {
.name = imx_usb,
.owner = THIS_MODULE,
diff --git a/drivers/usb/chipidea/ci13xxx_msm.c 
b/drivers/usb/chipidea/ci13xxx_msm.c
index b01feb3..406c5af 100644
--- a/drivers/usb/chipidea/ci13xxx_msm.c
+++ b/drivers/usb/chipidea/ci13xxx_msm.c
@@ -89,7 +89,7 @@ static int __devexit ci13xxx_msm_remove(struct 
platform_device *pdev)
 
 static struct platform_driver ci13xxx_msm_driver = {
.probe = ci13xxx_msm_probe,
-   .remove = __devexit_p(ci13xxx_msm_remove),
+   .remove = ci13xxx_msm_remove,
.driver = { .name = msm_hsusb, },
 };
 
diff --git a/drivers/usb/chipidea/ci13xxx_pci.c 
b/drivers/usb/chipidea/ci13xxx_pci.c
index 918e149..e1cb2fb 100644
--- a/drivers/usb/chipidea/ci13xxx_pci.c
+++ b/drivers/usb/chipidea/ci13xxx_pci.c
@@ -147,7 +147,7 @@ static struct pci_driver 

[PATCH 295/493] tty: remove use of __devinitdata

2012-11-19 Thread Bill Pemberton
CONFIG_HOTPLUG is going away as an option so __devinitdata is no
longer needed.

Signed-off-by: Bill Pemberton wf...@virginia.edu
Cc: linuxppc-dev@lists.ozlabs.org 
---
 drivers/tty/hvc/hvcs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/tty/hvc/hvcs.c b/drivers/tty/hvc/hvcs.c
index 506a28e..5afe3b6 100644
--- a/drivers/tty/hvc/hvcs.c
+++ b/drivers/tty/hvc/hvcs.c
@@ -676,7 +676,7 @@ static int khvcsd(void *unused)
return 0;
 }
 
-static struct vio_device_id hvcs_driver_table[] __devinitdata= {
+static struct vio_device_id hvcs_driver_table[] = {
{serial-server, hvterm2},
{ ,  }
 };
-- 
1.8.0

___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev


[PATCH 373/493] drivers/macintosh: remove use of __devinitconst

2012-11-19 Thread Bill Pemberton
CONFIG_HOTPLUG is going away as an option so __devinitconst is no
longer needed.

Signed-off-by: Bill Pemberton wf...@virginia.edu
Cc: Benjamin Herrenschmidt b...@kernel.crashing.org 
Cc: linuxppc-dev@lists.ozlabs.org 
---
 drivers/macintosh/macio_asic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/macintosh/macio_asic.c b/drivers/macintosh/macio_asic.c
index 2cdbd47..31617fd 100644
--- a/drivers/macintosh/macio_asic.c
+++ b/drivers/macintosh/macio_asic.c
@@ -748,7 +748,7 @@ static void __devexit macio_pci_remove(struct pci_dev* pdev)
  * MacIO is matched against any Apple ID, it's probe() function
  * will then decide wether it applies or not
  */
-static const struct pci_device_id __devinitconst pci_ids[] = { {
+static const struct pci_device_id pci_ids[] = { {
.vendor = PCI_VENDOR_ID_APPLE,
.device = PCI_ANY_ID,
.subvendor  = PCI_ANY_ID,
-- 
1.8.0

___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev


[PATCH 244/493] ps3: remove use of __devinit

2012-11-19 Thread Bill Pemberton
CONFIG_HOTPLUG is going away as an option so __devinit is no longer
needed.

Signed-off-by: Bill Pemberton wf...@virginia.edu
Cc: Geoff Levand ge...@infradead.org 
Cc: linuxppc-dev@lists.ozlabs.org 
Cc: cbe-oss-...@lists.ozlabs.org 
---
 drivers/ps3/ps3-lpm.c | 2 +-
 drivers/ps3/ps3-sys-manager.c | 2 +-
 drivers/ps3/ps3av.c   | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/ps3/ps3-lpm.c b/drivers/ps3/ps3-lpm.c
index 643697f..b139b77 100644
--- a/drivers/ps3/ps3-lpm.c
+++ b/drivers/ps3/ps3-lpm.c
@@ -1185,7 +1185,7 @@ int ps3_lpm_close(void)
 }
 EXPORT_SYMBOL_GPL(ps3_lpm_close);
 
-static int __devinit ps3_lpm_probe(struct ps3_system_bus_device *dev)
+static int ps3_lpm_probe(struct ps3_system_bus_device *dev)
 {
dev_dbg(dev-core,  - %s:%u\n, __func__, __LINE__);
 
diff --git a/drivers/ps3/ps3-sys-manager.c b/drivers/ps3/ps3-sys-manager.c
index 1b98367..f2ab435 100644
--- a/drivers/ps3/ps3-sys-manager.c
+++ b/drivers/ps3/ps3-sys-manager.c
@@ -706,7 +706,7 @@ static void ps3_sys_manager_work(struct 
ps3_system_bus_device *dev)
ps3_vuart_read_async(dev, PS3_SM_RX_MSG_LEN_MIN);
 }
 
-static int __devinit ps3_sys_manager_probe(struct ps3_system_bus_device *dev)
+static int ps3_sys_manager_probe(struct ps3_system_bus_device *dev)
 {
int result;
struct ps3_sys_manager_ops ops;
diff --git a/drivers/ps3/ps3av.c b/drivers/ps3/ps3av.c
index 93d0a8b..437fc35 100644
--- a/drivers/ps3/ps3av.c
+++ b/drivers/ps3/ps3av.c
@@ -932,7 +932,7 @@ int ps3av_audio_mute(int mute)
 }
 EXPORT_SYMBOL_GPL(ps3av_audio_mute);
 
-static int __devinit ps3av_probe(struct ps3_system_bus_device *dev)
+static int ps3av_probe(struct ps3_system_bus_device *dev)
 {
int res;
int id;
-- 
1.8.0

___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev


[PATCH 247/493] drivers/block: remove use of __devinit

2012-11-19 Thread Bill Pemberton
CONFIG_HOTPLUG is going away as an option so __devinit is no longer
needed.

Signed-off-by: Bill Pemberton wf...@virginia.edu
Cc: Chirag Kantharia chirag.kantha...@hp.com 
Cc: Geoff Levand ge...@infradead.org 
Cc: Jim Paris j...@jtan.com 
Cc: Rusty Russell ru...@rustcorp.com.au 
Cc: Michael S. Tsirkin m...@redhat.com 
Cc: Grant Likely grant.lik...@secretlab.ca 
Cc: iss_storage...@hp.com 
Cc: linuxppc-dev@lists.ozlabs.org 
Cc: cbe-oss-...@lists.ozlabs.org 
Cc: virtualizat...@lists.linux-foundation.org 
---
 drivers/block/cciss.c  | 62 +++---
 drivers/block/cpqarray.c   |  6 ++---
 drivers/block/nvme.c   | 10 
 drivers/block/ps3disk.c|  2 +-
 drivers/block/ps3vram.c|  4 +--
 drivers/block/sunvdc.c |  6 ++---
 drivers/block/swim.c   |  6 ++---
 drivers/block/swim3.c  |  2 +-
 drivers/block/umem.c   |  2 +-
 drivers/block/virtio_blk.c |  4 +--
 drivers/block/xsysace.c|  6 ++---
 11 files changed, 55 insertions(+), 55 deletions(-)

diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c
index b40068f..3096c79 100644
--- a/drivers/block/cciss.c
+++ b/drivers/block/cciss.c
@@ -181,8 +181,8 @@ static void cciss_geometry_inquiry(ctlr_info_t *h, int 
logvol,
sector_t total_size,
unsigned int block_size, InquiryData_struct *inq_buff,
   drive_info_struct *drv);
-static void __devinit cciss_interrupt_mode(ctlr_info_t *);
-static int __devinit cciss_enter_simple_mode(struct ctlr_info *h);
+static void cciss_interrupt_mode(ctlr_info_t *);
+static int cciss_enter_simple_mode(struct ctlr_info *h);
 static void start_io(ctlr_info_t *h);
 static int sendcmd_withirq(ctlr_info_t *h, __u8 cmd, void *buff, size_t size,
__u8 page_code, unsigned char scsi3addr[],
@@ -199,13 +199,13 @@ static void cciss_device_release(struct device *dev);
 static void cciss_free_gendisk(ctlr_info_t *h, int drv_index);
 static void cciss_free_drive_info(ctlr_info_t *h, int drv_index);
 static inline u32 next_command(ctlr_info_t *h);
-static int __devinit cciss_find_cfg_addrs(struct pci_dev *pdev,
+static int cciss_find_cfg_addrs(struct pci_dev *pdev,
void __iomem *vaddr, u32 *cfg_base_addr, u64 *cfg_base_addr_index,
u64 *cfg_offset);
-static int __devinit cciss_pci_find_memory_BAR(struct pci_dev *pdev,
+static int cciss_pci_find_memory_BAR(struct pci_dev *pdev,
unsigned long *memory_bar);
 static inline u32 cciss_tag_discard_error_bits(ctlr_info_t *h, u32 tag);
-static __devinit int write_driver_ver_to_cfgtable(
+static int write_driver_ver_to_cfgtable(
CfgTable_struct __iomem *cfgtable);
 
 /* performant mode helper functions */
@@ -550,7 +550,7 @@ static const struct file_operations cciss_proc_fops = {
.write   = cciss_proc_write,
 };
 
-static void __devinit cciss_procinit(ctlr_info_t *h)
+static void cciss_procinit(ctlr_info_t *h)
 {
struct proc_dir_entry *pde;
 
@@ -2663,7 +2663,7 @@ static int fill_cmd(ctlr_info_t *h, CommandList_struct 
*c, __u8 cmd, void *buff,
return status;
 }
 
-static int __devinit cciss_send_reset(ctlr_info_t *h, unsigned char *scsi3addr,
+static int cciss_send_reset(ctlr_info_t *h, unsigned char *scsi3addr,
u8 reset_type)
 {
CommandList_struct *c;
@@ -3919,7 +3919,7 @@ static void  calc_bucket_map(int bucket[], int 
num_buckets,
}
 }
 
-static void __devinit cciss_wait_for_mode_change_ack(ctlr_info_t *h)
+static void cciss_wait_for_mode_change_ack(ctlr_info_t *h)
 {
int i;
 
@@ -3933,7 +3933,7 @@ static void __devinit 
cciss_wait_for_mode_change_ack(ctlr_info_t *h)
}
 }
 
-static __devinit void cciss_enter_performant_mode(ctlr_info_t *h,
+static void cciss_enter_performant_mode(ctlr_info_t *h,
u32 use_short_tags)
 {
/* This is a bit complicated.  There are 8 registers on
@@ -4000,7 +4000,7 @@ static __devinit void 
cciss_enter_performant_mode(ctlr_info_t *h,
 performant mode\n);
 }
 
-static void __devinit cciss_put_controller_into_performant_mode(ctlr_info_t *h)
+static void cciss_put_controller_into_performant_mode(ctlr_info_t *h)
 {
__u32 trans_support;
 
@@ -4062,7 +4062,7 @@ clean_up:
  * controllers that are capable. If not, we use IO-APIC mode.
  */
 
-static void __devinit cciss_interrupt_mode(ctlr_info_t *h)
+static void cciss_interrupt_mode(ctlr_info_t *h)
 {
 #ifdef CONFIG_PCI_MSI
int err;
@@ -4108,7 +4108,7 @@ default_int_mode:
return;
 }
 
-static int __devinit cciss_lookup_board_id(struct pci_dev *pdev, u32 *board_id)
+static int cciss_lookup_board_id(struct pci_dev *pdev, u32 *board_id)
 {
int i;
u32 subsystem_vendor_id, subsystem_device_id;
@@ -4134,7 +4134,7 @@ static inline bool cciss_board_disabled(ctlr_info_t *h)
return ((command  PCI_COMMAND_MEMORY) == 0);
 }
 
-static int __devinit 

[PATCH 415/493] mtd: remove use of __devexit

2012-11-19 Thread Bill Pemberton
CONFIG_HOTPLUG is going away as an option so __devexit is no
longer needed.

Signed-off-by: Bill Pemberton wf...@virginia.edu
Cc: David Woodhouse dw...@infradead.org 
Cc: Joern Engel jo...@lazybastard.org 
Cc: Wan ZongShun mcuos@gmail.com 
Cc: Olof Johansson o...@lixom.net 
Cc: Kyungmin Park kyungmin.p...@samsung.com 
Cc: linux-...@lists.infradead.org 
Cc: linux-arm-ker...@lists.infradead.org 
Cc: linuxppc-dev@lists.ozlabs.org 
---
 drivers/mtd/devices/bcm47xxsflash.c| 2 +-
 drivers/mtd/devices/block2mtd.c| 2 +-
 drivers/mtd/devices/m25p80.c   | 2 +-
 drivers/mtd/devices/mtd_dataflash.c| 2 +-
 drivers/mtd/devices/spear_smi.c| 2 +-
 drivers/mtd/devices/sst25l.c   | 2 +-
 drivers/mtd/maps/amd76xrom.c   | 2 +-
 drivers/mtd/maps/autcpu12-nvram.c  | 2 +-
 drivers/mtd/maps/bfin-async-flash.c| 2 +-
 drivers/mtd/maps/ck804xrom.c   | 2 +-
 drivers/mtd/maps/esb2rom.c | 2 +-
 drivers/mtd/maps/gpio-addr-flash.c | 2 +-
 drivers/mtd/maps/ichxrom.c | 2 +-
 drivers/mtd/maps/intel_vr_nor.c| 8 
 drivers/mtd/maps/lantiq-flash.c| 2 +-
 drivers/mtd/maps/pci.c | 2 +-
 drivers/mtd/maps/pismo.c   | 2 +-
 drivers/mtd/maps/pxa2xx-flash.c| 2 +-
 drivers/mtd/maps/scb2_flash.c  | 2 +-
 drivers/mtd/maps/sun_uflash.c  | 2 +-
 drivers/mtd/maps/vmu-flash.c   | 4 ++--
 drivers/mtd/nand/ams-delta.c   | 2 +-
 drivers/mtd/nand/au1550nd.c| 2 +-
 drivers/mtd/nand/bf5xx_nand.c  | 2 +-
 drivers/mtd/nand/cafe_nand.c   | 2 +-
 drivers/mtd/nand/denali_dt.c   | 2 +-
 drivers/mtd/nand/denali_pci.c  | 2 +-
 drivers/mtd/nand/fsl_upm.c | 2 +-
 drivers/mtd/nand/gpio.c| 2 +-
 drivers/mtd/nand/gpmi-nand/gpmi-nand.c | 2 +-
 drivers/mtd/nand/jz4740_nand.c | 2 +-
 drivers/mtd/nand/lpc32xx_mlc.c | 2 +-
 drivers/mtd/nand/lpc32xx_slc.c | 2 +-
 drivers/mtd/nand/mpc5121_nfc.c | 2 +-
 drivers/mtd/nand/mxc_nand.c| 2 +-
 drivers/mtd/nand/ndfc.c| 2 +-
 drivers/mtd/nand/nuc900_nand.c | 2 +-
 drivers/mtd/nand/orion_nand.c  | 2 +-
 drivers/mtd/nand/pasemi_nand.c | 2 +-
 drivers/mtd/nand/plat_nand.c   | 2 +-
 drivers/mtd/nand/sh_flctl.c| 2 +-
 drivers/mtd/nand/sharpsl.c | 2 +-
 drivers/mtd/nand/socrates_nand.c   | 2 +-
 drivers/mtd/onenand/generic.c  | 2 +-
 drivers/mtd/onenand/omap2.c| 2 +-
 drivers/mtd/onenand/samsung.c  | 2 +-
 46 files changed, 50 insertions(+), 50 deletions(-)

diff --git a/drivers/mtd/devices/bcm47xxsflash.c 
b/drivers/mtd/devices/bcm47xxsflash.c
index 113aced..4714584 100644
--- a/drivers/mtd/devices/bcm47xxsflash.c
+++ b/drivers/mtd/devices/bcm47xxsflash.c
@@ -66,7 +66,7 @@ out:
return err;
 }
 
-static int __devexit bcm47xxsflash_remove(struct platform_device *pdev)
+static int bcm47xxsflash_remove(struct platform_device *pdev)
 {
struct bcma_sflash *sflash = dev_get_platdata(pdev-dev);
 
diff --git a/drivers/mtd/devices/block2mtd.c b/drivers/mtd/devices/block2mtd.c
index 681e2ee..8debac9 100644
--- a/drivers/mtd/devices/block2mtd.c
+++ b/drivers/mtd/devices/block2mtd.c
@@ -433,7 +433,7 @@ static int __init block2mtd_init(void)
 }
 
 
-static void __devexit block2mtd_exit(void)
+static void block2mtd_exit(void)
 {
struct list_head *pos, *next;
 
diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c
index 700f991..4064dba 100644
--- a/drivers/mtd/devices/m25p80.c
+++ b/drivers/mtd/devices/m25p80.c
@@ -971,7 +971,7 @@ static int m25p_probe(struct spi_device *spi)
 }
 
 
-static int __devexit m25p_remove(struct spi_device *spi)
+static int m25p_remove(struct spi_device *spi)
 {
struct m25p *flash = dev_get_drvdata(spi-dev);
int status;
diff --git a/drivers/mtd/devices/mtd_dataflash.c 
b/drivers/mtd/devices/mtd_dataflash.c
index 0b3f173..0caefb4 100644
--- a/drivers/mtd/devices/mtd_dataflash.c
+++ b/drivers/mtd/devices/mtd_dataflash.c
@@ -897,7 +897,7 @@ static int dataflash_probe(struct spi_device *spi)
return status;
 }
 
-static int __devexit dataflash_remove(struct spi_device *spi)
+static int dataflash_remove(struct spi_device *spi)
 {
struct dataflash*flash = dev_get_drvdata(spi-dev);
int status;
diff --git a/drivers/mtd/devices/spear_smi.c b/drivers/mtd/devices/spear_smi.c
index a30cd27..2d2c2a5 100644
--- a/drivers/mtd/devices/spear_smi.c
+++ b/drivers/mtd/devices/spear_smi.c
@@ -1016,7 +1016,7 @@ err:
  *
  * free all allocations and delete the partitions.
  */
-static int __devexit spear_smi_remove(struct platform_device *pdev)
+static int spear_smi_remove(struct platform_device *pdev)
 {
struct spear_smi *dev;
struct spear_snor_flash *flash;
diff --git a/drivers/mtd/devices/sst25l.c 

[PATCH 486/493] powerpc: remove use of __devexit

2012-11-19 Thread Bill Pemberton
CONFIG_HOTPLUG is going away as an option so __devexit is no
longer needed.

Signed-off-by: Bill Pemberton wf...@virginia.edu
Cc: Anatolij Gustschin ag...@denx.de 
Cc: Kumar Gala ga...@kernel.crashing.org 
Cc: linuxppc-dev@lists.ozlabs.org 
---
 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c  | 2 +-
 arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c | 2 +-
 arch/powerpc/sysdev/fsl_85xx_l2ctlr.c  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c 
b/arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c
index a055991..1441b35 100644
--- a/arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c
+++ b/arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c
@@ -540,7 +540,7 @@ static int mpc52xx_lpbfifo_probe(struct platform_device *op)
 }
 
 
-static int __devexit mpc52xx_lpbfifo_remove(struct platform_device *op)
+static int mpc52xx_lpbfifo_remove(struct platform_device *op)
 {
if (lpbfifo.dev != op-dev)
return 0;
diff --git a/arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c 
b/arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c
index e4be690..5f33cc6 100644
--- a/arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c
+++ b/arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c
@@ -188,7 +188,7 @@ err:
return ret;
 }
 
-static int __devexit mcu_remove(struct i2c_client *client)
+static int mcu_remove(struct i2c_client *client)
 {
struct mcu *mcu = i2c_get_clientdata(client);
int ret;
diff --git a/arch/powerpc/sysdev/fsl_85xx_l2ctlr.c 
b/arch/powerpc/sysdev/fsl_85xx_l2ctlr.c
index d06bfa1..8cf93f0 100644
--- a/arch/powerpc/sysdev/fsl_85xx_l2ctlr.c
+++ b/arch/powerpc/sysdev/fsl_85xx_l2ctlr.c
@@ -160,7 +160,7 @@ static int mpc85xx_l2ctlr_of_probe(struct platform_device 
*dev)
return 0;
 }
 
-static int __devexit mpc85xx_l2ctlr_of_remove(struct platform_device *dev)
+static int mpc85xx_l2ctlr_of_remove(struct platform_device *dev)
 {
BUG_ON(!l2ctlr);
 
-- 
1.8.0

___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev


[PATCH 226/493] dma: remove use of __devinit

2012-11-19 Thread Bill Pemberton
CONFIG_HOTPLUG is going away as an option so __devinit is no longer
needed.

Signed-off-by: Bill Pemberton wf...@virginia.edu
Cc: Viresh Kumar viresh.li...@gmail.com 
Cc: Li Yang le...@freescale.com 
Cc: Zhang Wei z...@zh-kernel.org 
Cc: Barry Song baohua.s...@csr.com 
Cc: linuxppc-dev@lists.ozlabs.org 
Cc: linux-arm-ker...@lists.infradead.org 
---
 drivers/dma/dw_dmac.c | 4 ++--
 drivers/dma/edma.c| 2 +-
 drivers/dma/fsldma.c  | 4 ++--
 drivers/dma/intel_mid_dma.c   | 2 +-
 drivers/dma/iop-adma.c| 8 
 drivers/dma/mmp_pdma.c| 4 ++--
 drivers/dma/mmp_tdma.c| 4 ++--
 drivers/dma/mpc512x_dma.c | 2 +-
 drivers/dma/mv_xor.c  | 6 +++---
 drivers/dma/pch_dma.c | 2 +-
 drivers/dma/pl330.c   | 2 +-
 drivers/dma/ppc4xx/adma.c | 2 +-
 drivers/dma/sa11x0-dma.c  | 4 ++--
 drivers/dma/sh/shdma.c| 4 ++--
 drivers/dma/sirf-dma.c| 2 +-
 drivers/dma/tegra20-apb-dma.c | 2 +-
 drivers/dma/timb_dma.c| 2 +-
 17 files changed, 28 insertions(+), 28 deletions(-)

diff --git a/drivers/dma/dw_dmac.c b/drivers/dma/dw_dmac.c
index 67f6358..476e9c8 100644
--- a/drivers/dma/dw_dmac.c
+++ b/drivers/dma/dw_dmac.c
@@ -1502,7 +1502,7 @@ static void dw_dma_off(struct dw_dma *dw)
 
 #ifdef CONFIG_OF
 static struct dw_dma_platform_data *
-__devinit dw_dma_parse_dt(struct platform_device *pdev)
+dw_dma_parse_dt(struct platform_device *pdev)
 {
struct device_node *sn, *cn, *np = pdev-dev.of_node;
struct dw_dma_platform_data *pdata;
@@ -1585,7 +1585,7 @@ dw_dma_parse_dt(struct platform_device *pdev)
 }
 #endif
 
-static int __devinit dw_probe(struct platform_device *pdev)
+static int dw_probe(struct platform_device *pdev)
 {
struct dw_dma_platform_data *pdata;
struct resource *io;
diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c
index 5e5cce4..232b458 100644
--- a/drivers/dma/edma.c
+++ b/drivers/dma/edma.c
@@ -545,7 +545,7 @@ static void edma_dma_init(struct edma_cc *ecc, struct 
dma_device *dma,
INIT_LIST_HEAD(dma-channels);
 }
 
-static int __devinit edma_probe(struct platform_device *pdev)
+static int edma_probe(struct platform_device *pdev)
 {
struct edma_cc *ecc;
int ret;
diff --git a/drivers/dma/fsldma.c b/drivers/dma/fsldma.c
index 094437b..4fc2980 100644
--- a/drivers/dma/fsldma.c
+++ b/drivers/dma/fsldma.c
@@ -1221,7 +1221,7 @@ out_unwind:
 /* OpenFirmware Subsystem 
*/
 
/**/
 
-static int __devinit fsl_dma_chan_probe(struct fsldma_device *fdev,
+static int fsl_dma_chan_probe(struct fsldma_device *fdev,
struct device_node *node, u32 feature, const char *compatible)
 {
struct fsldma_chan *chan;
@@ -1324,7 +1324,7 @@ static void fsl_dma_chan_remove(struct fsldma_chan *chan)
kfree(chan);
 }
 
-static int __devinit fsldma_of_probe(struct platform_device *op)
+static int fsldma_of_probe(struct platform_device *op)
 {
struct fsldma_device *fdev;
struct device_node *child;
diff --git a/drivers/dma/intel_mid_dma.c b/drivers/dma/intel_mid_dma.c
index dffdeff..bc764af 100644
--- a/drivers/dma/intel_mid_dma.c
+++ b/drivers/dma/intel_mid_dma.c
@@ -1225,7 +1225,7 @@ static void middma_shutdown(struct pci_dev *pdev)
  * Initialize the PCI device, map BARs, query driver data.
  * Call setup_dma to complete contoller and chan initilzation
  */
-static int __devinit intel_mid_dma_probe(struct pci_dev *pdev,
+static int intel_mid_dma_probe(struct pci_dev *pdev,
const struct pci_device_id *id)
 {
struct middma_device *device;
diff --git a/drivers/dma/iop-adma.c b/drivers/dma/iop-adma.c
index 80d986a..62a59fd 100644
--- a/drivers/dma/iop-adma.c
+++ b/drivers/dma/iop-adma.c
@@ -968,7 +968,7 @@ static void iop_adma_issue_pending(struct dma_chan *chan)
  */
 #define IOP_ADMA_TEST_SIZE 2000
 
-static int __devinit iop_adma_memcpy_self_test(struct iop_adma_device *device)
+static int iop_adma_memcpy_self_test(struct iop_adma_device *device)
 {
int i;
void *src, *dest;
@@ -1042,7 +1042,7 @@ out:
 }
 
 #define IOP_ADMA_NUM_SRC_TEST 4 /* must be = 15 */
-static int __devinit
+static int
 iop_adma_xor_val_self_test(struct iop_adma_device *device)
 {
int i, src_idx;
@@ -1243,7 +1243,7 @@ out:
 }
 
 #ifdef CONFIG_RAID6_PQ
-static int __devinit
+static int
 iop_adma_pq_zero_sum_self_test(struct iop_adma_device *device)
 {
/* combined sources, software pq results, and extra hw pq results */
@@ -1429,7 +1429,7 @@ static int __devexit iop_adma_remove(struct 
platform_device *dev)
return 0;
 }
 
-static int __devinit iop_adma_probe(struct platform_device *pdev)
+static int iop_adma_probe(struct platform_device *pdev)
 {
struct resource *res;
int ret = 0, i;
diff --git a/drivers/dma/mmp_pdma.c b/drivers/dma/mmp_pdma.c

[PATCH 014/493] PCI: remove CONFIG_HOTPLUG ifdefs

2012-11-19 Thread Bill Pemberton
Remove conditional code based on CONFIG_HOTPLUG being false.  It's
always on now in preparation of it going away as an option.

Signed-off-by: Bill Pemberton wf...@virginia.edu
Cc: Guan Xuetao g...@mprc.pku.edu.cn 
Cc: microblaze-ucli...@itee.uq.edu.au 
Cc: linux-m...@linux-mips.org 
Cc: linuxppc-dev@lists.ozlabs.org 
Cc: linux...@vger.kernel.org 
Cc: linux-...@vger.kernel.org 
---
 arch/microblaze/pci/pci-common.c |  4 
 arch/mips/pci/pci.c  |  2 --
 arch/powerpc/kernel/pci-common.c |  4 
 arch/powerpc/kernel/pci_64.c |  4 
 arch/sh/drivers/pci/pci.c|  2 --
 arch/unicore32/kernel/pci.c  |  2 --
 drivers/pci/pci-driver.c | 15 ---
 drivers/pci/pci-sysfs.c  |  7 ---
 drivers/pci/pci.h|  4 
 drivers/pci/probe.c  |  2 --
 include/linux/pci.h  |  2 --
 11 files changed, 48 deletions(-)

diff --git a/arch/microblaze/pci/pci-common.c b/arch/microblaze/pci/pci-common.c
index 4dbb505..a1c5b99 100644
--- a/arch/microblaze/pci/pci-common.c
+++ b/arch/microblaze/pci/pci-common.c
@@ -1346,8 +1346,6 @@ void __init pcibios_resource_survey(void)
pci_assign_unassigned_resources();
 }
 
-#ifdef CONFIG_HOTPLUG
-
 /* This is used by the PCI hotplug driver to allocate resource
  * of newly plugged busses. We can try to consolidate with the
  * rest of the code later, for now, keep it as-is as our main
@@ -1407,8 +1405,6 @@ void pcibios_finish_adding_to_bus(struct pci_bus *bus)
 }
 EXPORT_SYMBOL_GPL(pcibios_finish_adding_to_bus);
 
-#endif /* CONFIG_HOTPLUG */
-
 int pcibios_enable_device(struct pci_dev *dev, int mask)
 {
return pci_enable_resources(dev, mask);
diff --git a/arch/mips/pci/pci.c b/arch/mips/pci/pci.c
index 04e35bc..4040416 100644
--- a/arch/mips/pci/pci.c
+++ b/arch/mips/pci/pci.c
@@ -313,10 +313,8 @@ void __devinit pcibios_fixup_bus(struct pci_bus *bus)
}
 }
 
-#ifdef CONFIG_HOTPLUG
 EXPORT_SYMBOL(PCIBIOS_MIN_IO);
 EXPORT_SYMBOL(PCIBIOS_MIN_MEM);
-#endif
 
 int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma,
enum pci_mmap_state mmap_state, int write_combine)
diff --git a/arch/powerpc/kernel/pci-common.c b/arch/powerpc/kernel/pci-common.c
index 7f94f76..abc0d08 100644
--- a/arch/powerpc/kernel/pci-common.c
+++ b/arch/powerpc/kernel/pci-common.c
@@ -1428,8 +1428,6 @@ void __init pcibios_resource_survey(void)
ppc_md.pcibios_fixup();
 }
 
-#ifdef CONFIG_HOTPLUG
-
 /* This is used by the PCI hotplug driver to allocate resource
  * of newly plugged busses. We can try to consolidate with the
  * rest of the code later, for now, keep it as-is as our main
@@ -1488,8 +1486,6 @@ void pcibios_finish_adding_to_bus(struct pci_bus *bus)
 }
 EXPORT_SYMBOL_GPL(pcibios_finish_adding_to_bus);
 
-#endif /* CONFIG_HOTPLUG */
-
 int pcibios_enable_device(struct pci_dev *dev, int mask)
 {
if (ppc_md.pcibios_enable_device_hook)
diff --git a/arch/powerpc/kernel/pci_64.c b/arch/powerpc/kernel/pci_64.c
index 4ff190f..2cbe676 100644
--- a/arch/powerpc/kernel/pci_64.c
+++ b/arch/powerpc/kernel/pci_64.c
@@ -74,8 +74,6 @@ static int __init pcibios_init(void)
 
 subsys_initcall(pcibios_init);
 
-#ifdef CONFIG_HOTPLUG
-
 int pcibios_unmap_io_space(struct pci_bus *bus)
 {
struct pci_controller *hose;
@@ -124,8 +122,6 @@ int pcibios_unmap_io_space(struct pci_bus *bus)
 }
 EXPORT_SYMBOL_GPL(pcibios_unmap_io_space);
 
-#endif /* CONFIG_HOTPLUG */
-
 static int __devinit pcibios_map_phb_io_space(struct pci_controller *hose)
 {
struct vm_struct *area;
diff --git a/arch/sh/drivers/pci/pci.c b/arch/sh/drivers/pci/pci.c
index a7e078f..81e5daf 100644
--- a/arch/sh/drivers/pci/pci.c
+++ b/arch/sh/drivers/pci/pci.c
@@ -319,7 +319,5 @@ EXPORT_SYMBOL(pci_iounmap);
 
 #endif /* CONFIG_GENERIC_IOMAP */
 
-#ifdef CONFIG_HOTPLUG
 EXPORT_SYMBOL(PCIBIOS_MIN_IO);
 EXPORT_SYMBOL(PCIBIOS_MIN_MEM);
-#endif
diff --git a/arch/unicore32/kernel/pci.c b/arch/unicore32/kernel/pci.c
index b0056f6..7c43592 100644
--- a/arch/unicore32/kernel/pci.c
+++ b/arch/unicore32/kernel/pci.c
@@ -250,9 +250,7 @@ void __devinit pcibios_fixup_bus(struct pci_bus *bus)
printk(KERN_INFO PCI: bus%d: Fast back to back transfers %sabled\n,
bus-number, (features  PCI_COMMAND_FAST_BACK) ? en : dis);
 }
-#ifdef CONFIG_HOTPLUG
 EXPORT_SYMBOL(pcibios_fixup_bus);
-#endif
 
 static int __init pci_common_init(void)
 {
diff --git a/drivers/pci/pci-driver.c b/drivers/pci/pci-driver.c
index 24aa44c..498e66a 100644
--- a/drivers/pci/pci-driver.c
+++ b/drivers/pci/pci-driver.c
@@ -89,10 +89,6 @@ static void pci_free_dynids(struct pci_driver *drv)
spin_unlock(drv-dynids.lock);
 }
 
-/*
- * Dynamic device ID manipulation via sysfs is disabled for !CONFIG_HOTPLUG
- */
-#ifdef CONFIG_HOTPLUG
 /**
  * store_new_id - sysfs frontend to pci_add_dynid()
  * @driver: target device driver
@@ -191,10 +187,6 @@ static struct driver_attribute pci_drv_attrs[] = {

[PATCH 238/493] mtd: remove use of __devinit

2012-11-19 Thread Bill Pemberton
CONFIG_HOTPLUG is going away as an option so __devinit is no longer
needed.

Signed-off-by: Bill Pemberton wf...@virginia.edu
Cc: David Woodhouse dw...@infradead.org 
Cc: Wan ZongShun mcuos@gmail.com 
Cc: Olof Johansson o...@lixom.net 
Cc: Kyungmin Park kyungmin.p...@samsung.com 
Cc: linux-...@lists.infradead.org 
Cc: linux-arm-ker...@lists.infradead.org 
Cc: linuxppc-dev@lists.ozlabs.org 
---
 drivers/mtd/devices/m25p80.c   |  4 ++--
 drivers/mtd/devices/mtd_dataflash.c|  8 
 drivers/mtd/devices/spear_smi.c|  6 +++---
 drivers/mtd/devices/sst25l.c   |  4 ++--
 drivers/mtd/maps/amd76xrom.c   |  2 +-
 drivers/mtd/maps/autcpu12-nvram.c  |  2 +-
 drivers/mtd/maps/bfin-async-flash.c|  2 +-
 drivers/mtd/maps/ck804xrom.c   |  2 +-
 drivers/mtd/maps/esb2rom.c |  2 +-
 drivers/mtd/maps/gpio-addr-flash.c |  2 +-
 drivers/mtd/maps/ichxrom.c |  2 +-
 drivers/mtd/maps/intel_vr_nor.c|  8 
 drivers/mtd/maps/lantiq-flash.c|  2 +-
 drivers/mtd/maps/latch-addr-flash.c|  2 +-
 drivers/mtd/maps/pci.c |  2 +-
 drivers/mtd/maps/physmap_of.c  |  8 
 drivers/mtd/maps/pismo.c   | 14 +++---
 drivers/mtd/maps/pxa2xx-flash.c|  2 +-
 drivers/mtd/maps/sa1100-flash.c|  5 ++---
 drivers/mtd/maps/scb2_flash.c  |  4 ++--
 drivers/mtd/maps/sun_uflash.c  |  2 +-
 drivers/mtd/maps/vmu-flash.c   |  4 ++--
 drivers/mtd/nand/ams-delta.c   |  2 +-
 drivers/mtd/nand/atmel_nand.c  | 12 ++--
 drivers/mtd/nand/au1550nd.c|  4 ++--
 drivers/mtd/nand/bf5xx_nand.c  |  4 ++--
 drivers/mtd/nand/cafe_nand.c   |  8 
 drivers/mtd/nand/denali_dt.c   |  2 +-
 drivers/mtd/nand/denali_pci.c  |  2 +-
 drivers/mtd/nand/fsl_elbc_nand.c   |  2 +-
 drivers/mtd/nand/fsl_ifc_nand.c|  2 +-
 drivers/mtd/nand/fsl_upm.c |  4 ++--
 drivers/mtd/nand/fsmc_nand.c   |  4 ++--
 drivers/mtd/nand/gpio.c|  2 +-
 drivers/mtd/nand/gpmi-nand/gpmi-nand.c | 16 
 drivers/mtd/nand/jz4740_nand.c |  4 ++--
 drivers/mtd/nand/lpc32xx_mlc.c |  2 +-
 drivers/mtd/nand/lpc32xx_slc.c |  2 +-
 drivers/mtd/nand/mpc5121_nfc.c |  2 +-
 drivers/mtd/nand/mxc_nand.c|  2 +-
 drivers/mtd/nand/ndfc.c|  2 +-
 drivers/mtd/nand/nuc900_nand.c |  2 +-
 drivers/mtd/nand/omap2.c   |  2 +-
 drivers/mtd/nand/pasemi_nand.c |  2 +-
 drivers/mtd/nand/plat_nand.c   |  2 +-
 drivers/mtd/nand/sh_flctl.c|  2 +-
 drivers/mtd/nand/sharpsl.c |  2 +-
 drivers/mtd/nand/socrates_nand.c   |  2 +-
 drivers/mtd/onenand/generic.c  |  2 +-
 drivers/mtd/onenand/omap2.c|  2 +-
 50 files changed, 92 insertions(+), 93 deletions(-)

diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c
index 9ffd3c5..700f991 100644
--- a/drivers/mtd/devices/m25p80.c
+++ b/drivers/mtd/devices/m25p80.c
@@ -754,7 +754,7 @@ static const struct spi_device_id m25p_ids[] = {
 };
 MODULE_DEVICE_TABLE(spi, m25p_ids);
 
-static const struct spi_device_id *__devinit jedec_probe(struct spi_device 
*spi)
+static const struct spi_device_id *jedec_probe(struct spi_device *spi)
 {
int tmp;
u8  code = OPCODE_RDID;
@@ -799,7 +799,7 @@ static const struct spi_device_id *__devinit 
jedec_probe(struct spi_device *spi)
  * matches what the READ command supports, at least until this driver
  * understands FAST_READ (for clocks over 25 MHz).
  */
-static int __devinit m25p_probe(struct spi_device *spi)
+static int m25p_probe(struct spi_device *spi)
 {
const struct spi_device_id  *id = spi_get_device_id(spi);
struct flash_platform_data  *data;
diff --git a/drivers/mtd/devices/mtd_dataflash.c 
b/drivers/mtd/devices/mtd_dataflash.c
index 23ccc36..080cb1c 100644
--- a/drivers/mtd/devices/mtd_dataflash.c
+++ b/drivers/mtd/devices/mtd_dataflash.c
@@ -618,7 +618,7 @@ static char *otp_setup(struct mtd_info *device, char 
revision)
 /*
  * Register DataFlash device with MTD subsystem.
  */
-static int __devinit
+static int
 add_dataflash_otp(struct spi_device *spi, char *name,
int nr_pages, int pagesize, int pageoffset, char revision)
 {
@@ -679,7 +679,7 @@ add_dataflash_otp(struct spi_device *spi, char *name,
return err;
 }
 
-static inline int __devinit
+static inline int
 add_dataflash(struct spi_device *spi, char *name,
int nr_pages, int pagesize, int pageoffset)
 {
@@ -740,7 +740,7 @@ static struct flash_info __devinitdata dataflash_data [] = {
{ at45db642d,  0x1f2800, 8192, 1024, 10, SUP_POW2PS | IS_POW2PS},
 };
 
-static struct flash_info *__devinit jedec_probe(struct spi_device *spi)
+static struct flash_info *jedec_probe(struct spi_device *spi)
 {

[PATCH 056/493] edac: remove use of __devexit_p

2012-11-19 Thread Bill Pemberton
CONFIG_HOTPLUG is going away as an option so __devexit_p is no longer
needed.

Signed-off-by: Bill Pemberton wf...@virginia.edu
Cc: Doug Thompson dougthomp...@xmission.com 
Cc: Borislav Petkov b...@alien8.de 
Cc: Mark Gross mark.gr...@intel.com 
Cc: Jason Uhlenkott juhle...@akamai.com 
Cc: Mauro Carvalho Chehab mche...@redhat.com 
Cc: Tim Small t...@buttersideup.com 
Cc: Ranganathan Desikan r...@jetztechnologies.com 
Cc: Arvind R. arvin...@gmail.com 
Cc: Egor Martovetsky e...@pasemi.com 
Cc: Olof Johansson o...@lixom.net 
Cc: linux-e...@vger.kernel.org 
Cc: linuxppc-dev@lists.ozlabs.org 
---
 drivers/edac/amd64_edac.c  | 2 +-
 drivers/edac/amd76x_edac.c | 2 +-
 drivers/edac/cell_edac.c   | 2 +-
 drivers/edac/e752x_edac.c  | 2 +-
 drivers/edac/e7xxx_edac.c  | 2 +-
 drivers/edac/i3000_edac.c  | 2 +-
 drivers/edac/i3200_edac.c  | 2 +-
 drivers/edac/i5000_edac.c  | 2 +-
 drivers/edac/i5100_edac.c  | 2 +-
 drivers/edac/i5400_edac.c  | 2 +-
 drivers/edac/i7300_edac.c  | 2 +-
 drivers/edac/i7core_edac.c | 2 +-
 drivers/edac/i82443bxgx_edac.c | 2 +-
 drivers/edac/i82860_edac.c | 2 +-
 drivers/edac/i82875p_edac.c| 2 +-
 drivers/edac/i82975x_edac.c| 2 +-
 drivers/edac/mv64x60_edac.c| 2 +-
 drivers/edac/pasemi_edac.c | 2 +-
 drivers/edac/r82600_edac.c | 2 +-
 drivers/edac/sb_edac.c | 2 +-
 drivers/edac/tile_edac.c   | 2 +-
 drivers/edac/x38_edac.c| 2 +-
 22 files changed, 22 insertions(+), 22 deletions(-)

diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c
index f74a684..c147e1e 100644
--- a/drivers/edac/amd64_edac.c
+++ b/drivers/edac/amd64_edac.c
@@ -2686,7 +2686,7 @@ MODULE_DEVICE_TABLE(pci, amd64_pci_table);
 static struct pci_driver amd64_pci_driver = {
.name   = EDAC_MOD_STR,
.probe  = amd64_probe_one_instance,
-   .remove = __devexit_p(amd64_remove_one_instance),
+   .remove = amd64_remove_one_instance,
.id_table   = amd64_pci_table,
 };
 
diff --git a/drivers/edac/amd76x_edac.c b/drivers/edac/amd76x_edac.c
index 29eeb68..0430c35 100644
--- a/drivers/edac/amd76x_edac.c
+++ b/drivers/edac/amd76x_edac.c
@@ -350,7 +350,7 @@ MODULE_DEVICE_TABLE(pci, amd76x_pci_tbl);
 static struct pci_driver amd76x_driver = {
.name = EDAC_MOD_STR,
.probe = amd76x_init_one,
-   .remove = __devexit_p(amd76x_remove_one),
+   .remove = amd76x_remove_one,
.id_table = amd76x_pci_tbl,
 };
 
diff --git a/drivers/edac/cell_edac.c b/drivers/edac/cell_edac.c
index a1bbd8e..b99bf19 100644
--- a/drivers/edac/cell_edac.c
+++ b/drivers/edac/cell_edac.c
@@ -247,7 +247,7 @@ static struct platform_driver cell_edac_driver = {
.owner  = THIS_MODULE,
},
.probe  = cell_edac_probe,
-   .remove = __devexit_p(cell_edac_remove),
+   .remove = cell_edac_remove,
 };
 
 static int __init cell_edac_init(void)
diff --git a/drivers/edac/e752x_edac.c b/drivers/edac/e752x_edac.c
index a5ed6b7..697acd5 100644
--- a/drivers/edac/e752x_edac.c
+++ b/drivers/edac/e752x_edac.c
@@ -1445,7 +1445,7 @@ MODULE_DEVICE_TABLE(pci, e752x_pci_tbl);
 static struct pci_driver e752x_driver = {
.name = EDAC_MOD_STR,
.probe = e752x_init_one,
-   .remove = __devexit_p(e752x_remove_one),
+   .remove = e752x_remove_one,
.id_table = e752x_pci_tbl,
 };
 
diff --git a/drivers/edac/e7xxx_edac.c b/drivers/edac/e7xxx_edac.c
index 9ff57f3..2b401ef 100644
--- a/drivers/edac/e7xxx_edac.c
+++ b/drivers/edac/e7xxx_edac.c
@@ -579,7 +579,7 @@ MODULE_DEVICE_TABLE(pci, e7xxx_pci_tbl);
 static struct pci_driver e7xxx_driver = {
.name = EDAC_MOD_STR,
.probe = e7xxx_init_one,
-   .remove = __devexit_p(e7xxx_remove_one),
+   .remove = e7xxx_remove_one,
.id_table = e7xxx_pci_tbl,
 };
 
diff --git a/drivers/edac/i3000_edac.c b/drivers/edac/i3000_edac.c
index d3d19cc..22d43a0 100644
--- a/drivers/edac/i3000_edac.c
+++ b/drivers/edac/i3000_edac.c
@@ -502,7 +502,7 @@ MODULE_DEVICE_TABLE(pci, i3000_pci_tbl);
 static struct pci_driver i3000_driver = {
.name = EDAC_MOD_STR,
.probe = i3000_init_one,
-   .remove = __devexit_p(i3000_remove_one),
+   .remove = i3000_remove_one,
.id_table = i3000_pci_tbl,
 };
 
diff --git a/drivers/edac/i3200_edac.c b/drivers/edac/i3200_edac.c
index b6653a6..532fabb 100644
--- a/drivers/edac/i3200_edac.c
+++ b/drivers/edac/i3200_edac.c
@@ -467,7 +467,7 @@ MODULE_DEVICE_TABLE(pci, i3200_pci_tbl);
 static struct pci_driver i3200_driver = {
.name = EDAC_MOD_STR,
.probe = i3200_init_one,
-   .remove = __devexit_p(i3200_remove_one),
+   .remove = i3200_remove_one,
.id_table = i3200_pci_tbl,
 };
 
diff --git a/drivers/edac/i5000_edac.c b/drivers/edac/i5000_edac.c
index 6a49dd0..782b2880e 100644
--- a/drivers/edac/i5000_edac.c
+++ b/drivers/edac/i5000_edac.c
@@ -1547,7 +1547,7 @@ 

[PATCH 065/493] i2c: remove use of __devexit_p

2012-11-19 Thread Bill Pemberton
CONFIG_HOTPLUG is going away as an option so __devexit_p is no longer
needed.

Signed-off-by: Bill Pemberton wf...@virginia.edu
Cc: Jean Delvare kh...@linux-fr.org 
Cc: Wolfram Sang w.s...@pengutronix.de 
Cc: Ben Dooks  ben-li...@fluff.org 
Cc: Rudolf Marek r.ma...@assembler.cz 
Cc: Jochen Friedrich joc...@scram.de 
Cc: Peter Korsgaard jac...@sunsite.dk 
Cc: Tony Lindgren t...@atomide.com 
Cc: Olof Johansson o...@lixom.net 
Cc: Vitaly Wool vitalyw...@gmail.com 
Cc: Guan Xuetao g...@mprc.pku.edu.cn 
Cc: Barry Song baohua.s...@csr.com 
Cc: Mark M. Hoffman mhoff...@lightlink.com 
Cc: linux-...@vger.kernel.org 
Cc: linuxppc-dev@lists.ozlabs.org 
Cc: linux-o...@vger.kernel.org 
Cc: linux-arm-ker...@lists.infradead.org 
---
 drivers/i2c/busses/i2c-ali1535.c| 2 +-
 drivers/i2c/busses/i2c-ali1563.c| 2 +-
 drivers/i2c/busses/i2c-ali15x3.c| 2 +-
 drivers/i2c/busses/i2c-amd756.c | 2 +-
 drivers/i2c/busses/i2c-amd8111.c| 2 +-
 drivers/i2c/busses/i2c-at91.c   | 2 +-
 drivers/i2c/busses/i2c-au1550.c | 2 +-
 drivers/i2c/busses/i2c-cpm.c| 2 +-
 drivers/i2c/busses/i2c-designware-pcidrv.c  | 2 +-
 drivers/i2c/busses/i2c-designware-platdrv.c | 2 +-
 drivers/i2c/busses/i2c-eg20t.c  | 2 +-
 drivers/i2c/busses/i2c-elektor.c| 2 +-
 drivers/i2c/busses/i2c-gpio.c   | 2 +-
 drivers/i2c/busses/i2c-highlander.c | 2 +-
 drivers/i2c/busses/i2c-hydra.c  | 2 +-
 drivers/i2c/busses/i2c-i801.c   | 2 +-
 drivers/i2c/busses/i2c-ibm_iic.c| 2 +-
 drivers/i2c/busses/i2c-intel-mid.c  | 2 +-
 drivers/i2c/busses/i2c-isch.c   | 2 +-
 drivers/i2c/busses/i2c-mpc.c| 2 +-
 drivers/i2c/busses/i2c-mv64xxx.c| 2 +-
 drivers/i2c/busses/i2c-mxs.c| 2 +-
 drivers/i2c/busses/i2c-nforce2.c| 2 +-
 drivers/i2c/busses/i2c-nuc900.c | 2 +-
 drivers/i2c/busses/i2c-ocores.c | 2 +-
 drivers/i2c/busses/i2c-octeon.c | 2 +-
 drivers/i2c/busses/i2c-omap.c   | 2 +-
 drivers/i2c/busses/i2c-parport-light.c  | 2 +-
 drivers/i2c/busses/i2c-pasemi.c | 2 +-
 drivers/i2c/busses/i2c-pca-isa.c| 2 +-
 drivers/i2c/busses/i2c-pca-platform.c   | 2 +-
 drivers/i2c/busses/i2c-piix4.c  | 2 +-
 drivers/i2c/busses/i2c-pmcmsp.c | 2 +-
 drivers/i2c/busses/i2c-pnx.c| 2 +-
 drivers/i2c/busses/i2c-powermac.c   | 2 +-
 drivers/i2c/busses/i2c-puv3.c   | 2 +-
 drivers/i2c/busses/i2c-pxa-pci.c| 2 +-
 drivers/i2c/busses/i2c-rcar.c   | 2 +-
 drivers/i2c/busses/i2c-s6000.c  | 2 +-
 drivers/i2c/busses/i2c-sh7760.c | 2 +-
 drivers/i2c/busses/i2c-sirf.c   | 2 +-
 drivers/i2c/busses/i2c-sis630.c | 2 +-
 drivers/i2c/busses/i2c-sis96x.c | 2 +-
 drivers/i2c/busses/i2c-tegra.c  | 2 +-
 drivers/i2c/busses/i2c-via.c| 2 +-
 drivers/i2c/busses/i2c-xiic.c   | 2 +-
 drivers/i2c/busses/i2c-xlr.c| 2 +-
 drivers/i2c/busses/scx200_acb.c | 2 +-
 drivers/i2c/muxes/i2c-mux-gpio.c| 2 +-
 drivers/i2c/muxes/i2c-mux-pinctrl.c | 2 +-
 50 files changed, 50 insertions(+), 50 deletions(-)

diff --git a/drivers/i2c/busses/i2c-ali1535.c b/drivers/i2c/busses/i2c-ali1535.c
index 125cd8e..cb30432 100644
--- a/drivers/i2c/busses/i2c-ali1535.c
+++ b/drivers/i2c/busses/i2c-ali1535.c
@@ -528,7 +528,7 @@ static struct pci_driver ali1535_driver = {
.name   = ali1535_smbus,
.id_table   = ali1535_ids,
.probe  = ali1535_probe,
-   .remove = __devexit_p(ali1535_remove),
+   .remove = ali1535_remove,
 };
 
 module_pci_driver(ali1535_driver);
diff --git a/drivers/i2c/busses/i2c-ali1563.c b/drivers/i2c/busses/i2c-ali1563.c
index e02d9f8..547a96f 100644
--- a/drivers/i2c/busses/i2c-ali1563.c
+++ b/drivers/i2c/busses/i2c-ali1563.c
@@ -428,7 +428,7 @@ static struct pci_driver ali1563_pci_driver = {
.name   = ali1563_smbus,
.id_table   = ali1563_id_table,
.probe  = ali1563_probe,
-   .remove = __devexit_p(ali1563_remove),
+   .remove = ali1563_remove,
 };
 
 module_pci_driver(ali1563_pci_driver);
diff --git a/drivers/i2c/busses/i2c-ali15x3.c b/drivers/i2c/busses/i2c-ali15x3.c
index ce8d26d..62692ec 100644
--- a/drivers/i2c/busses/i2c-ali15x3.c
+++ b/drivers/i2c/busses/i2c-ali15x3.c
@@ -510,7 +510,7 @@ static struct pci_driver ali15x3_driver = {
.name   = ali15x3_smbus,
.id_table   = ali15x3_ids,
.probe  = ali15x3_probe,
-   .remove = __devexit_p(ali15x3_remove),
+   .remove = ali15x3_remove,
 };
 
 module_pci_driver(ali15x3_driver);
diff --git a/drivers/i2c/busses/i2c-amd756.c 

[PATCH 222/493] char: remove use of __devinit

2012-11-19 Thread Bill Pemberton
CONFIG_HOTPLUG is going away as an option so __devinit is no longer
needed.

Signed-off-by: Bill Pemberton wf...@virginia.edu
Cc: Geoff Levand ge...@infradead.org 
Cc: Mattia Dongili malat...@linux.it 
Cc: Amit Shah amit.s...@redhat.com 
Cc: openipmi-develo...@lists.sourceforge.net 
Cc: linuxppc-dev@lists.ozlabs.org 
Cc: cbe-oss-...@lists.ozlabs.org 
Cc: platform-driver-...@vger.kernel.org 
Cc: virtualizat...@lists.linux-foundation.org 
---
 drivers/char/ipmi/ipmi_si_intf.c   | 24 
 drivers/char/ps3flash.c|  2 +-
 drivers/char/sonypi.c  | 10 +-
 drivers/char/tb0219.c  |  2 +-
 drivers/char/virtio_console.c  |  2 +-
 drivers/char/xilinx_hwicap/xilinx_hwicap.c |  6 +++---
 6 files changed, 23 insertions(+), 23 deletions(-)

diff --git a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c
index b1e0356..29b6bad 100644
--- a/drivers/char/ipmi/ipmi_si_intf.c
+++ b/drivers/char/ipmi/ipmi_si_intf.c
@@ -1836,7 +1836,7 @@ static int hotmod_handler(const char *val, struct 
kernel_param *kp)
return rv;
 }
 
-static int __devinit hardcode_find_bmc(void)
+static int hardcode_find_bmc(void)
 {
int ret = -ENODEV;
int i;
@@ -2023,7 +2023,7 @@ struct SPMITable {
s8  spmi_id[1]; /* A '\0' terminated array starts here. */
 };
 
-static int __devinit try_init_spmi(struct SPMITable *spmi)
+static int try_init_spmi(struct SPMITable *spmi)
 {
struct smi_info  *info;
 
@@ -2106,7 +2106,7 @@ static int __devinit try_init_spmi(struct SPMITable *spmi)
return 0;
 }
 
-static void __devinit spmi_find_bmc(void)
+static void spmi_find_bmc(void)
 {
acpi_status  status;
struct SPMITable *spmi;
@@ -2128,7 +2128,7 @@ static void __devinit spmi_find_bmc(void)
}
 }
 
-static int __devinit ipmi_pnp_probe(struct pnp_dev *dev,
+static int ipmi_pnp_probe(struct pnp_dev *dev,
const struct pnp_device_id *dev_id)
 {
struct acpi_device *acpi_dev;
@@ -2258,7 +2258,7 @@ struct dmi_ipmi_data {
u8  slave_addr;
 };
 
-static int __devinit decode_dmi(const struct dmi_header *dm,
+static int decode_dmi(const struct dmi_header *dm,
struct dmi_ipmi_data *dmi)
 {
const u8*data = (const u8 *)dm;
@@ -2320,7 +2320,7 @@ static int __devinit decode_dmi(const struct dmi_header 
*dm,
return 0;
 }
 
-static void __devinit try_init_dmi(struct dmi_ipmi_data *ipmi_data)
+static void try_init_dmi(struct dmi_ipmi_data *ipmi_data)
 {
struct smi_info *info;
 
@@ -2388,7 +2388,7 @@ static void __devinit try_init_dmi(struct dmi_ipmi_data 
*ipmi_data)
kfree(info);
 }
 
-static void __devinit dmi_find_bmc(void)
+static void dmi_find_bmc(void)
 {
const struct dmi_device *dev = NULL;
struct dmi_ipmi_data data;
@@ -2424,7 +2424,7 @@ static void ipmi_pci_cleanup(struct smi_info *info)
pci_disable_device(pdev);
 }
 
-static int __devinit ipmi_pci_probe_regspacing(struct smi_info *info)
+static int ipmi_pci_probe_regspacing(struct smi_info *info)
 {
if (info-si_type == SI_KCS) {
unsigned char   status;
@@ -2456,7 +2456,7 @@ static int __devinit ipmi_pci_probe_regspacing(struct 
smi_info *info)
return DEFAULT_REGSPACING;
 }
 
-static int __devinit ipmi_pci_probe(struct pci_dev *pdev,
+static int ipmi_pci_probe(struct pci_dev *pdev,
const struct pci_device_id *ent)
 {
int rv;
@@ -2551,7 +2551,7 @@ static struct pci_driver ipmi_pci_driver = {
 #endif /* CONFIG_PCI */
 
 static struct of_device_id ipmi_match[];
-static int __devinit ipmi_probe(struct platform_device *dev)
+static int ipmi_probe(struct platform_device *dev)
 {
 #ifdef CONFIG_OF
const struct of_device_id *match;
@@ -3059,7 +3059,7 @@ static __devinitdata struct ipmi_default_vals
{ .port = 0 }
 };
 
-static void __devinit default_find_bmc(void)
+static void default_find_bmc(void)
 {
struct smi_info *info;
int i;
@@ -3359,7 +3359,7 @@ static int try_smi_init(struct smi_info *new_smi)
return rv;
 }
 
-static int __devinit init_ipmi_si(void)
+static int init_ipmi_si(void)
 {
int  i;
char *str;
diff --git a/drivers/char/ps3flash.c b/drivers/char/ps3flash.c
index 6abdde4..588063ac 100644
--- a/drivers/char/ps3flash.c
+++ b/drivers/char/ps3flash.c
@@ -363,7 +363,7 @@ static struct miscdevice ps3flash_misc = {
.fops   = ps3flash_fops,
 };
 
-static int __devinit ps3flash_probe(struct ps3_system_bus_device *_dev)
+static int ps3flash_probe(struct ps3_system_bus_device *_dev)
 {
struct ps3_storage_device *dev = to_ps3_storage_device(_dev-core);
struct ps3flash_private *priv;
diff --git a/drivers/char/sonypi.c b/drivers/char/sonypi.c
index 34f0db3..861efa4 100644
--- 

[PATCH 323/493] tty: remove use of __devinitdata

2012-11-19 Thread Bill Pemberton
CONFIG_HOTPLUG is going away as an option so __devinitdata is no
longer needed.

Signed-off-by: Bill Pemberton wf...@virginia.edu
Cc: Alan Cox a...@linux.intel.com 
Cc: Peter Korsgaard jac...@sunsite.dk 
Cc: linuxppc-dev@lists.ozlabs.org 
Cc: linux-ser...@vger.kernel.org 
---
 drivers/tty/hvc/hvc_opal.c | 2 +-
 drivers/tty/hvc/hvc_vio.c  | 2 +-
 drivers/tty/rocket.c   | 2 +-
 drivers/tty/serial/8250/8250_pci.c | 2 +-
 drivers/tty/serial/8250/8250_pnp.c | 2 +-
 drivers/tty/serial/of_serial.c | 2 +-
 drivers/tty/serial/sirfsoc_uart.c  | 2 +-
 drivers/tty/serial/uartlite.c  | 2 +-
 drivers/tty/serial/xilinx_uartps.c | 2 +-
 9 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/drivers/tty/hvc/hvc_opal.c b/drivers/tty/hvc/hvc_opal.c
index 5ddd6f5..700fedf 100644
--- a/drivers/tty/hvc/hvc_opal.c
+++ b/drivers/tty/hvc/hvc_opal.c
@@ -41,7 +41,7 @@
 
 static const char hvc_opal_name[] = hvc_opal;
 
-static struct of_device_id hvc_opal_match[] __devinitdata = {
+static struct of_device_id hvc_opal_match[] = {
{ .name = serial, .compatible = ibm,opal-console-raw },
{ .name = serial, .compatible = ibm,opal-console-hvsi },
{ },
diff --git a/drivers/tty/hvc/hvc_vio.c b/drivers/tty/hvc/hvc_vio.c
index f7333e3..7f51156 100644
--- a/drivers/tty/hvc/hvc_vio.c
+++ b/drivers/tty/hvc/hvc_vio.c
@@ -53,7 +53,7 @@
 
 static const char hvc_driver_name[] = hvc_console;
 
-static struct vio_device_id hvc_driver_table[] __devinitdata = {
+static struct vio_device_id hvc_driver_table[] = {
{serial, hvterm1},
 #ifndef HVC_OLD_HVSI
{serial, hvterm-protocol},
diff --git a/drivers/tty/rocket.c b/drivers/tty/rocket.c
index 9700d34..02a53f1 100644
--- a/drivers/tty/rocket.c
+++ b/drivers/tty/rocket.c
@@ -1757,7 +1757,7 @@ static void rp_flush_buffer(struct tty_struct *tty)
 
 #ifdef CONFIG_PCI
 
-static struct pci_device_id __devinitdata __used rocket_pci_ids[] = {
+static struct pci_device_id __used rocket_pci_ids[] = {
{ PCI_DEVICE(PCI_VENDOR_ID_RP, PCI_ANY_ID) },
{ }
 };
diff --git a/drivers/tty/serial/8250/8250_pci.c 
b/drivers/tty/serial/8250/8250_pci.c
index a5acb57..3252c5d 100644
--- a/drivers/tty/serial/8250/8250_pci.c
+++ b/drivers/tty/serial/8250/8250_pci.c
@@ -1987,7 +1987,7 @@ enum pci_board_num_t {
  * see first lines of serial_in() and serial_out() in 8250.c
 */
 
-static struct pciserial_board pci_boards[] __devinitdata = {
+static struct pciserial_board pci_boards[] = {
[pbn_default] = {
.flags  = FL_BASE0,
.num_ports  = 1,
diff --git a/drivers/tty/serial/8250/8250_pnp.c 
b/drivers/tty/serial/8250/8250_pnp.c
index 2b8a6ac..71daae9 100644
--- a/drivers/tty/serial/8250/8250_pnp.c
+++ b/drivers/tty/serial/8250/8250_pnp.c
@@ -370,7 +370,7 @@ static const struct pnp_device_id pnp_dev_table[] = {
 
 MODULE_DEVICE_TABLE(pnp, pnp_dev_table);
 
-static char *modem_names[] __devinitdata = {
+static char *modem_names[] = {
MODEM, Modem, modem, FAX, Fax, fax,
56K, 56k, K56, 33.6, 28.8, 14.4,
33,600, 28,800, 14,400, 33.600, 28.800, 14.400,
diff --git a/drivers/tty/serial/of_serial.c b/drivers/tty/serial/of_serial.c
index 1bce344..e7cae1c 100644
--- a/drivers/tty/serial/of_serial.c
+++ b/drivers/tty/serial/of_serial.c
@@ -231,7 +231,7 @@ static int of_platform_serial_remove(struct platform_device 
*ofdev)
 /*
  * A few common types, add more as needed.
  */
-static struct of_device_id __devinitdata of_platform_serial_table[] = {
+static struct of_device_id of_platform_serial_table[] = {
{ .compatible = ns8250,   .data = (void *)PORT_8250, },
{ .compatible = ns16450,  .data = (void *)PORT_16450, },
{ .compatible = ns16550a, .data = (void *)PORT_16550A, },
diff --git a/drivers/tty/serial/sirfsoc_uart.c 
b/drivers/tty/serial/sirfsoc_uart.c
index 4984984..5da5cb9 100644
--- a/drivers/tty/serial/sirfsoc_uart.c
+++ b/drivers/tty/serial/sirfsoc_uart.c
@@ -727,7 +727,7 @@ static int sirfsoc_uart_resume(struct platform_device *pdev)
return 0;
 }
 
-static struct of_device_id sirfsoc_uart_ids[] __devinitdata = {
+static struct of_device_id sirfsoc_uart_ids[] = {
{ .compatible = sirf,prima2-uart, },
{}
 };
diff --git a/drivers/tty/serial/uartlite.c b/drivers/tty/serial/uartlite.c
index df9eeb4..2d20b01 100644
--- a/drivers/tty/serial/uartlite.c
+++ b/drivers/tty/serial/uartlite.c
@@ -562,7 +562,7 @@ static int __devexit ulite_release(struct device *dev)
 
 #if defined(CONFIG_OF)
 /* Match table for of_platform binding */
-static struct of_device_id ulite_of_match[] __devinitdata = {
+static struct of_device_id ulite_of_match[] = {
{ .compatible = xlnx,opb-uartlite-1.00.b, },
{ .compatible = xlnx,xps-uartlite-1.00.a, },
{}
diff --git a/drivers/tty/serial/xilinx_uartps.c 
b/drivers/tty/serial/xilinx_uartps.c
index 6e9ce65..4e6380a 100644
--- a/drivers/tty/serial/xilinx_uartps.c
+++ 

[PATCH 371/493] usb: remove use of __devinitconst

2012-11-19 Thread Bill Pemberton
CONFIG_HOTPLUG is going away as an option so __devinitconst is no
longer needed.

Signed-off-by: Bill Pemberton wf...@virginia.edu
Cc: Li Yang le...@freescale.com 
Cc: Felipe Balbi ba...@ti.com 
Cc: linux-...@vger.kernel.org 
Cc: linuxppc-dev@lists.ozlabs.org 
---
 drivers/usb/gadget/fsl_qe_udc.c | 2 +-
 drivers/usb/host/bcma-hcd.c | 2 +-
 drivers/usb/host/pci-quirks.c   | 2 +-
 drivers/usb/host/ssb-hcd.c  | 2 +-
 drivers/usb/musb/musb_dsps.c| 6 +++---
 5 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/drivers/usb/gadget/fsl_qe_udc.c b/drivers/usb/gadget/fsl_qe_udc.c
index 8ad04a0..b13bc73 100644
--- a/drivers/usb/gadget/fsl_qe_udc.c
+++ b/drivers/usb/gadget/fsl_qe_udc.c
@@ -2710,7 +2710,7 @@ static int __devexit qe_udc_remove(struct platform_device 
*ofdev)
 }
 
 /*-*/
-static const struct of_device_id qe_udc_match[] __devinitconst = {
+static const struct of_device_id qe_udc_match[] = {
{
.compatible = fsl,mpc8323-qe-usb,
.data = (void *)PORT_QE,
diff --git a/drivers/usb/host/bcma-hcd.c b/drivers/usb/host/bcma-hcd.c
index 8c83ed9..649780b 100644
--- a/drivers/usb/host/bcma-hcd.c
+++ b/drivers/usb/host/bcma-hcd.c
@@ -305,7 +305,7 @@ static int bcma_hcd_resume(struct bcma_device *dev)
 #define bcma_hcd_resumeNULL
 #endif /* CONFIG_PM */
 
-static const struct bcma_device_id bcma_hcd_table[] __devinitconst = {
+static const struct bcma_device_id bcma_hcd_table[] = {
BCMA_CORE(BCMA_MANUF_BCM, BCMA_CORE_USB20_HOST, BCMA_ANY_REV, 
BCMA_ANY_CLASS),
BCMA_CORETABLE_END
 };
diff --git a/drivers/usb/host/pci-quirks.c b/drivers/usb/host/pci-quirks.c
index a018e70..15cfb06 100644
--- a/drivers/usb/host/pci-quirks.c
+++ b/drivers/usb/host/pci-quirks.c
@@ -533,7 +533,7 @@ static void quirk_usb_handoff_ohci(struct pci_dev *pdev)
iounmap(base);
 }
 
-static const struct dmi_system_id __devinitconst ehci_dmi_nohandoff_table[] = {
+static const struct dmi_system_id ehci_dmi_nohandoff_table[] = {
{
/*  Pegatron Lucid (ExoPC) */
.matches = {
diff --git a/drivers/usb/host/ssb-hcd.c b/drivers/usb/host/ssb-hcd.c
index 79aa958..bdb9d70 100644
--- a/drivers/usb/host/ssb-hcd.c
+++ b/drivers/usb/host/ssb-hcd.c
@@ -248,7 +248,7 @@ static int ssb_hcd_resume(struct ssb_device *dev)
 #define ssb_hcd_resume NULL
 #endif /* CONFIG_PM */
 
-static const struct ssb_device_id ssb_hcd_table[] __devinitconst = {
+static const struct ssb_device_id ssb_hcd_table[] = {
SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_USB11_HOSTDEV, SSB_ANY_REV),
SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_USB11_HOST, SSB_ANY_REV),
SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_USB20_HOST, SSB_ANY_REV),
diff --git a/drivers/usb/musb/musb_dsps.c b/drivers/usb/musb/musb_dsps.c
index faeacd4..3377be8 100644
--- a/drivers/usb/musb/musb_dsps.c
+++ b/drivers/usb/musb/musb_dsps.c
@@ -715,7 +715,7 @@ static int dsps_resume(struct device *dev)
 
 static SIMPLE_DEV_PM_OPS(dsps_pm_ops, dsps_suspend, dsps_resume);
 
-static const struct dsps_musb_wrapper ti81xx_driver_data __devinitconst = {
+static const struct dsps_musb_wrapper ti81xx_driver_data = {
.revision   = 0x00,
.control= 0x14,
.status = 0x18,
@@ -746,7 +746,7 @@ static const struct dsps_musb_wrapper ti81xx_driver_data 
__devinitconst = {
.instances  = 1,
 };
 
-static const struct platform_device_id musb_dsps_id_table[] __devinitconst = {
+static const struct platform_device_id musb_dsps_id_table[] = {
{
.name   = musb-ti81xx,
.driver_data= (kernel_ulong_t) ti81xx_driver_data,
@@ -756,7 +756,7 @@ static const struct platform_device_id musb_dsps_id_table[] 
__devinitconst = {
 MODULE_DEVICE_TABLE(platform, musb_dsps_id_table);
 
 #ifdef CONFIG_OF
-static const struct of_device_id musb_dsps_of_match[] __devinitconst = {
+static const struct of_device_id musb_dsps_of_match[] = {
{ .compatible = ti,musb-am33xx,
.data = (void *) ti81xx_driver_data, },
{  },
-- 
1.8.0

___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev


[PATCH 431/493] usb: remove use of __devexit

2012-11-19 Thread Bill Pemberton
CONFIG_HOTPLUG is going away as an option so __devexit is no
longer needed.

Signed-off-by: Bill Pemberton wf...@virginia.edu
Cc: Peter Korsgaard jac...@sunsite.dk 
Cc: Alexander Shishkin alexander.shish...@linux.intel.com 
Cc: Felipe Balbi ba...@ti.com 
Cc: Li Yang le...@freescale.com 
Cc: Alan Stern st...@rowland.harvard.edu 
Cc: Wan ZongShun mcuos@gmail.com 
Cc: Ben Dooks ben-li...@fluff.org 
Cc: Kukjin Kim kgene@samsung.com 
Cc: linux-...@vger.kernel.org 
Cc: linux-o...@vger.kernel.org 
Cc: linuxppc-dev@lists.ozlabs.org 
Cc: linux-arm-ker...@lists.infradead.org 
Cc: linux-samsung-...@vger.kernel.org 
---
 drivers/usb/c67x00/c67x00-drv.c  |  2 +-
 drivers/usb/chipidea/ci13xxx_imx.c   |  2 +-
 drivers/usb/chipidea/ci13xxx_msm.c   |  2 +-
 drivers/usb/chipidea/ci13xxx_pci.c   |  2 +-
 drivers/usb/chipidea/core.c  |  2 +-
 drivers/usb/chipidea/usbmisc_imx6q.c |  2 +-
 drivers/usb/dwc3/core.c  |  2 +-
 drivers/usb/dwc3/debugfs.c   |  2 +-
 drivers/usb/dwc3/dwc3-exynos.c   |  2 +-
 drivers/usb/dwc3/dwc3-omap.c |  2 +-
 drivers/usb/dwc3/dwc3-pci.c  |  2 +-
 drivers/usb/gadget/bcm63xx_udc.c |  2 +-
 drivers/usb/gadget/fsl_qe_udc.c  |  2 +-
 drivers/usb/gadget/hid.c |  2 +-
 drivers/usb/gadget/lpc32xx_udc.c |  2 +-
 drivers/usb/gadget/mv_u3d_core.c |  2 +-
 drivers/usb/gadget/mv_udc_core.c |  2 +-
 drivers/usb/gadget/net2272.c | 10 +-
 drivers/usb/gadget/omap_udc.c|  2 +-
 drivers/usb/gadget/s3c-hsotg.c   |  4 ++--
 drivers/usb/host/bcma-hcd.c  |  2 +-
 drivers/usb/host/ehci-atmel.c|  2 +-
 drivers/usb/host/ehci-msm.c  |  2 +-
 drivers/usb/host/ehci-platform.c |  2 +-
 drivers/usb/host/ehci-s5p.c  |  2 +-
 drivers/usb/host/ehci-w90x900.c  |  2 +-
 drivers/usb/host/fhci-hcd.c  |  4 ++--
 drivers/usb/host/fsl-mph-dr-of.c |  4 ++--
 drivers/usb/host/isp1362-hcd.c   |  2 +-
 drivers/usb/host/isp1760-if.c|  2 +-
 drivers/usb/host/ohci-at91.c |  6 +++---
 drivers/usb/host/ohci-exynos.c   |  2 +-
 drivers/usb/host/ohci-jz4740.c   |  2 +-
 drivers/usb/host/ohci-omap3.c|  2 +-
 drivers/usb/host/ohci-platform.c |  2 +-
 drivers/usb/host/ohci-s3c2410.c  |  2 +-
 drivers/usb/host/ohci-tmio.c |  2 +-
 drivers/usb/host/r8a66597-hcd.c  |  2 +-
 drivers/usb/host/sl811-hcd.c |  2 +-
 drivers/usb/host/ssb-hcd.c   |  4 ++--
 drivers/usb/host/u132-hcd.c  |  2 +-
 drivers/usb/musb/am35x.c |  2 +-
 drivers/usb/musb/blackfin.c  |  2 +-
 drivers/usb/musb/da8xx.c |  2 +-
 drivers/usb/musb/davinci.c   |  2 +-
 drivers/usb/musb/musb_core.c |  2 +-
 drivers/usb/musb/musb_dsps.c |  2 +-
 drivers/usb/musb/omap2430.c  |  2 +-
 drivers/usb/musb/tusb6010.c  |  2 +-
 drivers/usb/musb/ux500.c |  2 +-
 drivers/usb/otg/ab8500-usb.c |  2 +-
 drivers/usb/otg/fsl_otg.c|  2 +-
 drivers/usb/otg/msm_otg.c|  2 +-
 drivers/usb/otg/mxs-phy.c|  2 +-
 drivers/usb/otg/nop-usb-xceiv.c  |  2 +-
 drivers/usb/phy/omap-usb2.c  |  2 +-
 drivers/usb/phy/rcar-phy.c   |  2 +-
 drivers/usb/renesas_usbhs/common.c   |  2 +-
 58 files changed, 68 insertions(+), 68 deletions(-)

diff --git a/drivers/usb/c67x00/c67x00-drv.c b/drivers/usb/c67x00/c67x00-drv.c
index 21913dfe..fe815ec 100644
--- a/drivers/usb/c67x00/c67x00-drv.c
+++ b/drivers/usb/c67x00/c67x00-drv.c
@@ -191,7 +191,7 @@ static int c67x00_drv_probe(struct platform_device *pdev)
return ret;
 }
 
-static int __devexit c67x00_drv_remove(struct platform_device *pdev)
+static int c67x00_drv_remove(struct platform_device *pdev)
 {
struct c67x00_device *c67x00 = platform_get_drvdata(pdev);
struct resource *res;
diff --git a/drivers/usb/chipidea/ci13xxx_imx.c 
b/drivers/usb/chipidea/ci13xxx_imx.c
index 1269780..8c29122 100644
--- a/drivers/usb/chipidea/ci13xxx_imx.c
+++ b/drivers/usb/chipidea/ci13xxx_imx.c
@@ -220,7 +220,7 @@ put_np:
return ret;
 }
 
-static int __devexit ci13xxx_imx_remove(struct platform_device *pdev)
+static int ci13xxx_imx_remove(struct platform_device *pdev)
 {
struct ci13xxx_imx_data *data = platform_get_drvdata(pdev);
 
diff --git a/drivers/usb/chipidea/ci13xxx_msm.c 
b/drivers/usb/chipidea/ci13xxx_msm.c
index e8a8ba3..7d16681 100644
--- a/drivers/usb/chipidea/ci13xxx_msm.c
+++ b/drivers/usb/chipidea/ci13xxx_msm.c
@@ -77,7 +77,7 @@ static int ci13xxx_msm_probe(struct platform_device *pdev)
return 0;
 }
 
-static int __devexit ci13xxx_msm_remove(struct platform_device *pdev)
+static int ci13xxx_msm_remove(struct platform_device *pdev)
 {
struct platform_device *plat_ci = platform_get_drvdata(pdev);
 
diff --git a/drivers/usb/chipidea/ci13xxx_pci.c 
b/drivers/usb/chipidea/ci13xxx_pci.c
index cb7eb3e..9b227e3 100644
--- 

[PATCH 399/493] edac: remove use of __devexit

2012-11-19 Thread Bill Pemberton
CONFIG_HOTPLUG is going away as an option so __devexit is no
longer needed.

Signed-off-by: Bill Pemberton wf...@virginia.edu
Cc: Doug Thompson dougthomp...@xmission.com 
Cc: Borislav Petkov b...@alien8.de 
Cc: Mark Gross mark.gr...@intel.com 
Cc: Jason Uhlenkott juhle...@akamai.com 
Cc: Mauro Carvalho Chehab mche...@redhat.com 
Cc: Tim Small t...@buttersideup.com 
Cc: Ranganathan Desikan r...@jetztechnologies.com 
Cc: Arvind R. arvin...@gmail.com 
Cc: Egor Martovetsky e...@pasemi.com 
Cc: Olof Johansson o...@lixom.net 
Cc: linux-e...@vger.kernel.org 
Cc: linuxppc-dev@lists.ozlabs.org 
---
 drivers/edac/amd64_edac.c  | 2 +-
 drivers/edac/amd76x_edac.c | 2 +-
 drivers/edac/cell_edac.c   | 2 +-
 drivers/edac/e752x_edac.c  | 2 +-
 drivers/edac/e7xxx_edac.c  | 2 +-
 drivers/edac/i3000_edac.c  | 2 +-
 drivers/edac/i3200_edac.c  | 2 +-
 drivers/edac/i5000_edac.c  | 2 +-
 drivers/edac/i5100_edac.c  | 2 +-
 drivers/edac/i5400_edac.c  | 2 +-
 drivers/edac/i7300_edac.c  | 2 +-
 drivers/edac/i7core_edac.c | 2 +-
 drivers/edac/i82443bxgx_edac.c | 2 +-
 drivers/edac/i82860_edac.c | 2 +-
 drivers/edac/i82875p_edac.c| 2 +-
 drivers/edac/i82975x_edac.c| 2 +-
 drivers/edac/pasemi_edac.c | 2 +-
 drivers/edac/r82600_edac.c | 2 +-
 drivers/edac/sb_edac.c | 2 +-
 drivers/edac/tile_edac.c   | 2 +-
 drivers/edac/x38_edac.c| 2 +-
 21 files changed, 21 insertions(+), 21 deletions(-)

diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c
index fbc9f43..735a33e 100644
--- a/drivers/edac/amd64_edac.c
+++ b/drivers/edac/amd64_edac.c
@@ -2612,7 +2612,7 @@ err_out:
return ret;
 }
 
-static void __devexit amd64_remove_one_instance(struct pci_dev *pdev)
+static void amd64_remove_one_instance(struct pci_dev *pdev)
 {
struct mem_ctl_info *mci;
struct amd64_pvt *pvt;
diff --git a/drivers/edac/amd76x_edac.c b/drivers/edac/amd76x_edac.c
index af986bc..be17814 100644
--- a/drivers/edac/amd76x_edac.c
+++ b/drivers/edac/amd76x_edac.c
@@ -318,7 +318,7 @@ static int amd76x_init_one(struct pci_dev *pdev,
  * structure for the device then delete the mci and free the
  * resources.
  */
-static void __devexit amd76x_remove_one(struct pci_dev *pdev)
+static void amd76x_remove_one(struct pci_dev *pdev)
 {
struct mem_ctl_info *mci;
 
diff --git a/drivers/edac/cell_edac.c b/drivers/edac/cell_edac.c
index c276157..c2eaf33 100644
--- a/drivers/edac/cell_edac.c
+++ b/drivers/edac/cell_edac.c
@@ -233,7 +233,7 @@ static int cell_edac_probe(struct platform_device *pdev)
return 0;
 }
 
-static int __devexit cell_edac_remove(struct platform_device *pdev)
+static int cell_edac_remove(struct platform_device *pdev)
 {
struct mem_ctl_info *mci = edac_mc_del_mc(pdev-dev);
if (mci)
diff --git a/drivers/edac/e752x_edac.c b/drivers/edac/e752x_edac.c
index ee69530..b2b3f00 100644
--- a/drivers/edac/e752x_edac.c
+++ b/drivers/edac/e752x_edac.c
@@ -1402,7 +1402,7 @@ static int e752x_init_one(struct pci_dev *pdev,
return e752x_probe1(pdev, ent-driver_data);
 }
 
-static void __devexit e752x_remove_one(struct pci_dev *pdev)
+static void e752x_remove_one(struct pci_dev *pdev)
 {
struct mem_ctl_info *mci;
struct e752x_pvt *pvt;
diff --git a/drivers/edac/e7xxx_edac.c b/drivers/edac/e7xxx_edac.c
index 9ceb779..3ebf885 100644
--- a/drivers/edac/e7xxx_edac.c
+++ b/drivers/edac/e7xxx_edac.c
@@ -538,7 +538,7 @@ static int e7xxx_init_one(struct pci_dev *pdev,
-EIO : e7xxx_probe1(pdev, ent-driver_data);
 }
 
-static void __devexit e7xxx_remove_one(struct pci_dev *pdev)
+static void e7xxx_remove_one(struct pci_dev *pdev)
 {
struct mem_ctl_info *mci;
struct e7xxx_pvt *pvt;
diff --git a/drivers/edac/i3000_edac.c b/drivers/edac/i3000_edac.c
index b39b54a..d945bac 100644
--- a/drivers/edac/i3000_edac.c
+++ b/drivers/edac/i3000_edac.c
@@ -472,7 +472,7 @@ static int i3000_init_one(struct pci_dev *pdev,
return rc;
 }
 
-static void __devexit i3000_remove_one(struct pci_dev *pdev)
+static void i3000_remove_one(struct pci_dev *pdev)
 {
struct mem_ctl_info *mci;
 
diff --git a/drivers/edac/i3200_edac.c b/drivers/edac/i3200_edac.c
index 1c2a44a..2fb40e0 100644
--- a/drivers/edac/i3200_edac.c
+++ b/drivers/edac/i3200_edac.c
@@ -436,7 +436,7 @@ static int i3200_init_one(struct pci_dev *pdev,
return rc;
 }
 
-static void __devexit i3200_remove_one(struct pci_dev *pdev)
+static void i3200_remove_one(struct pci_dev *pdev)
 {
struct mem_ctl_info *mci;
struct i3200_priv *priv;
diff --git a/drivers/edac/i5000_edac.c b/drivers/edac/i5000_edac.c
index e67f0f9..7536f99 100644
--- a/drivers/edac/i5000_edac.c
+++ b/drivers/edac/i5000_edac.c
@@ -1509,7 +1509,7 @@ static int i5000_init_one(struct pci_dev *pdev,
  * i5000_remove_onedestructor for one instance of device
  *
  */
-static void __devexit i5000_remove_one(struct pci_dev *pdev)

[PATCH 404/493] i2c: remove use of __devexit

2012-11-19 Thread Bill Pemberton
CONFIG_HOTPLUG is going away as an option so __devexit is no
longer needed.

Signed-off-by: Bill Pemberton wf...@virginia.edu
Cc: Jean Delvare kh...@linux-fr.org 
Cc: Wolfram Sang w.s...@pengutronix.de 
Cc: Ben Dooks  ben-li...@fluff.org 
Cc: Rudolf Marek r.ma...@assembler.cz 
Cc: Jochen Friedrich joc...@scram.de 
Cc: Peter Korsgaard jac...@sunsite.dk 
Cc: Tony Lindgren t...@atomide.com 
Cc: Olof Johansson o...@lixom.net 
Cc: Vitaly Wool vitalyw...@gmail.com 
Cc: Guan Xuetao g...@mprc.pku.edu.cn 
Cc: Barry Song baohua.s...@csr.com 
Cc: Mark M. Hoffman mhoff...@lightlink.com 
Cc: linux-...@vger.kernel.org 
Cc: linuxppc-dev@lists.ozlabs.org 
Cc: linux-o...@vger.kernel.org 
Cc: linux-arm-ker...@lists.infradead.org 
---
 drivers/i2c/busses/i2c-ali1535.c| 2 +-
 drivers/i2c/busses/i2c-ali1563.c| 2 +-
 drivers/i2c/busses/i2c-ali15x3.c| 2 +-
 drivers/i2c/busses/i2c-amd756.c | 2 +-
 drivers/i2c/busses/i2c-amd8111.c| 2 +-
 drivers/i2c/busses/i2c-at91.c   | 2 +-
 drivers/i2c/busses/i2c-au1550.c | 2 +-
 drivers/i2c/busses/i2c-cpm.c| 2 +-
 drivers/i2c/busses/i2c-designware-pcidrv.c  | 2 +-
 drivers/i2c/busses/i2c-designware-platdrv.c | 2 +-
 drivers/i2c/busses/i2c-eg20t.c  | 2 +-
 drivers/i2c/busses/i2c-elektor.c| 2 +-
 drivers/i2c/busses/i2c-gpio.c   | 2 +-
 drivers/i2c/busses/i2c-highlander.c | 2 +-
 drivers/i2c/busses/i2c-hydra.c  | 2 +-
 drivers/i2c/busses/i2c-i801.c   | 4 ++--
 drivers/i2c/busses/i2c-ibm_iic.c| 2 +-
 drivers/i2c/busses/i2c-intel-mid.c  | 2 +-
 drivers/i2c/busses/i2c-isch.c   | 2 +-
 drivers/i2c/busses/i2c-mpc.c| 2 +-
 drivers/i2c/busses/i2c-mv64xxx.c| 2 +-
 drivers/i2c/busses/i2c-mxs.c| 2 +-
 drivers/i2c/busses/i2c-nforce2.c| 2 +-
 drivers/i2c/busses/i2c-nuc900.c | 2 +-
 drivers/i2c/busses/i2c-ocores.c | 2 +-
 drivers/i2c/busses/i2c-octeon.c | 2 +-
 drivers/i2c/busses/i2c-omap.c   | 2 +-
 drivers/i2c/busses/i2c-parport-light.c  | 2 +-
 drivers/i2c/busses/i2c-pasemi.c | 2 +-
 drivers/i2c/busses/i2c-pca-isa.c| 2 +-
 drivers/i2c/busses/i2c-pca-platform.c   | 2 +-
 drivers/i2c/busses/i2c-piix4.c  | 4 ++--
 drivers/i2c/busses/i2c-pmcmsp.c | 2 +-
 drivers/i2c/busses/i2c-pnx.c| 2 +-
 drivers/i2c/busses/i2c-powermac.c   | 2 +-
 drivers/i2c/busses/i2c-puv3.c   | 2 +-
 drivers/i2c/busses/i2c-pxa-pci.c| 2 +-
 drivers/i2c/busses/i2c-rcar.c   | 2 +-
 drivers/i2c/busses/i2c-s6000.c  | 2 +-
 drivers/i2c/busses/i2c-sh7760.c | 2 +-
 drivers/i2c/busses/i2c-sirf.c   | 2 +-
 drivers/i2c/busses/i2c-sis630.c | 2 +-
 drivers/i2c/busses/i2c-sis96x.c | 2 +-
 drivers/i2c/busses/i2c-tegra.c  | 2 +-
 drivers/i2c/busses/i2c-via.c| 2 +-
 drivers/i2c/busses/i2c-xiic.c   | 2 +-
 drivers/i2c/busses/i2c-xlr.c| 2 +-
 drivers/i2c/busses/scx200_acb.c | 4 ++--
 drivers/i2c/muxes/i2c-mux-gpio.c| 2 +-
 drivers/i2c/muxes/i2c-mux-pinctrl.c | 2 +-
 50 files changed, 53 insertions(+), 53 deletions(-)

diff --git a/drivers/i2c/busses/i2c-ali1535.c b/drivers/i2c/busses/i2c-ali1535.c
index 9ee96f0..3f49181 100644
--- a/drivers/i2c/busses/i2c-ali1535.c
+++ b/drivers/i2c/busses/i2c-ali1535.c
@@ -518,7 +518,7 @@ static int ali1535_probe(struct pci_dev *dev, const struct 
pci_device_id *id)
return i2c_add_adapter(ali1535_adapter);
 }
 
-static void __devexit ali1535_remove(struct pci_dev *dev)
+static void ali1535_remove(struct pci_dev *dev)
 {
i2c_del_adapter(ali1535_adapter);
release_region(ali1535_smba, ALI1535_SMB_IOSIZE);
diff --git a/drivers/i2c/busses/i2c-ali1563.c b/drivers/i2c/busses/i2c-ali1563.c
index 55c27b9..5b17c9f 100644
--- a/drivers/i2c/busses/i2c-ali1563.c
+++ b/drivers/i2c/busses/i2c-ali1563.c
@@ -411,7 +411,7 @@ exit:
return error;
 }
 
-static void __devexit ali1563_remove(struct pci_dev * dev)
+static void ali1563_remove(struct pci_dev * dev)
 {
i2c_del_adapter(ali1563_adapter);
ali1563_shutdown(dev);
diff --git a/drivers/i2c/busses/i2c-ali15x3.c b/drivers/i2c/busses/i2c-ali15x3.c
index 2d32690..26bcc61 100644
--- a/drivers/i2c/busses/i2c-ali15x3.c
+++ b/drivers/i2c/busses/i2c-ali15x3.c
@@ -500,7 +500,7 @@ static int ali15x3_probe(struct pci_dev *dev, const struct 
pci_device_id *id)
return i2c_add_adapter(ali15x3_adapter);
 }
 
-static void __devexit ali15x3_remove(struct pci_dev *dev)
+static void ali15x3_remove(struct pci_dev *dev)
 {
i2c_del_adapter(ali15x3_adapter);
release_region(ali15x3_smba, ALI15X3_SMB_IOSIZE);
diff --git a/drivers/i2c/busses/i2c-amd756.c b/drivers/i2c/busses/i2c-amd756.c

[PATCH 437/493] char: remove use of __devexit

2012-11-19 Thread Bill Pemberton
CONFIG_HOTPLUG is going away as an option so __devexit is no
longer needed.

Signed-off-by: Bill Pemberton wf...@virginia.edu
Cc: David Airlie airl...@linux.ie 
Cc: Olof Johansson o...@lixom.net 
Cc: Mattia Dongili malat...@linux.it 
Cc: Kent Yoder k...@linux.vnet.ibm.com 
Cc: Rajiv Andrade m...@srajiv.net 
Cc: Marcel Selhorst tp...@selhorst.net 
Cc: Sirrix AG tp...@sirrix.com 
Cc: linuxppc-dev@lists.ozlabs.org 
Cc: linux-arm-ker...@lists.infradead.org 
Cc: openipmi-develo...@lists.sourceforge.net 
Cc: platform-driver-...@vger.kernel.org 
Cc: tpmdd-de...@lists.sourceforge.net 
---
 drivers/char/agp/ali-agp.c | 2 +-
 drivers/char/agp/amd-k7-agp.c  | 2 +-
 drivers/char/agp/amd64-agp.c   | 2 +-
 drivers/char/agp/ati-agp.c | 2 +-
 drivers/char/agp/efficeon-agp.c| 2 +-
 drivers/char/agp/i460-agp.c| 2 +-
 drivers/char/agp/intel-agp.c   | 2 +-
 drivers/char/agp/nvidia-agp.c  | 2 +-
 drivers/char/agp/sgi-agp.c | 2 +-
 drivers/char/agp/sis-agp.c | 2 +-
 drivers/char/agp/sworks-agp.c  | 2 +-
 drivers/char/agp/uninorth-agp.c| 2 +-
 drivers/char/agp/via-agp.c | 2 +-
 drivers/char/hw_random/atmel-rng.c | 2 +-
 drivers/char/hw_random/bcm63xx-rng.c   | 2 +-
 drivers/char/hw_random/exynos-rng.c| 2 +-
 drivers/char/hw_random/n2-drv.c| 2 +-
 drivers/char/hw_random/pasemi-rng.c| 2 +-
 drivers/char/hw_random/picoxcell-rng.c | 2 +-
 drivers/char/hw_random/ppc4xx-rng.c| 2 +-
 drivers/char/hw_random/timeriomem-rng.c| 2 +-
 drivers/char/hw_random/virtio-rng.c| 2 +-
 drivers/char/ipmi/ipmi_si_intf.c   | 6 +++---
 drivers/char/sonypi.c  | 2 +-
 drivers/char/tb0219.c  | 2 +-
 drivers/char/tpm/tpm_i2c_infineon.c| 2 +-
 drivers/char/tpm/tpm_ibmvtpm.c | 2 +-
 drivers/char/tpm/tpm_infineon.c| 2 +-
 drivers/char/tpm/tpm_tis.c | 2 +-
 drivers/char/xilinx_hwicap/xilinx_hwicap.c | 4 ++--
 30 files changed, 33 insertions(+), 33 deletions(-)

diff --git a/drivers/char/agp/ali-agp.c b/drivers/char/agp/ali-agp.c
index 9eb629b..0e69e60 100644
--- a/drivers/char/agp/ali-agp.c
+++ b/drivers/char/agp/ali-agp.c
@@ -374,7 +374,7 @@ found:
return agp_add_bridge(bridge);
 }
 
-static void __devexit agp_ali_remove(struct pci_dev *pdev)
+static void agp_ali_remove(struct pci_dev *pdev)
 {
struct agp_bridge_data *bridge = pci_get_drvdata(pdev);
 
diff --git a/drivers/char/agp/amd-k7-agp.c b/drivers/char/agp/amd-k7-agp.c
index 2e1efa9..cb9c9f9 100644
--- a/drivers/char/agp/amd-k7-agp.c
+++ b/drivers/char/agp/amd-k7-agp.c
@@ -480,7 +480,7 @@ static int agp_amdk7_probe(struct pci_dev *pdev,
return agp_add_bridge(bridge);
 }
 
-static void __devexit agp_amdk7_remove(struct pci_dev *pdev)
+static void agp_amdk7_remove(struct pci_dev *pdev)
 {
struct agp_bridge_data *bridge = pci_get_drvdata(pdev);
 
diff --git a/drivers/char/agp/amd64-agp.c b/drivers/char/agp/amd64-agp.c
index f4086c5..280c0d5 100644
--- a/drivers/char/agp/amd64-agp.c
+++ b/drivers/char/agp/amd64-agp.c
@@ -579,7 +579,7 @@ static int agp_amd64_probe(struct pci_dev *pdev,
return 0;
 }
 
-static void __devexit agp_amd64_remove(struct pci_dev *pdev)
+static void agp_amd64_remove(struct pci_dev *pdev)
 {
struct agp_bridge_data *bridge = pci_get_drvdata(pdev);
 
diff --git a/drivers/char/agp/ati-agp.c b/drivers/char/agp/ati-agp.c
index 6aeb624..485b15c 100644
--- a/drivers/char/agp/ati-agp.c
+++ b/drivers/char/agp/ati-agp.c
@@ -533,7 +533,7 @@ found:
return agp_add_bridge(bridge);
 }
 
-static void __devexit agp_ati_remove(struct pci_dev *pdev)
+static void agp_ati_remove(struct pci_dev *pdev)
 {
struct agp_bridge_data *bridge = pci_get_drvdata(pdev);
 
diff --git a/drivers/char/agp/efficeon-agp.c b/drivers/char/agp/efficeon-agp.c
index bf80cf1..08a465e 100644
--- a/drivers/char/agp/efficeon-agp.c
+++ b/drivers/char/agp/efficeon-agp.c
@@ -407,7 +407,7 @@ static int agp_efficeon_probe(struct pci_dev *pdev,
return agp_add_bridge(bridge);
 }
 
-static void __devexit agp_efficeon_remove(struct pci_dev *pdev)
+static void agp_efficeon_remove(struct pci_dev *pdev)
 {
struct agp_bridge_data *bridge = pci_get_drvdata(pdev);
 
diff --git a/drivers/char/agp/i460-agp.c b/drivers/char/agp/i460-agp.c
index bda2215..0436bf1 100644
--- a/drivers/char/agp/i460-agp.c
+++ b/drivers/char/agp/i460-agp.c
@@ -611,7 +611,7 @@ static int agp_intel_i460_probe(struct pci_dev *pdev,
return agp_add_bridge(bridge);
 }
 
-static void __devexit agp_intel_i460_remove(struct pci_dev *pdev)
+static void agp_intel_i460_remove(struct pci_dev *pdev)
 {
struct agp_bridge_data *bridge = pci_get_drvdata(pdev);
 
diff --git a/drivers/char/agp/intel-agp.c b/drivers/char/agp/intel-agp.c
index ad6739e..362e744 

[PATCH 161/493] tty: remove use of __devinit

2012-11-19 Thread Bill Pemberton
CONFIG_HOTPLUG is going away as an option so __devinit is no longer
needed.

Signed-off-by: Bill Pemberton wf...@virginia.edu
Cc: Jiri Slaby jirisl...@gmail.com 
Cc: Alan Cox a...@linux.intel.com 
Cc: Tobias Klauser tklau...@distanz.ch 
Cc: Lucas Tavares luca...@linux.vnet.ibm.com 
Cc: David S. Miller da...@davemloft.net 
Cc: Peter Korsgaard jac...@sunsite.dk 
Cc: Tony Prisk li...@prisktech.co.nz 
Cc: linuxppc-dev@lists.ozlabs.org 
Cc: linux-ser...@vger.kernel.org 
Cc: nios2-...@sopc.et.ntust.edu.tw 
Cc: linux-i...@vger.kernel.org 
Cc: sparcli...@vger.kernel.org 
Cc: linux-arm-ker...@lists.infradead.org 
---
 drivers/tty/cyclades.c  | 16 
 drivers/tty/ehv_bytechan.c  |  2 +-
 drivers/tty/hvc/hvc_opal.c  |  2 +-
 drivers/tty/hvc/hvc_vio.c   |  2 +-
 drivers/tty/hvc/hvc_xen.c   |  2 +-
 drivers/tty/hvc/hvcs.c  |  8 
 drivers/tty/isicom.c|  6 +++---
 drivers/tty/moxa.c  |  2 +-
 drivers/tty/mxser.c |  6 +++---
 drivers/tty/nozomi.c|  2 +-
 drivers/tty/serial/8250/8250.c  |  2 +-
 drivers/tty/serial/8250/8250_acorn.c|  2 +-
 drivers/tty/serial/8250/8250_dw.c   |  2 +-
 drivers/tty/serial/8250/8250_em.c   |  2 +-
 drivers/tty/serial/8250/8250_hp300.c|  4 ++--
 drivers/tty/serial/8250/8250_pci.c  |  4 ++--
 drivers/tty/serial/8250/8250_pnp.c  |  8 
 drivers/tty/serial/altera_jtaguart.c|  2 +-
 drivers/tty/serial/altera_uart.c|  2 +-
 drivers/tty/serial/apbuart.c|  2 +-
 drivers/tty/serial/ar933x_uart.c|  2 +-
 drivers/tty/serial/arc_uart.c   | 10 +-
 drivers/tty/serial/atmel_serial.c   |  6 +++---
 drivers/tty/serial/bcm63xx_uart.c   |  2 +-
 drivers/tty/serial/bfin_sport_uart.c|  2 +-
 drivers/tty/serial/clps711x.c   |  2 +-
 drivers/tty/serial/cpm_uart/cpm_uart_core.c |  2 +-
 drivers/tty/serial/efm32-uart.c |  2 +-
 drivers/tty/serial/icom.c   | 10 +-
 drivers/tty/serial/ioc3_serial.c|  2 +-
 drivers/tty/serial/jsm/jsm_driver.c |  2 +-
 drivers/tty/serial/jsm/jsm_tty.c|  2 +-
 drivers/tty/serial/lpc32xx_hs.c |  2 +-
 drivers/tty/serial/max3100.c|  2 +-
 drivers/tty/serial/max310x.c|  6 +++---
 drivers/tty/serial/mcf.c|  2 +-
 drivers/tty/serial/mpc52xx_uart.c   |  2 +-
 drivers/tty/serial/mrst_max3110.c   |  2 +-
 drivers/tty/serial/msm_serial_hs.c  |  4 ++--
 drivers/tty/serial/mxs-auart.c  |  2 +-
 drivers/tty/serial/of_serial.c  |  4 ++--
 drivers/tty/serial/omap-serial.c|  6 +++---
 drivers/tty/serial/pch_uart.c   |  2 +-
 drivers/tty/serial/sa1100.c |  2 +-
 drivers/tty/serial/sc26xx.c |  4 ++--
 drivers/tty/serial/sccnxp.c |  2 +-
 drivers/tty/serial/serial_txx9.c|  6 +++---
 drivers/tty/serial/sh-sci.c | 14 +++---
 drivers/tty/serial/sunhv.c  |  2 +-
 drivers/tty/serial/sunsab.c |  4 ++--
 drivers/tty/serial/sunsu.c  |  6 +++---
 drivers/tty/serial/sunzilog.c   |  8 
 drivers/tty/serial/timbuart.c   |  2 +-
 drivers/tty/serial/uartlite.c   |  6 +++---
 drivers/tty/serial/vr41xx_siu.c |  4 ++--
 drivers/tty/serial/vt8500_serial.c  |  2 +-
 drivers/tty/serial/xilinx_uartps.c  |  2 +-
 drivers/tty/synclink.c  |  2 +-
 drivers/tty/synclink_gt.c   |  2 +-
 drivers/tty/synclinkmp.c|  2 +-
 60 files changed, 113 insertions(+), 113 deletions(-)

diff --git a/drivers/tty/cyclades.c b/drivers/tty/cyclades.c
index 0244acf..444b544 100644
--- a/drivers/tty/cyclades.c
+++ b/drivers/tty/cyclades.c
@@ -3099,7 +3099,7 @@ static const struct tty_port_operations cyz_port_ops = {
  * -
  */
 
-static int __devinit cy_init_card(struct cyclades_card *cinfo)
+static int cy_init_card(struct cyclades_card *cinfo)
 {
struct cyclades_port *info;
unsigned int channel, port;
@@ -3196,7 +3196,7 @@ static int __devinit cy_init_card(struct cyclades_card 
*cinfo)
 
 /* initialize chips on Cyclom-Y card -- return number of valid
chips (which is number of ports/4) */
-static unsigned short __devinit cyy_init_card(void __iomem *true_base_addr,
+static unsigned short cyy_init_card(void __iomem *true_base_addr,
int index)
 {
unsigned int chip_number;
@@ -3405,7 +3405,7 @@ static int __init cy_detect_isa(void)
 }  /* cy_detect_isa */
 
 #ifdef CONFIG_PCI

[PATCH 227/493] edac: remove use of __devinit

2012-11-19 Thread Bill Pemberton
CONFIG_HOTPLUG is going away as an option so __devinit is no longer
needed.

Signed-off-by: Bill Pemberton wf...@virginia.edu
Cc: Doug Thompson dougthomp...@xmission.com 
Cc: Borislav Petkov b...@alien8.de 
Cc: Mark Gross mark.gr...@intel.com 
Cc: Jason Uhlenkott juhle...@akamai.com 
Cc: Mauro Carvalho Chehab mche...@redhat.com 
Cc: Tim Small t...@buttersideup.com 
Cc: Ranganathan Desikan r...@jetztechnologies.com 
Cc: Arvind R. arvin...@gmail.com 
Cc: Egor Martovetsky e...@pasemi.com 
Cc: Olof Johansson o...@lixom.net 
Cc: linux-e...@vger.kernel.org 
Cc: linux-m...@linux-mips.org 
Cc: linuxppc-dev@lists.ozlabs.org 
---
 drivers/edac/amd64_edac.c   |  2 +-
 drivers/edac/amd76x_edac.c  |  2 +-
 drivers/edac/cell_edac.c|  4 ++--
 drivers/edac/cpc925_edac.c  |  2 +-
 drivers/edac/e752x_edac.c   |  2 +-
 drivers/edac/e7xxx_edac.c   |  2 +-
 drivers/edac/highbank_l2_edac.c |  2 +-
 drivers/edac/highbank_mc_edac.c |  6 +++---
 drivers/edac/i3000_edac.c   |  2 +-
 drivers/edac/i3200_edac.c   |  2 +-
 drivers/edac/i5000_edac.c   |  2 +-
 drivers/edac/i5100_edac.c   | 14 +++---
 drivers/edac/i5400_edac.c   |  2 +-
 drivers/edac/i7300_edac.c   |  4 ++--
 drivers/edac/i7core_edac.c  |  2 +-
 drivers/edac/i82443bxgx_edac.c  |  2 +-
 drivers/edac/i82860_edac.c  |  2 +-
 drivers/edac/i82875p_edac.c |  2 +-
 drivers/edac/i82975x_edac.c |  2 +-
 drivers/edac/mpc85xx_edac.c |  8 
 drivers/edac/mv64x60_edac.c |  8 
 drivers/edac/octeon_edac-l2c.c  |  2 +-
 drivers/edac/octeon_edac-lmc.c  |  2 +-
 drivers/edac/octeon_edac-pc.c   |  2 +-
 drivers/edac/octeon_edac-pci.c  |  2 +-
 drivers/edac/pasemi_edac.c  |  2 +-
 drivers/edac/ppc4xx_edac.c  | 14 +++---
 drivers/edac/r82600_edac.c  |  2 +-
 drivers/edac/sb_edac.c  |  2 +-
 drivers/edac/tile_edac.c|  4 ++--
 drivers/edac/x38_edac.c |  2 +-
 31 files changed, 54 insertions(+), 54 deletions(-)

diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c
index c147e1e..fbc9f43 100644
--- a/drivers/edac/amd64_edac.c
+++ b/drivers/edac/amd64_edac.c
@@ -2563,7 +2563,7 @@ err_ret:
return ret;
 }
 
-static int __devinit amd64_probe_one_instance(struct pci_dev *pdev,
+static int amd64_probe_one_instance(struct pci_dev *pdev,
 const struct pci_device_id 
*mc_type)
 {
u8 nid = get_node_id(pdev);
diff --git a/drivers/edac/amd76x_edac.c b/drivers/edac/amd76x_edac.c
index 0430c35..af986bc 100644
--- a/drivers/edac/amd76x_edac.c
+++ b/drivers/edac/amd76x_edac.c
@@ -301,7 +301,7 @@ fail:
 }
 
 /* returns count (= 0), or negative on error */
-static int __devinit amd76x_init_one(struct pci_dev *pdev,
+static int amd76x_init_one(struct pci_dev *pdev,
const struct pci_device_id *ent)
 {
edac_dbg(0, \n);
diff --git a/drivers/edac/cell_edac.c b/drivers/edac/cell_edac.c
index b99bf19..c276157 100644
--- a/drivers/edac/cell_edac.c
+++ b/drivers/edac/cell_edac.c
@@ -124,7 +124,7 @@ static void cell_edac_check(struct mem_ctl_info *mci)
}
 }
 
-static void __devinit cell_edac_init_csrows(struct mem_ctl_info *mci)
+static void cell_edac_init_csrows(struct mem_ctl_info *mci)
 {
struct csrow_info   *csrow = mci-csrows[0];
struct dimm_info*dimm;
@@ -164,7 +164,7 @@ static void __devinit cell_edac_init_csrows(struct 
mem_ctl_info *mci)
}
 }
 
-static int __devinit cell_edac_probe(struct platform_device *pdev)
+static int cell_edac_probe(struct platform_device *pdev)
 {
struct cbe_mic_tm_regs __iomem  *regs;
struct mem_ctl_info *mci;
diff --git a/drivers/edac/cpc925_edac.c b/drivers/edac/cpc925_edac.c
index c2ef134..7f3c571 100644
--- a/drivers/edac/cpc925_edac.c
+++ b/drivers/edac/cpc925_edac.c
@@ -932,7 +932,7 @@ static int cpc925_mc_get_channels(void __iomem *vbase)
return dual;
 }
 
-static int __devinit cpc925_probe(struct platform_device *pdev)
+static int cpc925_probe(struct platform_device *pdev)
 {
static int edac_mc_idx;
struct mem_ctl_info *mci;
diff --git a/drivers/edac/e752x_edac.c b/drivers/edac/e752x_edac.c
index 697acd5..ee69530 100644
--- a/drivers/edac/e752x_edac.c
+++ b/drivers/edac/e752x_edac.c
@@ -1390,7 +1390,7 @@ fail:
 }
 
 /* returns count (= 0), or negative on error */
-static int __devinit e752x_init_one(struct pci_dev *pdev,
+static int e752x_init_one(struct pci_dev *pdev,
const struct pci_device_id *ent)
 {
edac_dbg(0, \n);
diff --git a/drivers/edac/e7xxx_edac.c b/drivers/edac/e7xxx_edac.c
index 2b401ef..9ceb779 100644
--- a/drivers/edac/e7xxx_edac.c
+++ b/drivers/edac/e7xxx_edac.c
@@ -528,7 +528,7 @@ fail0:
 }
 
 /* returns count (= 0), or negative on error */
-static int __devinit e7xxx_init_one(struct pci_dev *pdev,
+static int e7xxx_init_one(struct pci_dev *pdev,

[PATCH 429/493] tty: remove use of __devexit

2012-11-19 Thread Bill Pemberton
CONFIG_HOTPLUG is going away as an option so __devexit is no
longer needed.

Signed-off-by: Bill Pemberton wf...@virginia.edu
Cc: Jiri Slaby jirisl...@gmail.com 
Cc: Alan Cox a...@linux.intel.com 
Cc: Tobias Klauser tklau...@distanz.ch 
Cc: Lucas Tavares luca...@linux.vnet.ibm.com 
Cc: David Brown dav...@codeaurora.org 
Cc: Daniel Walker dwal...@fifo99.com 
Cc: Bryan Huntsman bry...@codeaurora.org 
Cc: David S. Miller da...@davemloft.net 
Cc: Peter Korsgaard jac...@sunsite.dk 
Cc: Tony Prisk li...@prisktech.co.nz 
Cc: linuxppc-dev@lists.ozlabs.org 
Cc: linux-ser...@vger.kernel.org 
Cc: nios2-...@sopc.et.ntust.edu.tw 
Cc: uclinux-dist-de...@blackfin.uclinux.org 
Cc: linux-arm-...@vger.kernel.org 
Cc: sparcli...@vger.kernel.org 
Cc: linux-arm-ker...@lists.infradead.org 
---
 drivers/tty/cyclades.c  |  2 +-
 drivers/tty/hvc/hvc_opal.c  |  2 +-
 drivers/tty/hvc/hvc_vio.c   |  2 +-
 drivers/tty/hvc/hvcs.c  |  4 ++--
 drivers/tty/isicom.c|  4 ++--
 drivers/tty/moxa.c  |  2 +-
 drivers/tty/mxser.c |  2 +-
 drivers/tty/nozomi.c|  4 ++--
 drivers/tty/serial/8250/8250.c  |  2 +-
 drivers/tty/serial/8250/8250_acorn.c|  2 +-
 drivers/tty/serial/8250/8250_dw.c   |  2 +-
 drivers/tty/serial/8250/8250_em.c   |  2 +-
 drivers/tty/serial/8250/8250_hp300.c|  4 ++--
 drivers/tty/serial/8250/8250_pci.c  | 12 ++--
 drivers/tty/serial/8250/8250_pnp.c  |  2 +-
 drivers/tty/serial/altera_jtaguart.c|  2 +-
 drivers/tty/serial/altera_uart.c|  2 +-
 drivers/tty/serial/ar933x_uart.c|  2 +-
 drivers/tty/serial/arc_uart.c   |  2 +-
 drivers/tty/serial/atmel_serial.c   |  2 +-
 drivers/tty/serial/bcm63xx_uart.c   |  2 +-
 drivers/tty/serial/bfin_sport_uart.c|  2 +-
 drivers/tty/serial/bfin_uart.c  |  2 +-
 drivers/tty/serial/clps711x.c   |  2 +-
 drivers/tty/serial/cpm_uart/cpm_uart_core.c |  2 +-
 drivers/tty/serial/efm32-uart.c |  2 +-
 drivers/tty/serial/icom.c   |  2 +-
 drivers/tty/serial/jsm/jsm_driver.c |  2 +-
 drivers/tty/serial/lpc32xx_hs.c |  2 +-
 drivers/tty/serial/max3100.c|  2 +-
 drivers/tty/serial/max310x.c|  2 +-
 drivers/tty/serial/mcf.c|  2 +-
 drivers/tty/serial/mrst_max3110.c   |  2 +-
 drivers/tty/serial/msm_serial.c |  2 +-
 drivers/tty/serial/msm_serial_hs.c  |  2 +-
 drivers/tty/serial/mux.c|  2 +-
 drivers/tty/serial/mxs-auart.c  |  2 +-
 drivers/tty/serial/omap-serial.c|  2 +-
 drivers/tty/serial/samsung.c|  2 +-
 drivers/tty/serial/sccnxp.c |  2 +-
 drivers/tty/serial/serial_txx9.c|  6 +++---
 drivers/tty/serial/sunhv.c  |  2 +-
 drivers/tty/serial/sunsab.c |  2 +-
 drivers/tty/serial/sunsu.c  |  2 +-
 drivers/tty/serial/sunzilog.c   |  4 ++--
 drivers/tty/serial/timbuart.c   |  2 +-
 drivers/tty/serial/uartlite.c   |  4 ++--
 drivers/tty/serial/vr41xx_siu.c |  2 +-
 drivers/tty/serial/vt8500_serial.c  |  2 +-
 drivers/tty/serial/xilinx_uartps.c  |  2 +-
 drivers/tty/synclink.c  |  2 +-
 drivers/tty/synclink_gt.c   |  2 +-
 drivers/tty/synclinkmp.c|  2 +-
 53 files changed, 66 insertions(+), 66 deletions(-)

diff --git a/drivers/tty/cyclades.c b/drivers/tty/cyclades.c
index 444b544..6fd94aa 100644
--- a/drivers/tty/cyclades.c
+++ b/drivers/tty/cyclades.c
@@ -3931,7 +3931,7 @@ err:
return retval;
 }
 
-static void __devexit cy_pci_remove(struct pci_dev *pdev)
+static void cy_pci_remove(struct pci_dev *pdev)
 {
struct cyclades_card *cinfo = pci_get_drvdata(pdev);
unsigned int i;
diff --git a/drivers/tty/hvc/hvc_opal.c b/drivers/tty/hvc/hvc_opal.c
index 700fedf..cd69b48 100644
--- a/drivers/tty/hvc/hvc_opal.c
+++ b/drivers/tty/hvc/hvc_opal.c
@@ -222,7 +222,7 @@ static int hvc_opal_probe(struct platform_device *dev)
return 0;
 }
 
-static int __devexit hvc_opal_remove(struct platform_device *dev)
+static int hvc_opal_remove(struct platform_device *dev)
 {
struct hvc_struct *hp = dev_get_drvdata(dev-dev);
int rc, termno;
diff --git a/drivers/tty/hvc/hvc_vio.c b/drivers/tty/hvc/hvc_vio.c
index 7f51156..0c62980 100644
--- a/drivers/tty/hvc/hvc_vio.c
+++ b/drivers/tty/hvc/hvc_vio.c
@@ -362,7 +362,7 @@ static int hvc_vio_probe(struct vio_dev *vdev,
return 0;
 }
 
-static int __devexit hvc_vio_remove(struct vio_dev *vdev)
+static int hvc_vio_remove(struct vio_dev *vdev)
 {
struct hvc_struct *hp = dev_get_drvdata(vdev-dev);
int rc, termno;
diff 

[PATCH 207/493] i2c: remove use of __devinit

2012-11-19 Thread Bill Pemberton
CONFIG_HOTPLUG is going away as an option so __devinit is no longer
needed.

Signed-off-by: Bill Pemberton wf...@virginia.edu
Cc: Jean Delvare kh...@linux-fr.org 
Cc: Wolfram Sang w.s...@pengutronix.de 
Cc: Ben Dooks  ben-li...@fluff.org 
Cc: Rudolf Marek r.ma...@assembler.cz 
Cc: Jochen Friedrich joc...@scram.de 
Cc: Peter Korsgaard jac...@sunsite.dk 
Cc: Tony Lindgren t...@atomide.com 
Cc: Olof Johansson o...@lixom.net 
Cc: Vitaly Wool vitalyw...@gmail.com 
Cc: Guan Xuetao g...@mprc.pku.edu.cn 
Cc: Barry Song baohua.s...@csr.com 
Cc: Mark M. Hoffman mhoff...@lightlink.com 
Cc: linux-...@vger.kernel.org 
Cc: linuxppc-dev@lists.ozlabs.org 
Cc: linux-o...@vger.kernel.org 
Cc: linux-arm-ker...@lists.infradead.org 
---
 drivers/i2c/busses/i2c-ali1535.c|  4 ++--
 drivers/i2c/busses/i2c-ali1563.c|  4 ++--
 drivers/i2c/busses/i2c-ali15x3.c|  4 ++--
 drivers/i2c/busses/i2c-amd756.c |  2 +-
 drivers/i2c/busses/i2c-amd8111.c|  2 +-
 drivers/i2c/busses/i2c-at91.c   |  6 +++---
 drivers/i2c/busses/i2c-au1550.c |  2 +-
 drivers/i2c/busses/i2c-cpm.c|  4 ++--
 drivers/i2c/busses/i2c-designware-pcidrv.c  |  2 +-
 drivers/i2c/busses/i2c-designware-platdrv.c |  2 +-
 drivers/i2c/busses/i2c-eg20t.c  |  2 +-
 drivers/i2c/busses/i2c-elektor.c|  4 ++--
 drivers/i2c/busses/i2c-gpio.c   |  4 ++--
 drivers/i2c/busses/i2c-highlander.c |  2 +-
 drivers/i2c/busses/i2c-hydra.c  |  2 +-
 drivers/i2c/busses/i2c-i801.c   | 14 +++---
 drivers/i2c/busses/i2c-ibm_iic.c|  4 ++--
 drivers/i2c/busses/i2c-intel-mid.c  |  2 +-
 drivers/i2c/busses/i2c-isch.c   |  2 +-
 drivers/i2c/busses/i2c-mpc.c| 20 ++--
 drivers/i2c/busses/i2c-mv64xxx.c| 12 ++--
 drivers/i2c/busses/i2c-mxs.c|  2 +-
 drivers/i2c/busses/i2c-nforce2.c|  4 ++--
 drivers/i2c/busses/i2c-nuc900.c |  2 +-
 drivers/i2c/busses/i2c-ocores.c |  2 +-
 drivers/i2c/busses/i2c-octeon.c |  6 +++---
 drivers/i2c/busses/i2c-omap.c   |  2 +-
 drivers/i2c/busses/i2c-parport-light.c  |  2 +-
 drivers/i2c/busses/i2c-pasemi.c |  2 +-
 drivers/i2c/busses/i2c-pca-isa.c|  4 ++--
 drivers/i2c/busses/i2c-pca-platform.c   |  2 +-
 drivers/i2c/busses/i2c-piix4.c  | 10 +-
 drivers/i2c/busses/i2c-pmcmsp.c |  2 +-
 drivers/i2c/busses/i2c-pnx.c|  2 +-
 drivers/i2c/busses/i2c-powermac.c   | 12 ++--
 drivers/i2c/busses/i2c-puv3.c   |  2 +-
 drivers/i2c/busses/i2c-pxa-pci.c|  2 +-
 drivers/i2c/busses/i2c-rcar.c   |  2 +-
 drivers/i2c/busses/i2c-s6000.c  |  4 ++--
 drivers/i2c/busses/i2c-sh7760.c |  4 ++--
 drivers/i2c/busses/i2c-sirf.c   |  2 +-
 drivers/i2c/busses/i2c-sis5595.c|  4 ++--
 drivers/i2c/busses/i2c-sis630.c |  4 ++--
 drivers/i2c/busses/i2c-sis96x.c |  2 +-
 drivers/i2c/busses/i2c-tegra.c  |  2 +-
 drivers/i2c/busses/i2c-via.c|  2 +-
 drivers/i2c/busses/i2c-viapro.c |  2 +-
 drivers/i2c/busses/i2c-xiic.c   |  2 +-
 drivers/i2c/busses/i2c-xlr.c|  2 +-
 drivers/i2c/busses/scx200_acb.c | 10 +-
 drivers/i2c/muxes/i2c-mux-gpio.c|  4 ++--
 drivers/i2c/muxes/i2c-mux-pinctrl.c |  2 +-
 52 files changed, 103 insertions(+), 103 deletions(-)

diff --git a/drivers/i2c/busses/i2c-ali1535.c b/drivers/i2c/busses/i2c-ali1535.c
index cb30432..9ee96f0 100644
--- a/drivers/i2c/busses/i2c-ali1535.c
+++ b/drivers/i2c/busses/i2c-ali1535.c
@@ -139,7 +139,7 @@ static unsigned short ali1535_offset;
Note the differences between kernels with the old PCI BIOS interface and
newer kernels with the real PCI interface. In compat.h some things are
defined to make the transition easier. */
-static int __devinit ali1535_setup(struct pci_dev *dev)
+static int ali1535_setup(struct pci_dev *dev)
 {
int retval;
unsigned char temp;
@@ -502,7 +502,7 @@ static DEFINE_PCI_DEVICE_TABLE(ali1535_ids) = {
 
 MODULE_DEVICE_TABLE(pci, ali1535_ids);
 
-static int __devinit ali1535_probe(struct pci_dev *dev, const struct 
pci_device_id *id)
+static int ali1535_probe(struct pci_dev *dev, const struct pci_device_id *id)
 {
if (ali1535_setup(dev)) {
dev_warn(dev-dev,
diff --git a/drivers/i2c/busses/i2c-ali1563.c b/drivers/i2c/busses/i2c-ali1563.c
index 547a96f..55c27b9 100644
--- a/drivers/i2c/busses/i2c-ali1563.c
+++ b/drivers/i2c/busses/i2c-ali1563.c
@@ -326,7 +326,7 @@ static u32 ali1563_func(struct i2c_adapter * a)
 }
 
 
-static int __devinit ali1563_setup(struct pci_dev * dev)
+static int ali1563_setup(struct pci_dev * dev)
 {
u16 ctrl;
 
@@ -390,7 

[PATCH] vfio powerpc: enabled and supported on powernv platform

2012-11-19 Thread Alexey Kardashevskiy
VFIO implements platform independent stuff such as
a PCI driver, BAR access (via read/write on a file descriptor
or direct mapping when possible) and IRQ signaling.
The platform dependent part includes IOMMU initialization
and handling.

This patch initializes IOMMU groups based on the IOMMU
configuration discovered during the PCI scan, only POWERNV
platform is supported at the moment.

Also the patch implements an VFIO-IOMMU driver which
manages DMA mapping/unmapping requests coming from
the client (now QEMU). It also returns a DMA window
information to let the guest initialize the device tree
for a guest OS properly. Although this driver has been
tested only on POWERNV, it should work on any platform
supporting TCE tables.

To enable VFIO on POWER, enable SPAPR_TCE_IOMMU config
option.

Cc: David Gibson da...@gibson.dropbear.id.au
Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru
---
 arch/powerpc/include/asm/iommu.h |6 +
 arch/powerpc/kernel/iommu.c  |  140 +++
 arch/powerpc/platforms/powernv/pci.c |  135 +++
 drivers/iommu/Kconfig|8 ++
 drivers/vfio/Kconfig |6 +
 drivers/vfio/Makefile|1 +
 drivers/vfio/vfio_iommu_spapr_tce.c  |  247 ++
 include/linux/vfio.h |   20 +++
 8 files changed, 563 insertions(+)
 create mode 100644 drivers/vfio/vfio_iommu_spapr_tce.c

diff --git a/arch/powerpc/include/asm/iommu.h b/arch/powerpc/include/asm/iommu.h
index cbfe678..5ba66cb 100644
--- a/arch/powerpc/include/asm/iommu.h
+++ b/arch/powerpc/include/asm/iommu.h
@@ -64,30 +64,33 @@ struct iommu_pool {
 } cacheline_aligned_in_smp;
 
 struct iommu_table {
unsigned long  it_busno; /* Bus number this table belongs to */
unsigned long  it_size;  /* Size of iommu table in entries */
unsigned long  it_offset;/* Offset into global table */
unsigned long  it_base;  /* mapped address of tce table */
unsigned long  it_index; /* which iommu table this is */
unsigned long  it_type;  /* type: PCI or Virtual Bus */
unsigned long  it_blocksize; /* Entries in each block (cacheline) */
unsigned long  poolsize;
unsigned long  nr_pools;
struct iommu_pool large_pool;
struct iommu_pool pools[IOMMU_NR_POOLS];
unsigned long *it_map;   /* A simple allocation bitmap for now */
+#ifdef CONFIG_IOMMU_API
+   struct iommu_group *it_group;
+#endif
 };
 
 struct scatterlist;
 
 static inline void set_iommu_table_base(struct device *dev, void *base)
 {
dev-archdata.dma_data.iommu_table_base = base;
 }
 
 static inline void *get_iommu_table_base(struct device *dev)
 {
return dev-archdata.dma_data.iommu_table_base;
 }
 
 /* Frees table for an individual device node */
@@ -135,17 +138,20 @@ static inline void pci_iommu_init(void) { }
 extern void alloc_dart_table(void);
 #if defined(CONFIG_PPC64)  defined(CONFIG_PM)
 static inline void iommu_save(void)
 {
if (ppc_md.iommu_save)
ppc_md.iommu_save();
 }
 
 static inline void iommu_restore(void)
 {
if (ppc_md.iommu_restore)
ppc_md.iommu_restore();
 }
 #endif
 
+extern long iommu_put_tces(struct iommu_table *tbl, unsigned long entry, 
uint64_t tce,
+   enum dma_data_direction direction, unsigned long pages);
+
 #endif /* __KERNEL__ */
 #endif /* _ASM_IOMMU_H */
diff --git a/arch/powerpc/kernel/iommu.c b/arch/powerpc/kernel/iommu.c
index ff5a6ce..94f614b 100644
--- a/arch/powerpc/kernel/iommu.c
+++ b/arch/powerpc/kernel/iommu.c
@@ -32,30 +32,31 @@
 #include linux/dma-mapping.h
 #include linux/bitmap.h
 #include linux/iommu-helper.h
 #include linux/crash_dump.h
 #include linux/hash.h
 #include linux/fault-inject.h
 #include linux/pci.h
 #include asm/io.h
 #include asm/prom.h
 #include asm/iommu.h
 #include asm/pci-bridge.h
 #include asm/machdep.h
 #include asm/kdump.h
 #include asm/fadump.h
 #include asm/vio.h
+#include asm/tce.h
 
 #define DBG(...)
 
 static int novmerge;
 
 static void __iommu_free(struct iommu_table *, dma_addr_t, unsigned int);
 
 static int __init setup_iommu(char *str)
 {
if (!strcmp(str, novmerge))
novmerge = 1;
else if (!strcmp(str, vmerge))
novmerge = 0;
return 1;
 }
@@ -844,15 +845,154 @@ void *iommu_alloc_coherent(struct device *dev, struct 
iommu_table *tbl,
 }
 
 void iommu_free_coherent(struct iommu_table *tbl, size_t size,
 void *vaddr, dma_addr_t dma_handle)
 {
if (tbl) {
unsigned int nio_pages;
 
size = PAGE_ALIGN(size);
nio_pages = size  IOMMU_PAGE_SHIFT;
iommu_free(tbl, dma_handle, nio_pages);
size = PAGE_ALIGN(size);
free_pages((unsigned long)vaddr, get_order(size));
}
 }
+
+#ifdef CONFIG_IOMMU_API
+/*
+ * SPAPR TCE API
+ */

Re: [PATCH] powerpc: added DSCR support to ptrace

2012-11-19 Thread Alexey Kardashevskiy

Ping?

On 15/10/12 17:18, Alexey Kardashevskiy wrote:

The DSCR (aka Data Stream Control Register) is supported on some
server PowerPC chips and allow some control over the prefetch
of data streams.

The kernel already supports DSCR value per thread but there is also
a need in a ability to change it from an external process for
the specific pid.

The patch adds new register index PT_DSCR (index=44) which can be
set/get by:
   ptrace(PTRACE_POKEUSER, traced_process, PT_DSCR  3, dscr);
   dscr = ptrace(PTRACE_PEEKUSER, traced_process, PT_DSCR  3, NULL);

Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru
---
  arch/powerpc/include/asm/ptrace.h |3 ++-
  arch/powerpc/kernel/ptrace.c  |   16 
  2 files changed, 18 insertions(+), 1 deletion(-)

diff --git a/arch/powerpc/include/asm/ptrace.h 
b/arch/powerpc/include/asm/ptrace.h
index 84cc784..946c556 100644
--- a/arch/powerpc/include/asm/ptrace.h
+++ b/arch/powerpc/include/asm/ptrace.h
@@ -276,7 +276,8 @@ static inline unsigned long 
regs_get_kernel_stack_nth(struct pt_regs *regs,
  #define PT_DAR41
  #define PT_DSISR 42
  #define PT_RESULT 43
-#define PT_REGS_COUNT 44
+#define PT_DSCR 44
+#define PT_REGS_COUNT 45

  #define PT_FPR0   48  /* each FP reg occupies 2 slots in this space */

diff --git a/arch/powerpc/kernel/ptrace.c b/arch/powerpc/kernel/ptrace.c
index 8d8e028..4798acf 100644
--- a/arch/powerpc/kernel/ptrace.c
+++ b/arch/powerpc/kernel/ptrace.c
@@ -179,6 +179,17 @@ static int set_user_msr(struct task_struct *task, unsigned 
long msr)
return 0;
  }

+static unsigned long get_user_dscr(struct task_struct *task)
+{
+   return task-thread.dscr;
+}
+
+static int set_user_dscr(struct task_struct *task, unsigned long dscr)
+{
+   task-thread.dscr = dscr;
+   return 0;
+}
+
  /*
   * We prevent mucking around with the reserved area of trap
   * which are used internally by the kernel.
@@ -200,6 +211,9 @@ unsigned long ptrace_get_reg(struct task_struct *task, int 
regno)
if (regno == PT_MSR)
return get_user_msr(task);

+   if (regno == PT_DSCR)
+   return get_user_dscr(task);
+
if (regno  (sizeof(struct pt_regs) / sizeof(unsigned long)))
return ((unsigned long *)task-thread.regs)[regno];

@@ -218,6 +232,8 @@ int ptrace_put_reg(struct task_struct *task, int regno, 
unsigned long data)
return set_user_msr(task, data);
if (regno == PT_TRAP)
return set_user_trap(task, data);
+   if (regno == PT_DSCR)
+   return set_user_dscr(task, data);

if (regno = PT_MAX_PUT_REG) {
((unsigned long *)task-thread.regs)[regno] = data;




--
Alexey
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev


Re: [PATCH 158/493] video: remove use of __devinit

2012-11-19 Thread Jingoo Han
On Tuesday, November 20, 2012 3:22 AM, Bill Pemberton wrote
 
 CONFIG_HOTPLUG is going away as an option so __devinit is no longer
 needed.
 
 Signed-off-by: Bill Pemberton wf...@virginia.edu
 Cc: Florian Tobias Schandinat florianschandi...@gmx.de
 Cc: Jaya Kumar jay...@intworks.biz
 Cc: Paul Mackerras pau...@samba.org
 Cc: Benjamin Herrenschmidt b...@kernel.crashing.org
 Cc: Russell King li...@arm.linux.org.uk
 Cc: Jingoo Han jg1@samsung.com
 Cc: Ferenc Bakonyi f...@drama.obuda.kando.hu
 Cc: Antonino Daplas adap...@gmail.com
 Cc: Maik Broemme mbroe...@plusserver.de
 Cc: David Brown dav...@codeaurora.org
 Cc: Daniel Walker dwal...@fifo99.com
 Cc: Bryan Huntsman bry...@codeaurora.org
 Cc: Wan ZongShun mcuos@gmail.com
 Cc: Tomi Valkeinen tomi.valkei...@ti.com
 Cc: Geoff Levand ge...@infradead.org
 Cc: Kristoffer Ericson kristoffer.eric...@gmail.com
 Cc: Ben Dooks ben-li...@fluff.org
 Cc: Kukjin Kim kgene@samsung.com
 Cc: Thomas Winischhofer tho...@winischhofer.net
 Cc: Michal Januszewski sp...@gentoo.org
 Cc: Tony Prisk li...@prisktech.co.nz
 Cc: linux-fb...@vger.kernel.org
 Cc: linux-arm-ker...@lists.infradead.org
 Cc: linux-ge...@lists.infradead.org
 Cc: linux-nvi...@lists.surfsouth.com
 Cc: linux-arm-...@vger.kernel.org
 Cc: linux-o...@vger.kernel.org
 Cc: linuxppc-dev@lists.ozlabs.org
 Cc: cbe-oss-...@lists.ozlabs.org
 Cc: linux-samsung-...@vger.kernel.org
 Cc: xen-de...@lists.xensource.com
 Cc: virtualizat...@lists.linux-foundation.org
 ---
  drivers/video/acornfb.c| 14 ++--
  drivers/video/arcfb.c  |  2 +-
  drivers/video/arkfb.c  |  2 +-
  drivers/video/asiliantfb.c |  6 +-
  drivers/video/aty/aty128fb.c   | 22 +++---
  drivers/video/aty/atyfb_base.c | 22 +++---
  drivers/video/aty/mach64_ct.c  |  4 +-
  drivers/video/aty/mach64_cursor.c  |  2 +-
  drivers/video/aty/radeon_base.c| 14 ++--
  drivers/video/aty/radeon_monitor.c | 16 ++---
  drivers/video/au1100fb.c   |  2 +-
  drivers/video/au1200fb.c   |  2 +-
  drivers/video/auo_k1900fb.c|  2 +-
  drivers/video/auo_k1901fb.c|  2 +-
  drivers/video/auo_k190x.c  |  2 +-
  drivers/video/bf537-lq035.c|  6 +-
  drivers/video/bf54x-lq043fb.c  |  2 +-
  drivers/video/bfin-lq035q1-fb.c|  6 +-
  drivers/video/bfin-t350mcqb-fb.c   |  2 +-
  drivers/video/bfin_adv7393fb.c |  2 +-
  drivers/video/broadsheetfb.c   |  8 +--
  drivers/video/bw2.c|  6 +-
  drivers/video/carminefb.c  |  4 +-
  drivers/video/cg14.c   |  4 +-
  drivers/video/cg3.c|  8 +--
  drivers/video/cg6.c|  8 +--
  drivers/video/chipsfb.c|  4 +-
  drivers/video/cirrusfb.c   | 10 +--
  drivers/video/cobalt_lcdfb.c   |  2 +-
  drivers/video/console/sticore.c| 47 ++---
  drivers/video/cyber2000fb.c| 12 ++--
  drivers/video/da8xx-fb.c   |  2 +-
  drivers/video/dnfb.c   |  2 +-
  drivers/video/ep93xx-fb.c  |  4 +-
  drivers/video/exynos/exynos_dp_core.c  |  2 +-
  drivers/video/ffb.c|  2 +-
  drivers/video/fm2fb.c  |  4 +-
  drivers/video/fsl-diu-fb.c |  4 +-
  drivers/video/gbefb.c  |  4 +-
  drivers/video/geode/gx1fb_core.c   |  6 +-
  drivers/video/geode/gxfb_core.c| 10 +--
  drivers/video/geode/lxfb_core.c| 10 +--
  drivers/video/grvga.c  |  4 +-
  drivers/video/gxt4500.c|  4 +-
  drivers/video/hecubafb.c   |  2 +-
  drivers/video/hgafb.c  |  4 +-
  drivers/video/hitfb.c  |  2 +-
  drivers/video/hpfb.c   |  4 +-
  drivers/video/i740fb.c |  4 +-
  drivers/video/i810/i810_main.c | 26 +++
  drivers/video/i810/i810_main.h |  2 +-
  drivers/video/imsttfb.c|  4 +-
  drivers/video/intelfb/intelfbdrv.c | 16 ++---
  drivers/video/jz4740_fb.c  |  2 +-
  drivers/video/kyro/fbdev.c |  2 +-
  drivers/video/leo.c|  2 +-
  drivers/video/mb862xx/mb862xxfbdrv.c   |  6 +-

Re: [PATCH 226/493] dma: remove use of __devinit

2012-11-19 Thread viresh kumar
On Mon, Nov 19, 2012 at 11:52 PM, Bill Pemberton wf...@virginia.edu wrote:
 CONFIG_HOTPLUG is going away as an option so __devinit is no longer
 needed.

 Signed-off-by: Bill Pemberton wf...@virginia.edu
 Cc: Viresh Kumar viresh.li...@gmail.com
 Cc: Li Yang le...@freescale.com
 Cc: Zhang Wei z...@zh-kernel.org
 Cc: Barry Song baohua.s...@csr.com
 Cc: linuxppc-dev@lists.ozlabs.org
 Cc: linux-arm-ker...@lists.infradead.org
 ---
  drivers/dma/dw_dmac.c | 4 ++--

Acked-by: Viresh Kumar viresh.ku...@linaro.org
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev


Re: Forward: [PATCH 146/493] ASoC: remove use of __devexit_p

2012-11-19 Thread Mark Brown
On Tue, Nov 20, 2012 at 07:21:36AM +0100, Takashi Iwai wrote:
 Yet another one for ASoC.

 Date: Mon, 19 Nov 2012 13:21:35 -0500
 From: Bill Pemberton wf...@virginia.edu
 To: gre...@linuxfoundation.org
 Cc: Jaroslav Kysela pe...@perex.cz, Takashi Iwai ti...@suse.de, M R
  Swami Reddy mr.swami.re...@ti.com, Vishwas A Deshpande
  vishwas.a.deshpa...@ti.com, Peter Ujfalusi peter.ujfal...@ti.com,
  Jarkko Nikula jarkko.nik...@bitmer.com, Eric Miao
  eric.y.m...@gmail.com, Russell King li...@arm.linux.org.uk, Haojian
  Zhuang haojian.zhu...@gmail.com, Philipp Zabel
  philipp.za...@gmail.com, Paul Parsons lost.dista...@yahoo.com, Ben
  Dooks ben-li...@fluff.org, Kukjin Kim kgene@samsung.com,
  alsa-de...@alsa-project.org, uclinux-dist-de...@blackfin.uclinux.org,
  device-drivers-de...@blackfin.uclinux.org,
  patc...@opensource.wolfsonmicro.com, linuxppc-dev@lists.ozlabs.org,
  linux-o...@vger.kernel.org, linux-arm-ker...@lists.infradead.org,
  linux-samsung-...@vger.kernel.org

This time you've got an extravagantly large CC list but not managed to
CC the maintainers at all...  ho hum.  Anyway, this doesn't apply
against current code due to the Atmel changes.  Please rebase against
for-next (or ideally the topic branches) and resend.


signature.asc
Description: Digital signature
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [PATCH v3 06/12] memory-hotplug: unregister memory section on SPARSEMEM_VMEMMAP

2012-11-19 Thread Wen Congyang
At 11/20/2012 02:22 PM, Jaegeuk Hanse Wrote:
 On 11/01/2012 05:44 PM, Wen Congyang wrote:
 From: Yasuaki Ishimatsu isimatu.yasu...@jp.fujitsu.com

 Currently __remove_section for SPARSEMEM_VMEMMAP does nothing. But
 even if
 we use SPARSEMEM_VMEMMAP, we can unregister the memory_section.

 So the patch add unregister_memory_section() into __remove_section().
 
 Hi Yasuaki,
 
 In order to review this patch, I should dig sparse memory codes in
 advance. But I have some confuse of codes. Why need encode/decode mem
 map instead of set mem_map to ms-section_mem_map directly?

The memmap is aligned, and the low bits are zero. We store some information
in these bits. So we need to encode/decode memmap here.

Thanks
Wen Congyang

 
 Regards,
 Jaegeuk
 

 CC: David Rientjes rient...@google.com
 CC: Jiang Liu liu...@gmail.com
 CC: Len Brown len.br...@intel.com
 CC: Christoph Lameter c...@linux.com
 Cc: Minchan Kim minchan@gmail.com
 CC: Andrew Morton a...@linux-foundation.org
 CC: KOSAKI Motohiro kosaki.motoh...@jp.fujitsu.com
 CC: Wen Congyang we...@cn.fujitsu.com
 Signed-off-by: Yasuaki Ishimatsu isimatu.yasu...@jp.fujitsu.com
 ---
   mm/memory_hotplug.c | 13 -
   1 file changed, 8 insertions(+), 5 deletions(-)

 diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c
 index ca07433..66a79a7 100644
 --- a/mm/memory_hotplug.c
 +++ b/mm/memory_hotplug.c
 @@ -286,11 +286,14 @@ static int __meminit __add_section(int nid,
 struct zone *zone,
   #ifdef CONFIG_SPARSEMEM_VMEMMAP
   static int __remove_section(struct zone *zone, struct mem_section *ms)
   {
 -/*
 - * XXX: Freeing memmap with vmemmap is not implement yet.
 - *  This should be removed later.
 - */
 -return -EBUSY;
 +int ret = -EINVAL;
 +
 +if (!valid_section(ms))
 +return ret;
 +
 +ret = unregister_memory_section(ms);
 +
 +return ret;
   }
   #else
   static int __remove_section(struct zone *zone, struct mem_section *ms)
 
 

___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev


Re: [PATCH] PCI: MSI: Restore read_msi_msg_desc(); add get_cached_msi_msg_desc()

2012-11-19 Thread Benjamin Herrenschmidt
On Fri, 2010-07-23 at 14:56 +0100, Ben Hutchings wrote:
 commit 2ca1af9aa3285c6a5f103ed31ad09f7399fc65d7 PCI: MSI: Remove
 unsafe and unnecessary hardware access changed read_msi_msg_desc() to
 return the last MSI message written instead of reading it from the
 device, since it may be called while the device is in a reduced
 power state.

Looks reasonable... Jesse ?

Cheers,
Ben.

 However, the pSeries platform code really does need to read messages
 from the device, since they are initially written by firmware.
 Therefore:
 - Restore the previous behaviour of read_msi_msg_desc()
 - Add new functions get_cached_msi_msg{,_desc}() which return the
   last MSI message written
 - Use the new functions where appropriate
 
 Signed-off-by: Ben Hutchings bhutchi...@solarflare.com
 ---
 Compile-tested only.
 
 Ben.
 
  arch/ia64/kernel/msi_ia64.c|2 +-
  arch/ia64/sn/kernel/msi_sn.c   |2 +-
  arch/x86/kernel/apic/io_apic.c |2 +-
  drivers/pci/msi.c  |   47 +++
  include/linux/msi.h|2 +
  5 files changed, 47 insertions(+), 8 deletions(-)
 
 diff --git a/arch/ia64/kernel/msi_ia64.c b/arch/ia64/kernel/msi_ia64.c
 index 6c89228..4a746ea 100644
 --- a/arch/ia64/kernel/msi_ia64.c
 +++ b/arch/ia64/kernel/msi_ia64.c
 @@ -25,7 +25,7 @@ static int ia64_set_msi_irq_affinity(unsigned int irq,
   if (irq_prepare_move(irq, cpu))
   return -1;
  
 - read_msi_msg(irq, msg);
 + get_cached_msi_msg(irq, msg);
  
   addr = msg.address_lo;
   addr = MSI_ADDR_DEST_ID_MASK;
 diff --git a/arch/ia64/sn/kernel/msi_sn.c b/arch/ia64/sn/kernel/msi_sn.c
 index ebfdd6a..0c72dd4 100644
 --- a/arch/ia64/sn/kernel/msi_sn.c
 +++ b/arch/ia64/sn/kernel/msi_sn.c
 @@ -175,7 +175,7 @@ static int sn_set_msi_irq_affinity(unsigned int irq,
* Release XIO resources for the old MSI PCI address
*/
  
 - read_msi_msg(irq, msg);
 + get_cached_msi_msg(irq, msg);
  sn_pdev = (struct pcidev_info *)sn_irq_info-irq_pciioinfo;
   pdev = sn_pdev-pdi_linux_pcidev;
   provider = SN_PCIDEV_BUSPROVIDER(pdev);
 diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c
 index e41ed24..4dc0084 100644
 --- a/arch/x86/kernel/apic/io_apic.c
 +++ b/arch/x86/kernel/apic/io_apic.c
 @@ -3397,7 +3397,7 @@ static int set_msi_irq_affinity(unsigned int irq, const 
 struct cpumask *mask)
  
   cfg = desc-chip_data;
  
 - read_msi_msg_desc(desc, msg);
 + get_cached_msi_msg_desc(desc, msg);
  
   msg.data = ~MSI_DATA_VECTOR_MASK;
   msg.data |= MSI_DATA_VECTOR(cfg-vector);
 diff --git a/drivers/pci/msi.c b/drivers/pci/msi.c
 index 4c14f31..69b7be3 100644
 --- a/drivers/pci/msi.c
 +++ b/drivers/pci/msi.c
 @@ -197,9 +197,46 @@ void read_msi_msg_desc(struct irq_desc *desc, struct 
 msi_msg *msg)
  {
   struct msi_desc *entry = get_irq_desc_msi(desc);
  
 - /* We do not touch the hardware (which may not even be
 -  * accessible at the moment) but return the last message
 -  * written.  Assert that this is valid, assuming that
 + BUG_ON(entry-dev-current_state != PCI_D0);
 +
 + if (entry-msi_attrib.is_msix) {
 + void __iomem *base = entry-mask_base +
 + entry-msi_attrib.entry_nr * PCI_MSIX_ENTRY_SIZE;
 +
 + msg-address_lo = readl(base + PCI_MSIX_ENTRY_LOWER_ADDR);
 + msg-address_hi = readl(base + PCI_MSIX_ENTRY_UPPER_ADDR);
 + msg-data = readl(base + PCI_MSIX_ENTRY_DATA);
 + } else {
 + struct pci_dev *dev = entry-dev;
 + int pos = entry-msi_attrib.pos;
 + u16 data;
 +
 + pci_read_config_dword(dev, msi_lower_address_reg(pos),
 + msg-address_lo);
 + if (entry-msi_attrib.is_64) {
 + pci_read_config_dword(dev, msi_upper_address_reg(pos),
 + msg-address_hi);
 + pci_read_config_word(dev, msi_data_reg(pos, 1), data);
 + } else {
 + msg-address_hi = 0;
 + pci_read_config_word(dev, msi_data_reg(pos, 0), data);
 + }
 + msg-data = data;
 + }
 +}
 +
 +void read_msi_msg(unsigned int irq, struct msi_msg *msg)
 +{
 + struct irq_desc *desc = irq_to_desc(irq);
 +
 + read_msi_msg_desc(desc, msg);
 +}
 +
 +void get_cached_msi_msg_desc(struct irq_desc *desc, struct msi_msg *msg)
 +{
 + struct msi_desc *entry = get_irq_desc_msi(desc);
 +
 + /* Assert that the cache is valid, assuming that
* valid messages are not all-zeroes. */
   BUG_ON(!(entry-msg.address_hi | entry-msg.address_lo |
entry-msg.data));
 @@ -207,11 +244,11 @@ void read_msi_msg_desc(struct irq_desc *desc, struct 
 msi_msg *msg)
   *msg = entry-msg;
  }
  
 -void read_msi_msg(unsigned int irq, struct msi_msg *msg)
 +void get_cached_msi_msg(unsigned int irq, struct