et1011c.c (2d8ad8719591fa803b0d589ed057fa46f49b7155) | et1011c.c (116dffa0b543a2e560abd62a0b3207b1694f9ab9) |
---|---|
1/* 2 * drivers/net/phy/et1011c.c 3 * 4 * Driver for LSI ET1011C PHYs 5 * 6 * Author: Chaithrika U S 7 * 8 * Copyright (c) 2008 Texas Instruments --- 73 unchanged lines hidden (view full) --- 82 | ET1011C_SYS_CLK_EN\ 83 | ET1011C_TX_FIFO_DEPTH_16); 84 85 } 86 } 87 return ret; 88} 89 | 1/* 2 * drivers/net/phy/et1011c.c 3 * 4 * Driver for LSI ET1011C PHYs 5 * 6 * Author: Chaithrika U S 7 * 8 * Copyright (c) 2008 Texas Instruments --- 73 unchanged lines hidden (view full) --- 82 | ET1011C_SYS_CLK_EN\ 83 | ET1011C_TX_FIFO_DEPTH_16); 84 85 } 86 } 87 return ret; 88} 89 |
90static struct phy_driver et1011c_driver = { | 90static struct phy_driver et1011c_driver[] = { { |
91 .phy_id = 0x0282f014, 92 .name = "ET1011C", 93 .phy_id_mask = 0xfffffff0, 94 .features = (PHY_BASIC_FEATURES | SUPPORTED_1000baseT_Full), 95 .flags = PHY_POLL, 96 .config_aneg = et1011c_config_aneg, 97 .read_status = et1011c_read_status, 98 .driver = { .owner = THIS_MODULE,}, | 91 .phy_id = 0x0282f014, 92 .name = "ET1011C", 93 .phy_id_mask = 0xfffffff0, 94 .features = (PHY_BASIC_FEATURES | SUPPORTED_1000baseT_Full), 95 .flags = PHY_POLL, 96 .config_aneg = et1011c_config_aneg, 97 .read_status = et1011c_read_status, 98 .driver = { .owner = THIS_MODULE,}, |
99}; | 99} }; |
100 | 100 |
101static int __init et1011c_init(void) 102{ 103 return phy_driver_register(&et1011c_driver); 104} | 101module_phy_driver(et1011c_driver); |
105 | 102 |
106static void __exit et1011c_exit(void) 107{ 108 phy_driver_unregister(&et1011c_driver); 109} 110 111module_init(et1011c_init); 112module_exit(et1011c_exit); 113 | |
114static struct mdio_device_id __maybe_unused et1011c_tbl[] = { 115 { 0x0282f014, 0xfffffff0 }, 116 { } 117}; 118 119MODULE_DEVICE_TABLE(mdio, et1011c_tbl); | 103static struct mdio_device_id __maybe_unused et1011c_tbl[] = { 104 { 0x0282f014, 0xfffffff0 }, 105 { } 106}; 107 108MODULE_DEVICE_TABLE(mdio, et1011c_tbl); |