From 9999e48639b3cecb08ffb37358bcba3b48161b29 Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Fri, 10 May 2024 08:50:17 +0000 Subject: [PATCH] add ax88772_rst --- kernel/arch/x86/platform/olpc/olpc-xo1-pm.c | 14 +------------- 1 files changed, 1 insertions(+), 13 deletions(-) diff --git a/kernel/arch/x86/platform/olpc/olpc-xo1-pm.c b/kernel/arch/x86/platform/olpc/olpc-xo1-pm.c index 0668aaf..f067ac7 100644 --- a/kernel/arch/x86/platform/olpc/olpc-xo1-pm.c +++ b/kernel/arch/x86/platform/olpc/olpc-xo1-pm.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Support for power management features of the OLPC XO-1 laptop * @@ -5,18 +6,12 @@ * Copyright (C) 2010 One Laptop per Child * Copyright (C) 2006 Red Hat, Inc. * Copyright (C) 2006 Advanced Micro Devices, Inc. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. */ #include <linux/cs5535.h> #include <linux/platform_device.h> #include <linux/export.h> #include <linux/pm.h> -#include <linux/mfd/core.h> #include <linux/suspend.h> #include <linux/olpc-ec.h> @@ -124,15 +119,10 @@ static int xo1_pm_probe(struct platform_device *pdev) { struct resource *res; - int err; /* don't run on non-XOs */ if (!machine_is_olpc()) return -ENODEV; - - err = mfd_cell_enable(pdev); - if (err) - return err; res = platform_get_resource(pdev, IORESOURCE_IO, 0); if (!res) { @@ -156,8 +146,6 @@ static int xo1_pm_remove(struct platform_device *pdev) { - mfd_cell_disable(pdev); - if (strcmp(pdev->name, "cs5535-pms") == 0) pms_base = 0; else if (strcmp(pdev->name, "olpc-xo1-pm-acpi") == 0) -- Gitblit v1.6.2