Revision b9d38e95

b/hw/nseries.c
248 248

  
249 249
    /* XXX: are the three pins inverted inside the chip between the
250 250
     * tsc and the cpu (N4111)?  */
251
    qemu_irq penirq = 0;	/* NC */
251
    qemu_irq penirq = NULL;	/* NC */
252 252
    qemu_irq kbirq = omap2_gpio_in_get(s->cpu->gpif, N800_TSC_KP_IRQ_GPIO)[0];
253 253
    qemu_irq dav = omap2_gpio_in_get(s->cpu->gpif, N800_TSC_TS_GPIO)[0];
254 254

  
......
716 716

  
717 717
static void n8x0_dss_setup(struct n800_s *s)
718 718
{
719
    s->blizzard.opaque = s1d13745_init(0);
719
    s->blizzard.opaque = s1d13745_init(NULL);
720 720
    s->blizzard.block = s1d13745_write_block;
721 721
    s->blizzard.write = s1d13745_write;
722 722
    s->blizzard.read = s1d13745_read;
......
769 769

  
770 770
    /* Using the NOR interface */
771 771
    omap_gpmc_attach(s->cpu->gpmc, N8X0_USB_ASYNC_CS,
772
                    tusb6010_async_io(tusb), 0, 0, tusb);
772
                    tusb6010_async_io(tusb), NULL, NULL, tusb);
773 773
    omap_gpmc_attach(s->cpu->gpmc, N8X0_USB_SYNC_CS,
774
                    tusb6010_sync_io(tusb), 0, 0, tusb);
774
                    tusb6010_sync_io(tusb), NULL, NULL, tusb);
775 775

  
776 776
    s->usb = tusb;
777 777
    omap2_gpio_out_set(s->cpu->gpif, N8X0_TUSB_ENABLE_GPIO, tusb_pwr);
......
1047 1047
        "headphone", N8X0_HEADPHONE_GPIO,
1048 1048
        OMAP_GPIOSW_TYPE_CONNECTION | OMAP_GPIOSW_INVERTED,
1049 1049
    },
1050
    { 0 }
1050
    { NULL }
1051 1051
}, n810_gpiosw_info[] = {
1052 1052
    {
1053 1053
        "gps_reset", N810_GPS_RESET_GPIO,
......
1068 1068
        "slide", N810_SLIDE_GPIO,
1069 1069
        OMAP_GPIOSW_TYPE_COVER | OMAP_GPIOSW_INVERTED,
1070 1070
    },
1071
    { 0 }
1071
    { NULL }
1072 1072
};
1073 1073

  
1074 1074
static struct omap_partition_info_s {
......
1083 1083
    { 0x00280000, 0x00200000, 0x3, "initfs" },
1084 1084
    { 0x00480000, 0x0fb80000, 0x3, "rootfs" },
1085 1085

  
1086
    { 0, 0, 0, 0 }
1086
    { 0, 0, 0, NULL }
1087 1087
}, n810_part_info[] = {
1088 1088
    { 0x00000000, 0x00020000, 0x3, "bootloader" },
1089 1089
    { 0x00020000, 0x00060000, 0x0, "config" },
......
1091 1091
    { 0x002a0000, 0x00400000, 0x0, "initfs" },
1092 1092
    { 0x006a0000, 0x0f960000, 0x0, "rootfs" },
1093 1093

  
1094
    { 0, 0, 0, 0 }
1094
    { 0, 0, 0, NULL }
1095 1095
};
1096 1096

  
1097 1097
static bdaddr_t n8x0_bd_addr = {{ N8X0_BD_ADDR }};
b/hw/omap1.c
436 436
    struct omap_intr_handler_s *s = (struct omap_intr_handler_s *) opaque;
437 437
    int offset = addr;
438 438
    int bank_no, line_no;
439
    struct omap_intr_handler_bank_s *bank = 0;
439
    struct omap_intr_handler_bank_s *bank = NULL;
440 440

  
441 441
    if ((offset & 0xf80) == 0x80) {
442 442
        bank_no = (offset & 0x60) >> 5;
......
514 514
    struct omap_intr_handler_s *s = (struct omap_intr_handler_s *) opaque;
515 515
    int offset = addr;
516 516
    int bank_no, line_no;
517
    struct omap_intr_handler_bank_s *bank = 0;
517
    struct omap_intr_handler_bank_s *bank = NULL;
518 518

  
519 519
    if ((offset & 0xf80) == 0x80) {
520 520
        bank_no = (offset & 0x60) >> 5;
......
4731 4731
                    omap_findclk(s, "uart2_ck"),
4732 4732
                    omap_findclk(s, "uart2_ck"),
4733 4733
                    s->drq[OMAP_DMA_UART2_TX], s->drq[OMAP_DMA_UART2_RX],
4734
                    serial_hds[0] ? serial_hds[1] : 0);
4734
                    serial_hds[0] ? serial_hds[1] : NULL);
