s390: Use eth_random_addr
[deliverable/linux.git] / drivers / s390 / net / qeth_l2_main.c
index 0e7c29d1d7efc5991904a5d54f906a56086d244c..b09355c14ee1c28f2f767f869312fafc2ec80cca 100644 (file)
@@ -647,7 +647,7 @@ static int qeth_l2_request_initial_mac(struct qeth_card *card)
                }
                QETH_DBF_HEX(SETUP, 2, card->dev->dev_addr, OSA_ADDR_LEN);
        } else {
-               random_ether_addr(card->dev->dev_addr);
+               eth_random_addr(card->dev->dev_addr);
                memcpy(card->dev->dev_addr, vendor_pre, 3);
        }
        return 0;
@@ -882,12 +882,6 @@ static int qeth_l2_probe_device(struct ccwgroup_device *gdev)
        INIT_LIST_HEAD(&card->mc_list);
        card->options.layer2 = 1;
        card->info.hwtrap = 0;
-       card->discipline.start_poll = qeth_qdio_start_poll;
-       card->discipline.input_handler = (qdio_handler_t *)
-               qeth_qdio_input_handler;
-       card->discipline.output_handler = (qdio_handler_t *)
-               qeth_qdio_output_handler;
-       card->discipline.recover = qeth_l2_recover;
        return 0;
 }
 
@@ -1227,8 +1221,12 @@ out:
        return rc;
 }
 
-struct ccwgroup_driver qeth_l2_ccwgroup_driver = {
-       .probe = qeth_l2_probe_device,
+struct qeth_discipline qeth_l2_discipline = {
+       .start_poll = qeth_qdio_start_poll,
+       .input_handler = (qdio_handler_t *) qeth_qdio_input_handler,
+       .output_handler = (qdio_handler_t *) qeth_qdio_output_handler,
+       .recover = qeth_l2_recover,
+       .setup = qeth_l2_probe_device,
        .remove = qeth_l2_remove_device,
        .set_online = qeth_l2_set_online,
        .set_offline = qeth_l2_set_offline,
@@ -1237,7 +1235,7 @@ struct ccwgroup_driver qeth_l2_ccwgroup_driver = {
        .thaw = qeth_l2_pm_resume,
        .restore = qeth_l2_pm_resume,
 };
-EXPORT_SYMBOL_GPL(qeth_l2_ccwgroup_driver);
+EXPORT_SYMBOL_GPL(qeth_l2_discipline);
 
 static int qeth_osn_send_control_data(struct qeth_card *card, int len,
                           struct qeth_cmd_buffer *iob)
This page took 0.023964 seconds and 5 git commands to generate.