aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2014-01-23 21:36:55 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2014-01-23 21:36:55 -0500
commitf2c73464d7b399cf4e0c601c1c7d7b079080fa52 (patch)
tree902decd0c280757075bce5068fee679e0ccc261e /arch/arm/mach-pxa
parent93abdb7785503c269e73e811f3c7fd23a9243b14 (diff)
parent273c2279ca502267fac40bcaecb35942380c429c (diff)
Merge tag 'cleanup-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
Pull ARM SoC cleanups from Olof Johansson: "This is the branch where we usually queue up cleanup efforts, moving drivers out of the architecture directory, header file restructuring, etc. Sometimes they tangle with new development so it's hard to keep it strictly to cleanups. Some of the things included in this branch are: * Atmel SAMA5 conversion to common clock * Reset framework conversion for tegra platforms - Some of this depends on tegra clock driver reworks that are shared with Mike Turquette's clk tree. * Tegra DMA refactoring, which are shared branches with the DMA tree. * Removal of some header files on exynos to prepare for multiplatform" * tag 'cleanup-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (169 commits) ARM: mvebu: move Armada 370/XP specific definitions to armada-370-xp.h ARM: mvebu: remove prototypes of non-existing functions from common.h ARM: mvebu: move ARMADA_XP_MAX_CPUS to armada-370-xp.h serial: sh-sci: Rework baud rate calculation serial: sh-sci: Compute overrun_bit without using baud rate algo serial: sh-sci: Remove unused GPIO request code serial: sh-sci: Move overrun_bit and error_mask fields out of pdata serial: sh-sci: Support resources passed through platform resources serial: sh-sci: Don't check IRQ in verify port operation serial: sh-sci: Set the UPF_FIXED_PORT flag serial: sh-sci: Remove duplicate interrupt check in verify port op serial: sh-sci: Simplify baud rate calculation algorithms serial: sh-sci: Remove baud rate calculation algorithm 5 serial: sh-sci: Sort headers alphabetically ARM: EXYNOS: Kill exynos_pm_late_initcall() ARM: EXYNOS: Consolidate selection of PM_GENERIC_DOMAINS for Exynos4 ARM: at91: switch Calao QIL-A9260 board to DT clk: at91: fix pmc_clk_ids data type attriubte PM / devfreq: use inclusion <mach/map.h> instead of <plat/map-s5p.h> ARM: EXYNOS: remove <mach/regs-clock.h> for exynos ...
Diffstat (limited to 'arch/arm/mach-pxa')
-rw-r--r--arch/arm/mach-pxa/am200epd.c3
-rw-r--r--arch/arm/mach-pxa/am300epd.c3
-rw-r--r--arch/arm/mach-pxa/em-x270.c3
-rw-r--r--arch/arm/mach-pxa/irq.c4
-rw-r--r--arch/arm/mach-pxa/magician.c2
-rw-r--r--arch/arm/mach-pxa/mainstone.c2
-rw-r--r--arch/arm/mach-pxa/pcm990-baseboard.c2
-rw-r--r--arch/arm/mach-pxa/sharpsl_pm.c8
-rw-r--r--arch/arm/mach-pxa/time.c2
-rw-r--r--arch/arm/mach-pxa/trizeps4.c3
10 files changed, 12 insertions, 20 deletions
diff --git a/arch/arm/mach-pxa/am200epd.c b/arch/arm/mach-pxa/am200epd.c
index ffa6d811aad8..12fb0f4ae359 100644
--- a/arch/arm/mach-pxa/am200epd.c
+++ b/arch/arm/mach-pxa/am200epd.c
@@ -293,8 +293,7 @@ static int am200_setup_irq(struct fb_info *info)
293 int ret; 293 int ret;
294 294
295 ret = request_irq(PXA_GPIO_TO_IRQ(RDY_GPIO_PIN), am200_handle_irq, 295 ret = request_irq(PXA_GPIO_TO_IRQ(RDY_GPIO_PIN), am200_handle_irq,
296 IRQF_DISABLED|IRQF_TRIGGER_FALLING, 296 IRQF_TRIGGER_FALLING, "AM200", info->par);
297 "AM200", info->par);
298 if (ret) 297 if (ret)
299 dev_err(&am200_device->dev, "request_irq failed: %d\n", ret); 298 dev_err(&am200_device->dev, "request_irq failed: %d\n", ret);
300 299
diff --git a/arch/arm/mach-pxa/am300epd.c b/arch/arm/mach-pxa/am300epd.c
index 3dfec1ec462d..c9f309ae88c5 100644
--- a/arch/arm/mach-pxa/am300epd.c
+++ b/arch/arm/mach-pxa/am300epd.c
@@ -241,8 +241,7 @@ static int am300_setup_irq(struct fb_info *info)
241 struct broadsheetfb_par *par = info->par; 241 struct broadsheetfb_par *par = info->par;
242 242
243 ret = request_irq(PXA_GPIO_TO_IRQ(RDY_GPIO_PIN), am300_handle_irq, 243 ret = request_irq(PXA_GPIO_TO_IRQ(RDY_GPIO_PIN), am300_handle_irq,
244 IRQF_DISABLED|IRQF_TRIGGER_RISING, 244 IRQF_TRIGGER_RISING, "AM300", par);
245 "AM300", par);
246 if (ret) 245 if (ret)
247 dev_err(&am300_device->dev, "request_irq failed: %d\n", ret); 246 dev_err(&am300_device->dev, "request_irq failed: %d\n", ret);
248 247
diff --git a/arch/arm/mach-pxa/em-x270.c b/arch/arm/mach-pxa/em-x270.c
index 8eb4e23c561d..6915a9f6b3a3 100644
--- a/arch/arm/mach-pxa/em-x270.c
+++ b/arch/arm/mach-pxa/em-x270.c
@@ -564,8 +564,7 @@ static int em_x270_mci_init(struct device *dev,
564 } 564 }
565 565
566 err = request_irq(gpio_to_irq(mmc_cd), em_x270_detect_int, 566 err = request_irq(gpio_to_irq(mmc_cd), em_x270_detect_int,
567 IRQF_DISABLED | IRQF_TRIGGER_RISING | 567 IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING,
568 IRQF_TRIGGER_FALLING,
569 "MMC card detect", data); 568 "MMC card detect", data);
570 if (err) { 569 if (err) {
571 dev_err(dev, "can't request MMC card detect IRQ: %d\n", err); 570 dev_err(dev, "can't request MMC card detect IRQ: %d\n", err);
diff --git a/arch/arm/mach-pxa/irq.c b/arch/arm/mach-pxa/irq.c
index b6cc1816463e..0eecd83c624e 100644
--- a/arch/arm/mach-pxa/irq.c
+++ b/arch/arm/mach-pxa/irq.c
@@ -235,8 +235,6 @@ static const struct of_device_id intc_ids[] __initconst = {
235void __init pxa_dt_irq_init(int (*fn)(struct irq_data *, unsigned int)) 235void __init pxa_dt_irq_init(int (*fn)(struct irq_data *, unsigned int))
236{ 236{
237 struct device_node *node; 237 struct device_node *node;
238 const struct of_device_id *of_id;
239 struct pxa_intc_conf *conf;
240 struct resource res; 238 struct resource res;
241 int n, ret; 239 int n, ret;
242 240
@@ -245,8 +243,6 @@ void __init pxa_dt_irq_init(int (*fn)(struct irq_data *, unsigned int))
245 pr_err("Failed to find interrupt controller in arch-pxa\n"); 243 pr_err("Failed to find interrupt controller in arch-pxa\n");
246 return; 244 return;
247 } 245 }
248 of_id = of_match_node(intc_ids, node);
249 conf = of_id->data;
250 246
251 ret = of_property_read_u32(node, "marvell,intc-nr-irqs", 247 ret = of_property_read_u32(node, "marvell,intc-nr-irqs",
252 &pxa_internal_irq_nr); 248 &pxa_internal_irq_nr);
diff --git a/arch/arm/mach-pxa/magician.c b/arch/arm/mach-pxa/magician.c
index fab30d666cc7..a9761c293028 100644
--- a/arch/arm/mach-pxa/magician.c
+++ b/arch/arm/mach-pxa/magician.c
@@ -634,7 +634,7 @@ static struct platform_device bq24022 = {
634static int magician_mci_init(struct device *dev, 634static int magician_mci_init(struct device *dev,
635 irq_handler_t detect_irq, void *data) 635 irq_handler_t detect_irq, void *data)
636{ 636{
637 return request_irq(IRQ_MAGICIAN_SD, detect_irq, IRQF_DISABLED, 637 return request_irq(IRQ_MAGICIAN_SD, detect_irq, 0,
638 "mmc card detect", data); 638 "mmc card detect", data);
639} 639}
640 640
diff --git a/arch/arm/mach-pxa/mainstone.c b/arch/arm/mach-pxa/mainstone.c
index 08ccc0718f31..78b84c0dfc79 100644
--- a/arch/arm/mach-pxa/mainstone.c
+++ b/arch/arm/mach-pxa/mainstone.c
@@ -401,7 +401,7 @@ static int mainstone_mci_init(struct device *dev, irq_handler_t mstone_detect_in
401 */ 401 */
402 MST_MSCWR1 &= ~MST_MSCWR1_MS_SEL; 402 MST_MSCWR1 &= ~MST_MSCWR1_MS_SEL;
403 403
404 err = request_irq(MAINSTONE_MMC_IRQ, mstone_detect_int, IRQF_DISABLED, 404 err = request_irq(MAINSTONE_MMC_IRQ, mstone_detect_int, 0,
405 "MMC card detect", data); 405 "MMC card detect", data);
406 if (err) 406 if (err)
407 printk(KERN_ERR "mainstone_mci_init: MMC/SD: can't request MMC card detect IRQ\n"); 407 printk(KERN_ERR "mainstone_mci_init: MMC/SD: can't request MMC card detect IRQ\n");
diff --git a/arch/arm/mach-pxa/pcm990-baseboard.c b/arch/arm/mach-pxa/pcm990-baseboard.c
index 9a4e470f162b..2897da2a5df6 100644
--- a/arch/arm/mach-pxa/pcm990-baseboard.c
+++ b/arch/arm/mach-pxa/pcm990-baseboard.c
@@ -327,7 +327,7 @@ static int pcm990_mci_init(struct device *dev, irq_handler_t mci_detect_int,
327{ 327{
328 int err; 328 int err;
329 329
330 err = request_irq(PCM027_MMCDET_IRQ, mci_detect_int, IRQF_DISABLED, 330 err = request_irq(PCM027_MMCDET_IRQ, mci_detect_int, 0,
331 "MMC card detect", data); 331 "MMC card detect", data);
332 if (err) 332 if (err)
333 printk(KERN_ERR "pcm990_mci_init: MMC/SD: can't request MMC " 333 printk(KERN_ERR "pcm990_mci_init: MMC/SD: can't request MMC "
diff --git a/arch/arm/mach-pxa/sharpsl_pm.c b/arch/arm/mach-pxa/sharpsl_pm.c
index 0a36d3585f26..051a6555cbf9 100644
--- a/arch/arm/mach-pxa/sharpsl_pm.c
+++ b/arch/arm/mach-pxa/sharpsl_pm.c
@@ -860,18 +860,18 @@ static int sharpsl_pm_probe(struct platform_device *pdev)
860 860
861 /* Register interrupt handlers */ 861 /* Register interrupt handlers */
862 irq = gpio_to_irq(sharpsl_pm.machinfo->gpio_acin); 862 irq = gpio_to_irq(sharpsl_pm.machinfo->gpio_acin);
863 if (request_irq(irq, sharpsl_ac_isr, IRQF_DISABLED | IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING, "AC Input Detect", sharpsl_ac_isr)) { 863 if (request_irq(irq, sharpsl_ac_isr, IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING, "AC Input Detect", sharpsl_ac_isr)) {
864 dev_err(sharpsl_pm.dev, "Could not get irq %d.\n", irq); 864 dev_err(sharpsl_pm.dev, "Could not get irq %d.\n", irq);
865 } 865 }
866 866
867 irq = gpio_to_irq(sharpsl_pm.machinfo->gpio_batlock); 867 irq = gpio_to_irq(sharpsl_pm.machinfo->gpio_batlock);
868 if (request_irq(irq, sharpsl_fatal_isr, IRQF_DISABLED | IRQF_TRIGGER_FALLING, "Battery Cover", sharpsl_fatal_isr)) { 868 if (request_irq(irq, sharpsl_fatal_isr, IRQF_TRIGGER_FALLING, "Battery Cover", sharpsl_fatal_isr)) {
869 dev_err(sharpsl_pm.dev, "Could not get irq %d.\n", irq); 869 dev_err(sharpsl_pm.dev, "Could not get irq %d.\n", irq);
870 } 870 }
871 871
872 if (sharpsl_pm.machinfo->gpio_fatal) { 872 if (sharpsl_pm.machinfo->gpio_fatal) {
873 irq = gpio_to_irq(sharpsl_pm.machinfo->gpio_fatal); 873 irq = gpio_to_irq(sharpsl_pm.machinfo->gpio_fatal);
874 if (request_irq(irq, sharpsl_fatal_isr, IRQF_DISABLED | IRQF_TRIGGER_FALLING, "Fatal Battery", sharpsl_fatal_isr)) { 874 if (request_irq(irq, sharpsl_fatal_isr, IRQF_TRIGGER_FALLING, "Fatal Battery", sharpsl_fatal_isr)) {
875 dev_err(sharpsl_pm.dev, "Could not get irq %d.\n", irq); 875 dev_err(sharpsl_pm.dev, "Could not get irq %d.\n", irq);
876 } 876 }
877 } 877 }
@@ -879,7 +879,7 @@ static int sharpsl_pm_probe(struct platform_device *pdev)
879 if (sharpsl_pm.machinfo->batfull_irq) { 879 if (sharpsl_pm.machinfo->batfull_irq) {
880 /* Register interrupt handler. */ 880 /* Register interrupt handler. */
881 irq = gpio_to_irq(sharpsl_pm.machinfo->gpio_batfull); 881 irq = gpio_to_irq(sharpsl_pm.machinfo->gpio_batfull);
882 if (request_irq(irq, sharpsl_chrg_full_isr, IRQF_DISABLED | IRQF_TRIGGER_RISING, "CO", sharpsl_chrg_full_isr)) { 882 if (request_irq(irq, sharpsl_chrg_full_isr, IRQF_TRIGGER_RISING, "CO", sharpsl_chrg_full_isr)) {
883 dev_err(sharpsl_pm.dev, "Could not get irq %d.\n", irq); 883 dev_err(sharpsl_pm.dev, "Could not get irq %d.\n", irq);
884 } 884 }
885 } 885 }
diff --git a/arch/arm/mach-pxa/time.c b/arch/arm/mach-pxa/time.c
index 9aa852a8fab9..5fdc9c4f05be 100644
--- a/arch/arm/mach-pxa/time.c
+++ b/arch/arm/mach-pxa/time.c
@@ -137,7 +137,7 @@ static struct clock_event_device ckevt_pxa_osmr0 = {
137 137
138static struct irqaction pxa_ost0_irq = { 138static struct irqaction pxa_ost0_irq = {
139 .name = "ost0", 139 .name = "ost0",
140 .flags = IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL, 140 .flags = IRQF_TIMER | IRQF_IRQPOLL,
141 .handler = pxa_ost0_interrupt, 141 .handler = pxa_ost0_interrupt,
142 .dev_id = &ckevt_pxa_osmr0, 142 .dev_id = &ckevt_pxa_osmr0,
143}; 143};
diff --git a/arch/arm/mach-pxa/trizeps4.c b/arch/arm/mach-pxa/trizeps4.c
index c58043462acd..872dcb20e757 100644
--- a/arch/arm/mach-pxa/trizeps4.c
+++ b/arch/arm/mach-pxa/trizeps4.c
@@ -332,8 +332,7 @@ static int trizeps4_mci_init(struct device *dev, irq_handler_t mci_detect_int,
332 int err; 332 int err;
333 333
334 err = request_irq(TRIZEPS4_MMC_IRQ, mci_detect_int, 334 err = request_irq(TRIZEPS4_MMC_IRQ, mci_detect_int,
335 IRQF_DISABLED | IRQF_TRIGGER_RISING, 335 IRQF_TRIGGER_RISING, "MMC card detect", data);
336 "MMC card detect", data);
337 if (err) { 336 if (err) {
338 printk(KERN_ERR "trizeps4_mci_init: MMC/SD: can't request" 337 printk(KERN_ERR "trizeps4_mci_init: MMC/SD: can't request"
339 "MMC card detect IRQ\n"); 338 "MMC card detect IRQ\n");