Lines Matching refs:result
53 int result; in ibmasm_init_one() local
56 if ((result = pci_enable_device(pdev))) { in ibmasm_init_one()
58 return result; in ibmasm_init_one()
60 if ((result = pci_request_regions(pdev, DRIVER_NAME))) { in ibmasm_init_one()
70 result = -ENOMEM; in ibmasm_init_one()
83 result = ibmasm_event_buffer_init(sp); in ibmasm_init_one()
84 if (result) { in ibmasm_init_one()
89 result = ibmasm_heartbeat_init(sp); in ibmasm_init_one()
90 if (result) { in ibmasm_init_one()
99 result = -ENODEV; in ibmasm_init_one()
103 result = request_irq(sp->irq, ibmasm_interrupt_handler, IRQF_SHARED, sp->devname, (void*)sp); in ibmasm_init_one()
104 if (result) { in ibmasm_init_one()
111 result = ibmasm_init_remote_input_dev(sp); in ibmasm_init_one()
112 if (result) { in ibmasm_init_one()
117 result = ibmasm_send_driver_vpd(sp); in ibmasm_init_one()
118 if (result) { in ibmasm_init_one()
122 result = ibmasm_send_os_state(sp, SYSTEM_STATE_OS_UP); in ibmasm_init_one()
123 if (result) { in ibmasm_init_one()
151 return result; in ibmasm_init_one()
201 int result = pci_register_driver(&ibmasm_driver); in ibmasm_init() local
202 if (result) in ibmasm_init()
203 return result; in ibmasm_init()
205 result = ibmasmfs_register(); in ibmasm_init()
206 if (result) { in ibmasm_init()
209 return result; in ibmasm_init()