Changeset 132ab5d1 in mainline for uspace/drv/nic/ar9271/ar9271.c


Ignore:
Timestamp:
2018-01-30T03:20:45Z (7 years ago)
Author:
Jenda <jenda.jzqk73@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5a6cc679
Parents:
8bfb163 (diff), 6a5d05b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge commit '6a5d05bd2551e64111bea4f9332dd7448c26ce84' into forwardport

Separate return value from error code in gen_irq_code*().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/nic/ar9271/ar9271.c

    r8bfb163 r132ab5d1  
    3333 */
    3434
     35#include <async.h>
    3536#include <ieee80211.h>
    3637#include <usb/classes/classes.h>
     
    4142#include <ddf/interrupt.h>
    4243#include <errno.h>
     44#include <str_error.h>
    4345#include <nic.h>
    4446#include <macros.h>
    45 #include <thread.h>
    4647#include "ath_usb.h"
    4748#include "wmi.h"
     
    733734 * @param ar9271 AR9271 device structure
    734735 *
    735  * @return EOK if succeed, negative error code otherwise
     736 * @return EOK if succeed, error code otherwise
    736737 *
    737738 */
     
    784785                        free(buffer);
    785786                        usb_log_error("Error while uploading firmware. "
    786                             "Error: %d\n", rc);
     787                            "Error: %s\n", str_error_name(rc));
    787788                        return rc;
    788789                }
     
    818819       
    819820        /* Wait until firmware is ready - wait for 1 second to be sure. */
    820         thread_sleep(1);
     821        async_sleep(1);
    821822       
    822823        return rc;
     
    836837        if (rc != EOK) {
    837838                usb_log_error("Failed to create USB device: %s, "
    838                     "ERR_NUM = %d\n", err_msg, rc);
     839                    "ERR_NUM = %s\n", err_msg, str_error_name(rc));
    839840                return NULL;
    840841        }
     
    853854        if (rc != EOK) {
    854855                free(ar9271);
    855                 usb_log_error("Failed to initialize AR9271 structure: %d\n",
    856                     rc);
     856                usb_log_error("Failed to initialize AR9271 structure: %s\n",
     857                    str_error_name(rc));
    857858                return NULL;
    858859        }
     
    876877 * @param dev The device structure.
    877878 *
    878  * @return EOK if succeed, negative error code otherwise
     879 * @return EOK if succeed, error code otherwise
    879880 */
    880881static int ar9271_add_device(ddf_dev_t *dev)
Note: See TracChangeset for help on using the changeset viewer.