4735 4735
    s->uart[2] = omap_uart_init(0xfffb9800, s->irq[0][OMAP_INT_UART3],
4736 4736
                    omap_findclk(s, "uart3_ck"),
4737 4737
                    omap_findclk(s, "uart3_ck"),
4738 4738
                    s->drq[OMAP_DMA_UART3_TX], s->drq[OMAP_DMA_UART3_RX],
4739
                    serial_hds[0] && serial_hds[1] ? serial_hds[2] : 0);
4739
                    serial_hds[0] && serial_hds[1] ? serial_hds[2] : NULL);
4740 4740

  
4741 4741
    omap_dpll_init(&s->dpll[0], 0xfffecf00, omap_findclk(s, "dpll1"));
4742 4742
    omap_dpll_init(&s->dpll[1], 0xfffed000, omap_findclk(s, "dpll2"));
b/hw/omap2.c
1055 1055
    s->modules = modules;
1056 1056
    for (i = 0; i < modules; i ++)
1057 1057
        omap_gpio_module_init(s->module + i, ta, region[i],
1058
                        irq[i], 0, 0, fclk[i], iclk);
1058
                              irq[i], NULL, NULL, fclk[i], iclk);
1059 1059

  
1060 1060
    omap_gpif_reset(s);
1061 1061

  
......
1615 1615
    if (s->codec.in_voice) {
1616 1616
        AUD_set_active_in(s->codec.in_voice, 0);
1617 1617
        AUD_close_in(&s->codec.card, s->codec.in_voice);
1618
        s->codec.in_voice = 0;
1618
        s->codec.in_voice = NULL;
1619 1619
    }
1620 1620
    if (s->codec.out_voice) {
1621 1621
        omap_eac_out_empty(s);
1622 1622
        AUD_set_active_out(s->codec.out_voice, 0);
1623 1623
        AUD_close_out(&s->codec.card, s->codec.out_voice);
1624
        s->codec.out_voice = 0;
1624
        s->codec.out_voice = NULL;
1625 1625
        s->codec.txavail = 0;
1626 1626
    }
1627 1627
    /* Discard what couldn't be written */
......
2555 2555
struct omap_target_agent_s *omap_l4ta_get(struct omap_l4_s *bus, int cs)
2556 2556
{
2557 2557
    int i, iomemtype;
2558
    struct omap_target_agent_s *ta = 0;
2559
    struct omap_l4_agent_info_s *info = 0;
2558
    struct omap_target_agent_s *ta = NULL;
2559
    struct omap_l4_agent_info_s *info = NULL;
2560 2560

  
2561 2561
    for (i = 0; i < bus->ta_num; i ++)
2562 2562
        if (omap_l4_agent_info[i].ta == cs) {
......
4559 4559
                    omap_findclk(s, "uart2_iclk"),
4560 4560
                    s->drq[OMAP24XX_DMA_UART2_TX],
4561 4561
                    s->drq[OMAP24XX_DMA_UART2_RX],
4562
                    serial_hds[0] ? serial_hds[1] : 0);
4562
                    serial_hds[0] ? serial_hds[1] : NULL);
4563 4563
    s->uart[2] = omap2_uart_init(omap_l4ta(s->l4, 21),
4564 4564
                    s->irq[0][OMAP_INT_24XX_UART3_IRQ],
4565 4565
                    omap_findclk(s, "uart3_fclk"),
4566 4566
                    omap_findclk(s, "uart3_iclk"),
4567 4567
                    s->drq[OMAP24XX_DMA_UART3_TX],
4568 4568
                    s->drq[OMAP24XX_DMA_UART3_RX],
4569
                    serial_hds[0] && serial_hds[1] ? serial_hds[2] : 0);
4569
                    serial_hds[0] && serial_hds[1] ? serial_hds[2] : NULL);
