Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge branch 'devicetree/next' into spi/next

To pick up removal of #ifdef around .of_match_table

+8 -43
+3 -11
drivers/i2c/busses/i2c-ocores.c
··· 330 330 i2c->adap = ocores_adapter; 331 331 i2c_set_adapdata(&i2c->adap, i2c); 332 332 i2c->adap.dev.parent = &pdev->dev; 333 - #ifdef CONFIG_OF 334 333 i2c->adap.dev.of_node = pdev->dev.of_node; 335 - #endif 336 334 337 335 /* add i2c adapter to i2c tree */ 338 336 ret = i2c_add_adapter(&i2c->adap); ··· 388 390 #define ocores_i2c_resume NULL 389 391 #endif 390 392 391 - #ifdef CONFIG_OF 392 393 static struct of_device_id ocores_i2c_match[] = { 393 - { 394 - .compatible = "opencores,i2c-ocores", 395 - }, 396 - {}, 394 + { .compatible = "opencores,i2c-ocores", }, 395 + {}, 397 396 }; 398 397 MODULE_DEVICE_TABLE(of, ocores_i2c_match); 399 - #endif 400 398 401 399 /* work with hotplug and coldplug */ 402 400 MODULE_ALIAS("platform:ocores-i2c"); ··· 405 411 .driver = { 406 412 .owner = THIS_MODULE, 407 413 .name = "ocores-i2c", 408 - #ifdef CONFIG_OF 409 - .of_match_table = ocores_i2c_match, 410 - #endif 414 + .of_match_table = ocores_i2c_match, 411 415 }, 412 416 }; 413 417
-2
drivers/i2c/i2c-core.c
··· 537 537 client->dev.parent = &client->adapter->dev; 538 538 client->dev.bus = &i2c_bus_type; 539 539 client->dev.type = &i2c_client_type; 540 - #ifdef CONFIG_OF 541 540 client->dev.of_node = info->of_node; 542 - #endif 543 541 544 542 dev_set_name(&client->dev, "%d-%04x", i2c_adapter_id(adap), 545 543 client->addr);
-4
drivers/mmc/host/mmc_spi.c
··· 1516 1516 return 0; 1517 1517 } 1518 1518 1519 - #if defined(CONFIG_OF) 1520 1519 static struct of_device_id mmc_spi_of_match_table[] __devinitdata = { 1521 1520 { .compatible = "mmc-spi-slot", }, 1522 1521 {}, 1523 1522 }; 1524 - #endif 1525 1523 1526 1524 static struct spi_driver mmc_spi_driver = { 1527 1525 .driver = { 1528 1526 .name = "mmc_spi", 1529 1527 .bus = &spi_bus_type, 1530 1528 .owner = THIS_MODULE, 1531 - #if defined(CONFIG_OF) 1532 1529 .of_match_table = mmc_spi_of_match_table, 1533 - #endif 1534 1530 }, 1535 1531 .probe = mmc_spi_probe, 1536 1532 .remove = __devexit_p(mmc_spi_remove),
+1 -7
drivers/net/ethoc.c
··· 1163 1163 # define ethoc_resume NULL 1164 1164 #endif 1165 1165 1166 - #ifdef CONFIG_OF 1167 1166 static struct of_device_id ethoc_match[] = { 1168 - { 1169 - .compatible = "opencores,ethoc", 1170 - }, 1167 + { .compatible = "opencores,ethoc", }, 1171 1168 {}, 1172 1169 }; 1173 1170 MODULE_DEVICE_TABLE(of, ethoc_match); 1174 - #endif 1175 1171 1176 1172 static struct platform_driver ethoc_driver = { 1177 1173 .probe = ethoc_probe, ··· 1177 1181 .driver = { 1178 1182 .name = "ethoc", 1179 1183 .owner = THIS_MODULE, 1180 - #ifdef CONFIG_OF 1181 1184 .of_match_table = ethoc_match, 1182 - #endif 1183 1185 }, 1184 1186 }; 1185 1187
-2
drivers/spi/pxa2xx_spi.c
··· 1557 1557 drv_data->ssp = ssp; 1558 1558 1559 1559 master->dev.parent = &pdev->dev; 1560 - #ifdef CONFIG_OF 1561 1560 master->dev.of_node = pdev->dev.of_node; 1562 - #endif 1563 1561 /* the spi->mode bits understood by this driver: */ 1564 1562 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH; 1565 1563
-2
drivers/spi/pxa2xx_spi_pci.c
··· 98 98 pdev->dev.parent = &dev->dev; 99 99 pdev->dev.platform_data = &spi_info->spi_pdata; 100 100 101 - #ifdef CONFIG_OF 102 101 pdev->dev.of_node = dev->dev.of_node; 103 - #endif 104 102 pdev->dev.release = plat_dev_release; 105 103 106 104 spi_pdata->num_chipselect = dev->devfn;
-6
drivers/spi/xilinx_spi.c
··· 351 351 return IRQ_HANDLED; 352 352 } 353 353 354 - #ifdef CONFIG_OF 355 354 static const struct of_device_id xilinx_spi_of_match[] = { 356 355 { .compatible = "xlnx,xps-spi-2.00.a", }, 357 356 { .compatible = "xlnx,xps-spi-2.00.b", }, 358 357 {} 359 358 }; 360 359 MODULE_DEVICE_TABLE(of, xilinx_spi_of_match); 361 - #endif 362 360 363 361 struct spi_master *xilinx_spi_init(struct device *dev, struct resource *mem, 364 362 u32 irq, s16 bus_num, int num_cs, int little_endian, int bits_per_word) ··· 392 394 393 395 master->bus_num = bus_num; 394 396 master->num_chipselect = num_cs; 395 - #ifdef CONFIG_OF 396 397 master->dev.of_node = dev->of_node; 397 - #endif 398 398 399 399 xspi->mem = *mem; 400 400 xspi->irq = irq; ··· 535 539 .driver = { 536 540 .name = XILINX_SPI_NAME, 537 541 .owner = THIS_MODULE, 538 - #ifdef CONFIG_OF 539 542 .of_match_table = xilinx_spi_of_match, 540 - #endif 541 543 }, 542 544 }; 543 545
+2 -5
include/linux/device.h
··· 128 128 129 129 bool suppress_bind_attrs; /* disables bind/unbind via sysfs */ 130 130 131 - #if defined(CONFIG_OF) 132 131 const struct of_device_id *of_match_table; 133 - #endif 134 132 135 133 int (*probe) (struct device *dev); 136 134 int (*remove) (struct device *dev); ··· 439 441 override */ 440 442 /* arch specific additions */ 441 443 struct dev_archdata archdata; 442 - #ifdef CONFIG_OF 443 - struct device_node *of_node; 444 - #endif 444 + 445 + struct device_node *of_node; /* associated device tree node */ 445 446 446 447 dev_t devt; /* dev_t, creates the sysfs "dev" */ 447 448
-2
include/linux/i2c.h
··· 258 258 unsigned short addr; 259 259 void *platform_data; 260 260 struct dev_archdata *archdata; 261 - #ifdef CONFIG_OF 262 261 struct device_node *of_node; 263 - #endif 264 262 int irq; 265 263 }; 266 264
+2 -2
include/linux/of.h
··· 23 23 24 24 #include <asm/byteorder.h> 25 25 26 - #ifdef CONFIG_OF 27 - 28 26 typedef u32 phandle; 29 27 typedef u32 ihandle; 30 28 ··· 62 64 struct of_irq_controller *irq_trans; 63 65 #endif 64 66 }; 67 + 68 + #ifdef CONFIG_OF 65 69 66 70 /* Pointer for first entry in chain of all nodes. */ 67 71 extern struct device_node *allnodes;