Lines Matching defs:error
76 * Return: a pointer to the remapped memory or an ERR_PTR() encoded error code
100 * Return: a pointer to the remapped memory or an ERR_PTR() encoded error code
118 * Return: a pointer to the remapped memory or an ERR_PTR() encoded error code
139 * Return: a pointer to the remapped memory or an ERR_PTR() encoded error code
162 * does not print an error message if an IRQ can not be obtained.
170 * Return: non-zero IRQ number on success, negative error number on failure.
248 * Gets an IRQ for a platform device and prints an error message if finding the
258 * Return: non-zero IRQ number on success, negative error number on failure.
345 * Return: non-zero IRQ number on success, negative error number on failure.
365 * does not print an error message if an IRQ can not be obtained.
367 * Return: non-zero IRQ number on success, negative error number on failure.
424 * _only_ be externally called in error cases. All other usage is a bug.
638 * _only_ be externally called in error cases. All other usage is a bug.
694 * Returns &struct platform_device pointer on success, or ERR_PTR() on error.
848 * a negative error code and with the driver not registered.
863 * we find any devices to bind to and exit with error if there
915 * Returns &struct platform_device pointer on success, or ERR_PTR() on error.
924 int error;
928 error = -ENOMEM;
932 error = platform_device_add_resources(pdev, res, n_res);
933 if (error)
936 error = platform_device_add_data(pdev, data, size);
937 if (error)
940 error = platform_device_add(pdev);
941 if (error)
944 error = __platform_driver_probe(driver, probe, module);
945 if (error)
955 return ERR_PTR(error);
970 * Returns: 0 on success or a negative error code on failure.
985 goto error;
991 error:
1373 int error;
1377 error = device_register(&platform_bus);
1378 if (error) {
1380 return error;
1382 error = bus_register(&platform_bus_type);
1383 if (error)
1386 return error;