4570 4570

  
4571 4571
    s->gptimer[0] = omap_gp_timer_init(omap_l4ta(s->l4, 7),
4572 4572
                    s->irq[0][OMAP_INT_24XX_GPTIMER1],
......
4677 4677
    omap_sti_init(omap_l4ta(s->l4, 18), 0x54000000,
4678 4678
                    s->irq[0][OMAP_INT_24XX_STI], omap_findclk(s, "emul_ck"),
4679 4679
                    serial_hds[0] && serial_hds[1] && serial_hds[2] ?
4680
                    serial_hds[3] : 0);
4680
                    serial_hds[3] : NULL);
4681 4681

  
4682 4682
    s->eac = omap_eac_init(omap_l4ta(s->l4, 32),
4683 4683
                    s->irq[0][OMAP_INT_24XX_EAC_IRQ],
b/hw/omap_clk.c
1086 1086
    &dss_l4_iclk,
1087 1087
    &omapctrl_clk,
1088 1088

  
1089
    0
1089
    NULL
1090 1090
};
1091 1091

  
1092 1092
void omap_clk_adduser(struct clk *clk, qemu_irq user)
......
1184 1184
        omap_clk_update(clk);
1185 1185
        omap_clk_rate_update(clk);
1186 1186
    } else
1187
        clk->sibling = 0;
1187
        clk->sibling = NULL;
1188 1188
}
1189 1189

  
1190 1190
void omap_clk_onoff(struct clk *clk, int on)
b/hw/omap_lcdc.c
80 80
#include "omap_lcd_template.h"
81 81

  
82 82
static draw_line_func draw_line_table2[33] = {
83
    [0 ... 32]	= 0,
83
    [0 ... 32]	= NULL,
84 84
    [8]		= draw_line2_8,
85 85
    [15]	= draw_line2_15,
86 86
    [16]	= draw_line2_16,
87 87
    [32]	= draw_line2_32,
88 88
}, draw_line_table4[33] = {
89
    [0 ... 32]	= 0,
89
    [0 ... 32]	= NULL,
90 90
    [8]		= draw_line4_8,
91 91
    [15]	= draw_line4_15,
92 92
    [16]	= draw_line4_16,
93 93
    [32]	= draw_line4_32,
94 94
}, draw_line_table8[33] = {
95
    [0 ... 32]	= 0,
95
    [0 ... 32]	= NULL,
96 96
    [8]		= draw_line8_8,
97 97
    [15]	= draw_line8_15,
98 98
    [16]	= draw_line8_16,
99 99
    [32]	= draw_line8_32,
100 100
}, draw_line_table12[33] = {
101
    [0 ... 32]	= 0,
101
    [0 ... 32]	= NULL,
102 102
    [8]		= draw_line12_8,
103 103
    [15]	= draw_line12_15,
104 104
    [16]	= draw_line12_16,
105 105
    [32]	= draw_line12_32,
106 106
}, draw_line_table16[33] = {
107
    [0 ... 32]	= 0,
107
    [0 ... 32]	= NULL,
108 108
    [8]		= draw_line16_8,
109 109
    [15]	= draw_line16_15,
110 110
    [16]	= draw_line16_16,
b/hw/omap_mmc.c
619 619
    s->card = sd_init(bd, 0);
620 620

  
621 621
    s->cdet = qemu_allocate_irqs(omap_mmc_cover_cb, s, 1)[0];
622
    sd_set_cb(s->card, 0, s->cdet);
622
    sd_set_cb(s->card, NULL, s->cdet);
623 623

  
624 624
    return s;
625 625
}
b/hw/onenand.c
426 426

  
427 427
    case 0x65:	/* OTP Access */
428 428
        s->intstatus |= ONEN_INT;
429
        s->bdrv_cur = 0;
429
        s->bdrv_cur = NULL;
430 430
        s->current = s->otp;
431 431
        s->secs_cur = 1 << (BLOCK_SHIFT - 9);
432 432
        s->addr[ONEN_BUF_BLOCK] = 0;
......
624 624

  
625 625
    s->shift = regshift;
626 626
    s->intr = irq;
627
    s->rdy = 0;
627
    s->rdy = NULL;
628 628
    s->id = id;
629 629
    s->blocks = size >> BLOCK_SHIFT;
630 630
    s->secs = size >> 9;
b/hw/pxa2xx_lcd.c
667 667
                target_phys_addr_t addr, int *miny, int *maxy)
668 668
{
669 669
    int src_width, dest_width;
670
    drawfn fn = 0;
670
    drawfn fn = NULL;
671 671
    if (s->dest_width)
672 672
        fn = s->line_fn[s->transp][s->bpp];
673 673
    if (!fn)
......
694 694
               target_phys_addr_t addr, int *miny, int *maxy)
