fix and tailoring

Signed-off-by: a@b.com <a@b.com>
This commit is contained in:
a@b.com 2023-03-30 16:52:58 +08:00
parent 4257fd8028
commit 12530d84e0
5 changed files with 627 additions and 803 deletions

File diff suppressed because it is too large Load Diff

View File

@ -217,7 +217,7 @@ static void __exit lpc_exit(void)
{
if (!cpu_is_phytium())
{
return 0;
return ;
}
platform_driver_unregister(&lpc_driver);

View File

@ -1411,7 +1411,7 @@ static int i8042_pm_suspend(struct device *dev)
int i;
#ifdef CONFIG_ARCH_PHYTIUM_LPC
if (cpu_is_phytium)
if (cpu_is_phytium())
phytium_laptop_toggle_aux(true);
#endif
if (pm_suspend_via_firmware())

View File

@ -402,7 +402,7 @@ static void mars_get_wol(struct phy_device *phydev, struct ethtool_wolinfo *wol)
val = mars_ext_read(phydev, CTC_MARS_WOL_CFG_REG);
if (val < 0)
return val;
return;
if (val & CTC_MARS_WOL_EN)
wol->wolopts |= WAKE_MAGIC;

View File

@ -5,6 +5,6 @@ config SECURITY_HOOKMANAGER
select SECURITYFS
select SECURITY_PATH
select SECURITY_NETWORK
default y
default n
help
This selects an hook manager for LSM hooks.