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

Merge tag 'at91-ab-4.8-drivers2' of git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux into next/drivers

Drivers for 4.8 #2:
- Make memory drivers explicitly non-modular

* tag 'at91-ab-4.8-drivers2' of git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux:
memory: atmel-ebi: make it explicitly non-modular
memory: atmel-sdramc: make it explicitly non-modular

Signed-off-by: Olof Johansson <olof@lixom.net>

+6 -14
+2 -7
drivers/memory/atmel-ebi.c
··· 14 14 #include <linux/mfd/syscon.h> 15 15 #include <linux/mfd/syscon/atmel-matrix.h> 16 16 #include <linux/mfd/syscon/atmel-smc.h> 17 - #include <linux/module.h> 17 + #include <linux/init.h> 18 18 #include <linux/of_device.h> 19 19 #include <linux/regmap.h> 20 20 ··· 648 648 }, 649 649 { /* sentinel */ } 650 650 }; 651 - MODULE_DEVICE_TABLE(of, at91_ebi_id_table); 652 651 653 652 static int at91_ebi_dev_disable(struct at91_ebi *ebi, struct device_node *np) 654 653 { ··· 763 764 .of_match_table = at91_ebi_id_table, 764 765 }, 765 766 }; 766 - module_platform_driver_probe(at91_ebi_driver, at91_ebi_probe); 767 - 768 - MODULE_AUTHOR("Jean-Jacques Hiblot <jjhiblot@traphandler.com>"); 769 - MODULE_DESCRIPTION("Atmel EBI driver"); 770 - MODULE_LICENSE("GPL"); 767 + builtin_platform_driver_probe(at91_ebi_driver, at91_ebi_probe);
+4 -7
drivers/memory/atmel-sdramc.c
··· 1 1 /* 2 2 * Atmel (Multi-port DDR-)SDRAM Controller driver 3 3 * 4 + * Author: Alexandre Belloni <alexandre.belloni@free-electrons.com> 5 + * 4 6 * Copyright (C) 2014 Atmel 5 7 * 6 8 * This program is free software: you can redistribute it and/or modify ··· 22 20 #include <linux/clk.h> 23 21 #include <linux/err.h> 24 22 #include <linux/kernel.h> 25 - #include <linux/module.h> 23 + #include <linux/init.h> 26 24 #include <linux/of_platform.h> 27 25 #include <linux/platform_device.h> 28 26 ··· 50 48 { .compatible = "atmel,sama5d3-ddramc", .data = &sama5d3_caps, }, 51 49 {}, 52 50 }; 53 - MODULE_DEVICE_TABLE(of, atmel_ramc_of_match); 54 51 55 52 static int atmel_ramc_probe(struct platform_device *pdev) 56 53 { ··· 91 90 { 92 91 return platform_driver_register(&atmel_ramc_driver); 93 92 } 94 - module_init(atmel_ramc_init); 95 - 96 - MODULE_LICENSE("GPL v2"); 97 - MODULE_AUTHOR("Alexandre Belloni <alexandre.belloni@free-electrons.com>"); 98 - MODULE_DESCRIPTION("Atmel (Multi-port DDR-)SDRAM Controller"); 93 + device_initcall(atmel_ramc_init);