From: Maxim Levitsky on
On Mon, 2010-03-01 at 13:54 -0800, Randy Dunlap wrote:
> From: Randy Dunlap <randy.dunlap(a)oracle.com>
>
> Fix r852 build for the case of CONFIG_PM=n.
>
> drivers/mtd/nand/r852.c:1039: error: implicit declaration of function 'pci_prepare_to_sleep'
> drivers/mtd/nand/r852.c:1048: error: implicit declaration of function 'pci_back_from_sleep'
>
> This patch leaves r852_pm_ops untouched.
>
> Signed-off-by: Randy Dunlap <randy.dunlap(a)oracle.com>
> Cc: Maxim Levitsky <maximlevitsky(a)gmail.com>
> Cc: "Rafael J. Wysocki" <rjw(a)sisk.pl>
> Cc: David Woodhouse <dwmw2(a)infradead.org>
> ---
> drivers/mtd/nand/r852.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> --- linux-next-20100301.orig/drivers/mtd/nand/r852.c
> +++ linux-next-20100301/drivers/mtd/nand/r852.c
> @@ -1007,6 +1007,7 @@ void r852_shutdown(struct pci_dev *pci_d
> pci_disable_device(pci_dev);
> }
>
> +#ifdef CONFIG_PM
> int r852_suspend(struct device *device)
> {
> struct r852_device *dev = pci_get_drvdata(to_pci_dev(device));
> @@ -1081,6 +1082,10 @@ int r852_resume(struct device *device)
> r852_update_card_detect(dev);
> return 0;
> }
> +#else
> +#define r852_suspend NULL
> +#define r852_resume NULL
> +#endif
>
> static const struct pci_device_id r852_pci_id_tbl[] = {
>
>
oops, I forgot about that case again..
Acked-by: Maxim Levitsky <maximlevitsky(a)gmail.com>

Best regards,
Maxim Levitsky

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
From: Randy Dunlap on
On 03/02/10 04:02, Maxim Levitsky wrote:
> On Mon, 2010-03-01 at 13:54 -0800, Randy Dunlap wrote:
>> From: Randy Dunlap <randy.dunlap(a)oracle.com>
>>
>> Fix r852 build for the case of CONFIG_PM=n.
>>
>> drivers/mtd/nand/r852.c:1039: error: implicit declaration of function 'pci_prepare_to_sleep'
>> drivers/mtd/nand/r852.c:1048: error: implicit declaration of function 'pci_back_from_sleep'
>>
>> This patch leaves r852_pm_ops untouched.
>>
>> Signed-off-by: Randy Dunlap <randy.dunlap(a)oracle.com>
>> Cc: Maxim Levitsky <maximlevitsky(a)gmail.com>
>> Cc: "Rafael J. Wysocki" <rjw(a)sisk.pl>
>> Cc: David Woodhouse <dwmw2(a)infradead.org>
>> ---
>> drivers/mtd/nand/r852.c | 5 +++++
>> 1 file changed, 5 insertions(+)
>>
>> --- linux-next-20100301.orig/drivers/mtd/nand/r852.c
>> +++ linux-next-20100301/drivers/mtd/nand/r852.c
>> @@ -1007,6 +1007,7 @@ void r852_shutdown(struct pci_dev *pci_d
>> pci_disable_device(pci_dev);
>> }
>>
>> +#ifdef CONFIG_PM
>> int r852_suspend(struct device *device)
>> {
>> struct r852_device *dev = pci_get_drvdata(to_pci_dev(device));
>> @@ -1081,6 +1082,10 @@ int r852_resume(struct device *device)
>> r852_update_card_detect(dev);
>> return 0;
>> }
>> +#else
>> +#define r852_suspend NULL
>> +#define r852_resume NULL
>> +#endif
>>
>> static const struct pci_device_id r852_pci_id_tbl[] = {
>>
>>
> oops, I forgot about that case again..
> Acked-by: Maxim Levitsky <maximlevitsky(a)gmail.com>

Ping. can we get this added to linux-next, please?


--
~Randy
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
From: Randy Dunlap on
On 03/11/10 08:29, Randy Dunlap wrote:
> On 03/02/10 04:02, Maxim Levitsky wrote:
>> On Mon, 2010-03-01 at 13:54 -0800, Randy Dunlap wrote:
>>> From: Randy Dunlap <randy.dunlap(a)oracle.com>
>>>
>>> Fix r852 build for the case of CONFIG_PM=n.
>>>
>>> drivers/mtd/nand/r852.c:1039: error: implicit declaration of function 'pci_prepare_to_sleep'
>>> drivers/mtd/nand/r852.c:1048: error: implicit declaration of function 'pci_back_from_sleep'
>>>
>>> This patch leaves r852_pm_ops untouched.
>>>
>>> Signed-off-by: Randy Dunlap <randy.dunlap(a)oracle.com>
>>> Cc: Maxim Levitsky <maximlevitsky(a)gmail.com>
>>> Cc: "Rafael J. Wysocki" <rjw(a)sisk.pl>
>>> Cc: David Woodhouse <dwmw2(a)infradead.org>
>>> ---
>>> drivers/mtd/nand/r852.c | 5 +++++
>>> 1 file changed, 5 insertions(+)
>>>
>>> --- linux-next-20100301.orig/drivers/mtd/nand/r852.c
>>> +++ linux-next-20100301/drivers/mtd/nand/r852.c
>>> @@ -1007,6 +1007,7 @@ void r852_shutdown(struct pci_dev *pci_d
>>> pci_disable_device(pci_dev);
>>> }
>>>
>>> +#ifdef CONFIG_PM
>>> int r852_suspend(struct device *device)
>>> {
>>> struct r852_device *dev = pci_get_drvdata(to_pci_dev(device));
>>> @@ -1081,6 +1082,10 @@ int r852_resume(struct device *device)
>>> r852_update_card_detect(dev);
>>> return 0;
>>> }
>>> +#else
>>> +#define r852_suspend NULL
>>> +#define r852_resume NULL
>>> +#endif
>>>
>>> static const struct pci_device_id r852_pci_id_tbl[] = {
>>>
>>>
>> oops, I forgot about that case again..
>> Acked-by: Maxim Levitsky <maximlevitsky(a)gmail.com>
>
> Ping. can we get this added to linux-next, please?

Sorry, it's there, but there are still build errors.
I will look at those...

--
~Randy
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/