mpic.c (cd642c88a1957179fdc6843a6c7bd04ca238d625) | mpic.c (9346e9130d7ae72b1a6fadb36de85c835074b883) |
---|---|
1/*- 2 * Copyright (c) 2006 Benno Rice. 3 * Copyright (C) 2007-2011 MARVELL INTERNATIONAL LTD. 4 * Copyright (c) 2012 Semihalf. 5 * All rights reserved. 6 * 7 * Developed by Semihalf. 8 * --- 260 unchanged lines hidden (view full) --- 269 sc->nirqs = MPIC_CTRL_NIRQS(val); 270 271#ifdef INTRNG 272 if (mv_mpic_register_isrcs(sc) != 0) { 273 device_printf(dev, "could not register PIC ISRCs\n"); 274 bus_release_resources(dev, mv_mpic_spec, sc->mpic_res); 275 return (ENXIO); 276 } | 1/*- 2 * Copyright (c) 2006 Benno Rice. 3 * Copyright (C) 2007-2011 MARVELL INTERNATIONAL LTD. 4 * Copyright (c) 2012 Semihalf. 5 * All rights reserved. 6 * 7 * Developed by Semihalf. 8 * --- 260 unchanged lines hidden (view full) --- 269 sc->nirqs = MPIC_CTRL_NIRQS(val); 270 271#ifdef INTRNG 272 if (mv_mpic_register_isrcs(sc) != 0) { 273 device_printf(dev, "could not register PIC ISRCs\n"); 274 bus_release_resources(dev, mv_mpic_spec, sc->mpic_res); 275 return (ENXIO); 276 } |
277 if (intr_pic_register(dev, OF_xref_from_device(dev)) != 0) { | 277 if (intr_pic_register(dev, OF_xref_from_device(dev)) == NULL) { |
278 device_printf(dev, "could not register PIC\n"); 279 bus_release_resources(dev, mv_mpic_spec, sc->mpic_res); 280 return (ENXIO); 281 } 282#endif 283 284 mpic_unmask_msi(); 285 --- 350 unchanged lines hidden --- | 278 device_printf(dev, "could not register PIC\n"); 279 bus_release_resources(dev, mv_mpic_spec, sc->mpic_res); 280 return (ENXIO); 281 } 282#endif 283 284 mpic_unmask_msi(); 285 --- 350 unchanged lines hidden --- |