@@ -503,15 +503,15 @@ int __init db1000_dev_setup(void)
503503 if (board == BCSR_WHOAMI_DB1500 ) {
504504 c0 = AU1500_GPIO2_INT ;
505505 c1 = AU1500_GPIO5_INT ;
506- d0 = AU1500_GPIO0_INT ;
507- d1 = AU1500_GPIO3_INT ;
506+ d0 = 0 ; /* GPIO number, NOT irq! */
507+ d1 = 3 ; /* GPIO number, NOT irq! */
508508 s0 = AU1500_GPIO1_INT ;
509509 s1 = AU1500_GPIO4_INT ;
510510 } else if (board == BCSR_WHOAMI_DB1100 ) {
511511 c0 = AU1100_GPIO2_INT ;
512512 c1 = AU1100_GPIO5_INT ;
513- d0 = AU1100_GPIO0_INT ;
514- d1 = AU1100_GPIO3_INT ;
513+ d0 = 0 ; /* GPIO number, NOT irq! */
514+ d1 = 3 ; /* GPIO number, NOT irq! */
515515 s0 = AU1100_GPIO1_INT ;
516516 s1 = AU1100_GPIO4_INT ;
517517
@@ -545,15 +545,15 @@ int __init db1000_dev_setup(void)
545545 } else if (board == BCSR_WHOAMI_DB1000 ) {
546546 c0 = AU1000_GPIO2_INT ;
547547 c1 = AU1000_GPIO5_INT ;
548- d0 = AU1000_GPIO0_INT ;
549- d1 = AU1000_GPIO3_INT ;
548+ d0 = 0 ; /* GPIO number, NOT irq! */
549+ d1 = 3 ; /* GPIO number, NOT irq! */
550550 s0 = AU1000_GPIO1_INT ;
551551 s1 = AU1000_GPIO4_INT ;
552552 platform_add_devices (db1000_devs , ARRAY_SIZE (db1000_devs ));
553553 } else if ((board == BCSR_WHOAMI_PB1500 ) ||
554554 (board == BCSR_WHOAMI_PB1500R2 )) {
555555 c0 = AU1500_GPIO203_INT ;
556- d0 = AU1500_GPIO201_INT ;
556+ d0 = 1 ; /* GPIO number, NOT irq! */
557557 s0 = AU1500_GPIO202_INT ;
558558 twosocks = 0 ;
559559 flashsize = 64 ;
@@ -566,7 +566,7 @@ int __init db1000_dev_setup(void)
566566 */
567567 } else if (board == BCSR_WHOAMI_PB1100 ) {
568568 c0 = AU1100_GPIO11_INT ;
569- d0 = AU1100_GPIO9_INT ;
569+ d0 = 9 ; /* GPIO number, NOT irq! */
570570 s0 = AU1100_GPIO10_INT ;
571571 twosocks = 0 ;
572572 flashsize = 64 ;
@@ -583,7 +583,6 @@ int __init db1000_dev_setup(void)
583583 } else
584584 return 0 ; /* unknown board, no further dev setup to do */
585585
586- irq_set_irq_type (d0 , IRQ_TYPE_EDGE_BOTH );
587586 irq_set_irq_type (c0 , IRQ_TYPE_LEVEL_LOW );
588587 irq_set_irq_type (s0 , IRQ_TYPE_LEVEL_LOW );
589588
@@ -597,7 +596,6 @@ int __init db1000_dev_setup(void)
597596 c0 , d0 , /*s0*/ 0 , 0 , 0 );
598597
599598 if (twosocks ) {
600- irq_set_irq_type (d1 , IRQ_TYPE_EDGE_BOTH );
601599 irq_set_irq_type (c1 , IRQ_TYPE_LEVEL_LOW );
602600 irq_set_irq_type (s1 , IRQ_TYPE_LEVEL_LOW );
603601
0 commit comments