[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4EB42CA2.2040000@xenotime.net>
Date: Fri, 04 Nov 2011 11:19:14 -0700
From: Randy Dunlap <rdunlap@...otime.net>
To: Mark Einon <mark.einon@...il.com>
CC: sfr@...b.auug.org.au, linux-next@...r.kernel.org,
linux-kernel@...r.kernel.org, torvalds@...ux-foundation.org,
gregkh@...e.de
Subject: Re: [PATCH] linux-next: et131x: Fix build error when CONFIG_PM_SLEEP
not enabled
On 11/04/2011 10:58 AM, Mark Einon wrote:
> Randy Dunlap reports that the ex131x driver doesn't build when CONFIG_PM_SLEEP is not enabled.
> This bug was introduced when moving code around to remove some forward declarations earlier, the #endif part of #ifdef CONFIG_PM_SLEEP was not moved at the same time. Now fixed by moving it to its proper place.
>
> Reported-by: Randy Dunlap <rdunlap@...otime.net>
> Signed-off-by: Mark Einon <mark.einon@...il.com>
Acked-by: Randy Dunlap <rdunlap@...otime.net>
Thanks.
> ---
> drivers/staging/et131x/et131x.c | 12 ++++++------
> 1 files changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/staging/et131x/et131x.c b/drivers/staging/et131x/et131x.c
> index f5f44a0..0c1c6ca 100644
> --- a/drivers/staging/et131x/et131x.c
> +++ b/drivers/staging/et131x/et131x.c
> @@ -4469,6 +4469,12 @@ static int et131x_resume(struct device *dev)
> return 0;
> }
>
> +static SIMPLE_DEV_PM_OPS(et131x_pm_ops, et131x_suspend, et131x_resume);
> +#define ET131X_PM_OPS (&et131x_pm_ops)
> +#else
> +#define ET131X_PM_OPS NULL
> +#endif
> +
> /* ISR functions */
>
> /**
> @@ -5470,12 +5476,6 @@ err_out:
> return result;
> }
>
> -static SIMPLE_DEV_PM_OPS(et131x_pm_ops, et131x_suspend, et131x_resume);
> -#define ET131X_PM_OPS (&et131x_pm_ops)
> -#else
> -#define ET131X_PM_OPS NULL
> -#endif
> -
> static DEFINE_PCI_DEVICE_TABLE(et131x_pci_table) = {
> { PCI_VDEVICE(ATT, ET131X_PCI_DEVICE_ID_GIG), 0UL},
> { PCI_VDEVICE(ATT, ET131X_PCI_DEVICE_ID_FAST), 0UL},
--
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists