2 * Legacy platform_data quirks
4 * Copyright (C) 2016 BayLibre, Inc
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
10 #include <linux/kernel.h>
11 #include <linux/of_platform.h>
13 #include <mach/common.h>
16 const char *compatible;
20 static void pdata_quirks_check(struct pdata_init *quirks)
22 while (quirks->compatible) {
23 if (of_machine_is_compatible(quirks->compatible)) {
32 static struct pdata_init pdata_quirks[] __initdata = {
36 void __init pdata_quirks_init(void)
38 pdata_quirks_check(pdata_quirks);