15 #include <linux/types.h>
16 #include <linux/errno.h>
17 #include <linux/export.h>
20 #include <linux/device.h>
29 #define PMCSR_SLP (1 << 17)
32 static struct device *pmc_dev;
46 dev_err(pmc_dev,
"tired waiting for SLP bit to clear\n");
58 .valid = pmc_suspend_valid,
59 .enter = pmc_suspend_enter,
68 pmc_dev = &ofdev->
dev;
74 { .compatible =
"fsl,mpc8548-pmc", },
75 { .compatible =
"fsl,mpc8641d-pmc", },
83 .of_match_table = pmc_ids,
88 static int __init pmc_init(
void)