mpic_msgr.c (df9b42963f2d010ae3163a894ce22cf6b27cd344) | mpic_msgr.c (cad5cef62a5a0c525d39118d2e94b6e2034d5e05) |
---|---|
1/* 2 * Copyright 2011-2012, Meador Inge, Mentor Graphics Corporation. 3 * 4 * Some ideas based on un-pushed work done by Vivek Mahajan, Jason Jin, and 5 * Mingkai Hu from Freescale Semiconductor, Inc. 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License --- 146 unchanged lines hidden (view full) --- 155 break; 156 } 157 158 return index == number_of_blocks ? -1 : index; 159} 160 161/* The probe function for a single message register block. 162 */ | 1/* 2 * Copyright 2011-2012, Meador Inge, Mentor Graphics Corporation. 3 * 4 * Some ideas based on un-pushed work done by Vivek Mahajan, Jason Jin, and 5 * Mingkai Hu from Freescale Semiconductor, Inc. 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License --- 146 unchanged lines hidden (view full) --- 155 break; 156 } 157 158 return index == number_of_blocks ? -1 : index; 159} 160 161/* The probe function for a single message register block. 162 */ |
163static __devinit int mpic_msgr_probe(struct platform_device *dev) | 163static int mpic_msgr_probe(struct platform_device *dev) |
164{ 165 void __iomem *msgr_block_addr; 166 int block_number; 167 struct resource rsrc; 168 unsigned int i; 169 unsigned int irq_index; 170 struct device_node *np = dev->dev.of_node; 171 unsigned int receive_mask; --- 114 unchanged lines hidden --- | 164{ 165 void __iomem *msgr_block_addr; 166 int block_number; 167 struct resource rsrc; 168 unsigned int i; 169 unsigned int irq_index; 170 struct device_node *np = dev->dev.of_node; 171 unsigned int receive_mask; --- 114 unchanged lines hidden --- |