695 695
{
696 696
    int src_width, dest_width;
697
    drawfn fn = 0;
697
    drawfn fn = NULL;
698 698
    if (s->dest_width)
699 699
        fn = s->line_fn[s->transp][s->bpp];
700 700
    if (!fn)
b/hw/pxa2xx_pcmcia.c
193 193
        return -ENOENT;
194 194

  
195 195
    s->card->detach(s->card->state);
196
    s->card->slot = 0;
197
    s->card = 0;
196
    s->card->slot = NULL;
197
    s->card = NULL;
198 198

  
199 199
    s->slot.attached = 0;
200 200

  
b/hw/pxa2xx_template.h
403 403
/* Overlay planes disabled, no transparency */
404 404
static drawfn glue(pxa2xx_draw_fn_, BITS)[16] =
405 405
{
406
    [0 ... 0xf]       = 0,
406
    [0 ... 0xf]       = NULL,
407 407
    [pxa_lcdc_2bpp]   = glue(pxa2xx_draw_line2_, BITS),
408 408
    [pxa_lcdc_4bpp]   = glue(pxa2xx_draw_line4_, BITS),
409 409
    [pxa_lcdc_8bpp]   = glue(pxa2xx_draw_line8_, BITS),
......
416 416
/* Overlay planes enabled, transparency used */
417 417
static drawfn glue(glue(pxa2xx_draw_fn_, BITS), t)[16] =
418 418
{
419
    [0 ... 0xf]       = 0,
419
    [0 ... 0xf]       = NULL,
420 420
    [pxa_lcdc_4bpp]   = glue(pxa2xx_draw_line4_, BITS),
421 421
    [pxa_lcdc_8bpp]   = glue(pxa2xx_draw_line8_, BITS),
422 422
    [pxa_lcdc_16bpp]  = glue(pxa2xx_draw_line16t_, BITS),
b/hw/pxa2xx_timer.c
465 465
{
466 466
    pxa2xx_timer_info *s = pxa2xx_timer_init(base, irqs);
467 467
    s->freq = PXA25X_FREQ;
468
    s->tm4 = 0;
468
    s->tm4 = NULL;
469 469
}
470 470

  
471 471
void pxa27x_timer_init(target_phys_addr_t base,
b/hw/sh7750_regnames.c
81 81
	REGNAME(SH7750_BCR3_A7)
82 82
	REGNAME(SH7750_BCR4_A7)
83 83
	REGNAME(SH7750_SDMR2_A7)
84
	REGNAME(SH7750_SDMR3_A7) {(uint32_t) - 1, 0}
84
	REGNAME(SH7750_SDMR3_A7) {(uint32_t) - 1, NULL}
85 85
};
86 86

  
87 87
const char *regname(uint32_t addr)
b/hw/sm501.c
1096 1096
    /* bridge to serial emulation module */
1097 1097
    if (chr)
1098 1098
	serial_mm_init(base + MMIO_BASE_OFFSET + SM501_UART0, 2,
1099
		       0, /* TODO : chain irq to IRL */
1099
		       NULL, /* TODO : chain irq to IRL */
1100 1100
		       115200, chr, 1);
1101 1101

  
1102 1102
    /* create qemu graphic console */
b/hw/tsc210x.c
331 331
        s->codec.out.size = 0;
332 332
        AUD_set_active_out(s->dac_voice[0], 0);
333 333
        AUD_close_out(&s->card, s->dac_voice[0]);
334
        s->dac_voice[0] = 0;
334
        s->dac_voice[0] = NULL;
335 335
    }
336 336
    s->codec.cts = 0;
337 337

  
b/linux-user/arm/nwfpe/fpa11.c
30 30

  
31 31
#include <stdio.h>
32 32

  
33
FPA11* qemufpa=0;
33
FPA11* qemufpa = NULL;
34 34
CPUARMState* user_registers;
35 35

  
36 36
/* Reset the FPA11 chip.  Called to initialize and reset the emulator. */
b/target-sh4/op_helper.c
145 145
	memory_content *next = current->next;
146 146
	free (current);
147 147
	env->movcal_backup = current = next;
148
	if (current == 0)
148
	if (current == NULL)
149 149
	    env->movcal_backup_tail = &(env->movcal_backup);
150 150
    } 
151 151
}
......
161 161
	    memory_content *next = (*current)->next;
162 162
	    stl(a, (*current)->value);
163 163
	    
164
	    if (next == 0)
164
	    if (next == NULL)
165 165
	    {
166 166
		env->movcal_backup_tail = current;
167 167
	    }

Also available in: Unified diff