Lines Matching defs:error
95 * Return: a pointer to the remapped memory or an ERR_PTR() encoded error code
119 * Return: a pointer to the remapped memory or an ERR_PTR() encoded error code
138 * Return: a pointer to the remapped memory or an ERR_PTR() encoded error code
161 * does not print an error message if an IRQ can not be obtained.
169 * Return: non-zero IRQ number on success, negative error number on failure.
247 * Gets an IRQ for a platform device and prints an error message if finding the
257 * Return: non-zero IRQ number on success, negative error number on failure.
332 * Return: Number of vectors on success, negative error number on failure.
465 * Return: non-zero IRQ number on success, negative error number on failure.
485 * does not print an error message if an IRQ can not be obtained.
487 * Return: non-zero IRQ number on success, negative error number on failure.
501 * Return: 0 on success, negative error number on failure.
546 * _only_ be externally called in error cases. All other usage is a bug.
744 * _only_ be externally called in error cases. All other usage is a bug.
772 * returned an error! Always use platform_device_put() to give up the
804 * Returns &struct platform_device pointer on success, or ERR_PTR() on error.
911 * a negative error code and with the driver not registered.
926 * we find any devices to bind to and exit with error if there
950 * If not, return an error as the device should have done so by now.
974 * Returns &struct platform_device pointer on success, or ERR_PTR() on error.
983 int error;
987 error = -ENOMEM;
991 error = platform_device_add_resources(pdev, res, n_res);
992 if (error)
995 error = platform_device_add_data(pdev, data, size);
996 if (error)
999 error = platform_device_add(pdev);
1000 if (error)
1003 error = __platform_driver_probe(driver, probe, module);
1004 if (error)
1014 return ERR_PTR(error);
1029 * Returns: 0 on success or a negative error code on failure.
1044 goto error;
1050 error:
1519 int error;
1523 error = device_register(&platform_bus);
1524 if (error) {
1526 return error;
1528 error = bus_register(&platform_bus_type);
1529 if (error)
1532 return error;