Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 175772
b: refs/heads/master
c: fdfde24
h: refs/heads/master
v: v3
  • Loading branch information
Anton Vorontsov authored and Kumar Gala committed Nov 12, 2009
1 parent 13d8fb8 commit 6280d2a
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4c1fba442960cfa2fd6333b9fec7d5b85c5fa29f
refs/heads/master: fdfde24e108b49373f8702d5b9981217f35315d8
34 changes: 34 additions & 0 deletions trunk/arch/powerpc/sysdev/qe_lib/qe.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
#include <linux/delay.h>
#include <linux/ioport.h>
#include <linux/crc32.h>
#include <linux/mod_devicetable.h>
#include <linux/of_platform.h>
#include <asm/irq.h>
#include <asm/page.h>
#include <asm/pgtable.h>
Expand Down Expand Up @@ -647,3 +649,35 @@ unsigned int qe_get_num_of_snums(void)
return num_of_snums;
}
EXPORT_SYMBOL(qe_get_num_of_snums);

#if defined(CONFIG_SUSPEND) && defined(CONFIG_PPC_85xx)
static int qe_resume(struct of_device *ofdev)
{
if (!qe_alive_during_sleep())
qe_reset();
return 0;
}

static int qe_probe(struct of_device *ofdev, const struct of_device_id *id)
{
return 0;
}

static const struct of_device_id qe_ids[] = {
{ .compatible = "fsl,qe", },
{ },
};

static struct of_platform_driver qe_driver = {
.driver.name = "fsl-qe",
.match_table = qe_ids,
.probe = qe_probe,
.resume = qe_resume,
};

static int __init qe_drv_init(void)
{
return of_register_platform_driver(&qe_driver);
}
device_initcall(qe_drv_init);
#endif /* defined(CONFIG_SUSPEND) && defined(CONFIG_PPC_85xx) */

0 comments on commit 6280d2a

Please sign in to comment.