Geert Uytterhoeven
1db73ae39a
of/device: Nullify match table in of_match_device() for CONFIG_OF=n
...
If the of_device_id table inside a device driver is protected by #ifdef
CONFIG_OF, the driver still has to provide a dummy declaration of the
table, or wrap it inside of_match_ptr(), when calling of_match_device()
in the CONFIG_OF=n case, else the driver fails to compile with e.g.
drivers/spi/spi-rspi.c: In function 'rspi_probe':
drivers/spi/spi-rspi.c:1203:26: error: 'rspi_of_match' undeclared (first use in this function)
drivers/spi/spi-rspi.c:1203:26: note: each undeclared identifier is reported only once for each function it appears in
Make of_match_device() nullify the table pointer if CONFIG_OF=n to fix
this.
Reported-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com >
Signed-off-by: Geert Uytterhoeven <geert+renesas@linux-m68k.org >
Signed-off-by: Rob Herring <robh@kernel.org >
2014-02-05 10:04:37 -06:00
..
2014-01-30 17:20:32 -08:00
2014-01-30 11:19:05 -08:00
2014-01-28 18:44:53 -08:00
2014-01-24 17:17:30 -08:00
2014-01-25 10:49:30 -08:00
2014-01-28 18:53:01 -08:00
2014-01-25 11:17:34 -08:00
2014-01-22 23:23:54 -08:00
2014-01-26 11:00:41 -08:00
2014-01-20 11:55:23 -08:00
2014-01-31 09:31:14 -08:00
2014-01-31 08:59:46 -08:00
2014-01-25 13:20:36 -08:00
2014-01-24 22:39:54 +01:00
2014-01-30 10:18:43 -08:00
2014-01-23 18:49:36 -08:00
2014-01-28 08:09:46 -07:00
2014-01-30 16:56:54 -08:00
2014-01-30 16:56:54 -08:00
2014-01-23 16:36:56 -08:00
2014-01-30 17:07:18 -08:00
2014-01-21 20:18:26 -08:00
2014-01-21 16:19:48 -08:00
2014-02-01 10:43:45 -08:00
2014-01-23 18:11:00 -08:00
2014-01-23 18:11:00 -08:00
2014-01-21 16:19:41 -08:00
2014-01-29 20:27:23 -08:00
2014-01-25 03:14:36 -05:00
2014-01-21 18:57:43 -08:00
2014-01-21 23:17:20 -08:00
2014-01-25 23:58:17 -05:00
2014-01-29 13:57:10 +01:00
2014-01-23 16:36:52 -08:00
2014-01-23 16:36:50 -08:00
2014-01-21 16:19:43 -08:00
2014-01-23 16:36:50 -08:00
2014-01-23 16:36:50 -08:00
2014-01-29 20:40:08 +01:00
2014-01-26 22:48:35 +01:00
2014-01-23 18:08:10 -08:00
2014-01-27 21:02:40 -08:00
2014-01-27 21:02:40 -08:00
2014-01-27 21:02:39 -08:00
2014-01-19 19:53:18 -08:00
2014-01-25 11:17:34 -08:00
2014-01-23 16:37:03 -08:00
2014-01-25 08:55:09 +01:00
2014-01-21 16:19:45 -08:00
2014-01-27 21:45:29 +01:00
2014-01-23 16:36:51 -08:00
2014-01-23 16:36:51 -08:00
2014-01-21 16:19:44 -08:00
2014-01-21 16:19:49 -08:00
2014-01-27 21:11:26 -08:00
2014-01-21 16:19:44 -08:00
2014-01-23 16:36:50 -08:00
2014-01-21 16:19:48 -08:00
2014-01-27 21:02:39 -08:00
2014-01-22 21:57:17 -08:00
2014-01-31 15:39:07 -08:00
2014-01-25 03:14:05 -05:00
2014-02-05 10:04:37 -06:00
2014-02-05 09:51:54 -06:00
2014-01-23 16:36:50 -08:00
2014-01-23 16:36:50 -08:00
2014-01-23 16:36:55 -08:00
2014-01-22 16:39:28 -08:00
2014-01-23 20:17:18 +00:00
2014-01-23 16:36:50 -08:00
2014-01-22 19:36:57 +01:00
2014-01-25 23:58:17 -05:00
2014-01-28 08:38:04 -08:00
2014-01-23 14:48:35 +01:00
2014-01-25 11:17:34 -08:00
2014-01-23 16:36:58 -08:00
2014-01-21 23:17:20 -08:00
2014-01-28 08:38:04 -08:00
2014-01-21 23:17:20 -08:00
2014-01-21 16:19:45 -08:00
2014-01-28 13:20:09 -08:00
2014-01-23 16:37:02 -08:00
2014-01-19 19:55:50 -08:00
2014-01-23 13:02:36 +01:00
2014-01-27 21:02:39 -08:00
2014-01-26 22:38:23 -08:00
2014-01-25 11:17:34 -08:00
2014-02-02 11:30:08 -08:00
2014-01-30 16:56:54 -08:00
2014-01-22 21:57:05 -08:00
2014-01-27 21:02:40 -08:00
2014-01-21 08:28:07 +00:00
2014-01-21 17:05:27 -08:00
2014-01-20 16:13:02 -08:00
2014-01-29 16:22:39 -08:00
2014-01-23 16:37:04 -08:00
2014-01-22 10:25:39 +01:00
2014-01-30 16:56:55 -08:00