6 #include <linux/kernel.h>
7 #include <linux/types.h>
8 #include <linux/slab.h>
9 #include <linux/export.h>
10 #include <linux/string.h>
69 printk(
KERN_ERR "clock_board: Cannot allocate struct clock_board\n");
86 goto out_unmap_clock_freq_regs;
95 goto out_unmap_clock_regs;
99 p->
num_slots = clock_board_calc_nslots(p);
106 p->
leds_pdev.name =
"sunfire-clockboard-leds";
115 "platform device\n");
116 goto out_unmap_clock_ver_reg;
126 out_unmap_clock_ver_reg:
131 out_unmap_clock_regs:
135 out_unmap_clock_freq_regs:
144 static const struct of_device_id clock_board_match[] = {
146 .name =
"clock-board",
152 .probe = clock_board_probe,
154 .name =
"clock_board",
156 .of_match_table = clock_board_match,
171 if (!
strcmp(op->
dev.of_node->parent->name,
"central"))
184 p->
board_num = ((reg >> 16) & 1) | ((reg >> 12) & 0x0e);
189 goto out_unmap_pregs;
210 "platform device\n");
211 goto out_unmap_pregs;
227 printk(
KERN_INFO "fhc: Board #%d, Version[%x] PartID[%x] Manuf[%x] %s\n",
234 (p->
central ?
"(Central)" :
"")));
261 .of_match_table = fhc_match,
265 static int __init sunfire_init(
void)