net: Enable PM settings on network devices
By changing the various *NET_DEVICE* macros. It is up to the device drivers to either set a proper PM function or, if not supported or PM disabled, to use device_pm_control_nop relevantly. All existing macro calls are updated. Since no PM support was added so far, device_pm_control_nop is used as the default everywhere. Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
parent
ebe20f99c7
commit
4ae72db135
67 changed files with 197 additions and 143 deletions
|
@ -830,8 +830,8 @@ static const struct eth_enc28j60_config eth_enc28j60_0_config = {
|
|||
};
|
||||
|
||||
ETH_NET_DEVICE_INIT(enc28j60_0, DT_INST_0_MICROCHIP_ENC28J60_LABEL,
|
||||
eth_enc28j60_init, ð_enc28j60_0_runtime,
|
||||
ð_enc28j60_0_config, CONFIG_ETH_INIT_PRIORITY,
|
||||
&api_funcs, NET_ETH_MTU);
|
||||
eth_enc28j60_init, device_pm_control_nop,
|
||||
ð_enc28j60_0_runtime, ð_enc28j60_0_config,
|
||||
CONFIG_ETH_INIT_PRIORITY, &api_funcs, NET_ETH_MTU);
|
||||
|
||||
#endif /* CONFIG_ETH_ENC28J60_0 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue