Pull driver core update from Greg KH: "Here's the set of driver core patches for 3.19-rc1. They are dominated by the removal of the .owner field in platform drivers. They touch a lot of files, but they are "simple" changes, just removing a line in a structure. Other than that, a few minor driver core and debugfs changes. There are some ath9k patches coming in through this tree that have been acked by the wireless maintainers as they relied on the debugfs changes. Everything has been in linux-next for a while" * tag 'driver-core-3.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: (324 commits) Revert "ath: ath9k: use debugfs_create_devm_seqfile() helper for seq_file entries" fs: debugfs: add forward declaration for struct device type firmware class: Deletion of an unnecessary check before the function call "vunmap" firmware loader: fix hung task warning dump devcoredump: provide a one-way disable function device: Add dev_<level>_once variants ath: ath9k: use debugfs_create_devm_seqfile() helper for seq_file entries ath: use seq_file api for ath9k debugfs files debugfs: add helper function to create device related seq_file drivers/base: cacheinfo: remove noisy error boot message Revert "core: platform: add warning if driver has no owner" drivers: base: support cpu cache information interface to userspace via sysfs drivers: base: add cpu_device_create to support per-cpu devices topology: replace custom attribute macros with standard DEVICE_ATTR* cpumask: factor out show_cpumap into separate helper function driver core: Fix unbalanced device reference in drivers_probe driver core: fix race with userland in device_add() sysfs/kernfs: make read requests on pre-alloc files use the buffer. sysfs/kernfs: allow attributes to request write buffer be pre-allocated. fs: sysfs: return EGBIG on write if offset is larger than file size ...
Unified · Split
| @@ -224,3 +224,50 @@ Description: Parameters for the Intel P-state driver · 223 unmodified lines | ||
| 224 | 224 | frequency range. |
| 225 | 225 | |
| 226 | 226 | More details can be found in Documentation/cpu-freq/intel-pstate.txt |
| 227 | + | |
| 228 | +What: /sys/devices/system/cpu/cpu*/cache/index*/<set_of_attributes_mentioned_below> | |
| 229 | +Date: July 2014(documented, existed before August 2008) | |
| 230 | +Contact: Sudeep Holla <sudeep.holla@arm.com> | |
| 231 | + Linux kernel mailing list <linux-kernel@vger.kernel.org> | |
| 232 | +Description: Parameters for the CPU cache attributes | |
| 233 | + | |
| 234 | + allocation_policy: | |
| 235 | + - WriteAllocate: allocate a memory location to a cache line | |
| 236 | + on a cache miss because of a write | |
| 237 | + - ReadAllocate: allocate a memory location to a cache line | |
| 238 | + on a cache miss because of a read | |
| 239 | + - ReadWriteAllocate: both writeallocate and readallocate | |
| 240 | + | |
| 241 | + attributes: LEGACY used only on IA64 and is same as write_policy | |
| 242 | + | |
| 243 | + coherency_line_size: the minimum amount of data in bytes that gets | |
| 244 | + transferred from memory to cache | |
| 245 | + | |
| 246 | + level: the cache hierarcy in the multi-level cache configuration | |
| 247 | + | |
| 248 | + number_of_sets: total number of sets in the cache, a set is a | |
| 249 | + collection of cache lines with the same cache index | |
| 250 | + | |
| 251 | + physical_line_partition: number of physical cache line per cache tag | |
| 252 | + | |
| 253 | + shared_cpu_list: the list of logical cpus sharing the cache | |
| 254 | + | |
| 255 | + shared_cpu_map: logical cpu mask containing the list of cpus sharing | |
| 256 | + the cache | |
| 257 | + | |
| 258 | + size: the total cache size in kB | |
| 259 | + | |
| 260 | + type: | |
| 261 | + - Instruction: cache that only holds instructions | |
| 262 | + - Data: cache that only caches data | |
| 263 | + - Unified: cache that holds both data and instructions | |
| 264 | + | |
| 265 | + ways_of_associativity: degree of freedom in placing a particular block | |
| 266 | + of memory in the cache | |
| 267 | + | |
| 268 | + write_policy: | |
| 269 | + - WriteThrough: data is written to both the cache line | |
| 270 | + and to the block in the lower-level memory | |
| 271 | + - WriteBack: data is written only to the cache line and | |
| 272 | + the modified cache line is written to main | |
| 273 | + memory only when it is replaced | |
| @@ -1056,7 +1056,6 @@ static struct platform_driver sa1111_device_driver = { · 1055 unmodified lines | ||
| 1056 | 1056 | .resume = sa1111_resume, |
| 1057 | 1057 | .driver = { |
| 1058 | 1058 | .name = "sa1111", |
| 1059 | − .owner = THIS_MODULE, | |
| 1060 | 1059 | }, |
| 1061 | 1060 | }; |
| 1062 | 1061 | |
| @@ -91,7 +91,6 @@ static int __init davinci_cpuidle_probe(struct platform_device *pdev) · 90 unmodified lines | ||
| 91 | 91 | static struct platform_driver davinci_cpuidle_driver = { |
| 92 | 92 | .driver = { |
| 93 | 93 | .name = "cpuidle-davinci", |
| 94 | − .owner = THIS_MODULE, | |
| 95 | 94 | }, |
| 96 | 95 | }; |
| 97 | 96 | |
| @@ -148,7 +148,6 @@ static int __exit davinci_pm_remove(struct platform_device *pdev) · 147 unmodified lines | ||
| 148 | 148 | static struct platform_driver davinci_pm_driver = { |
| 149 | 149 | .driver = { |
| 150 | 150 | .name = "pm-davinci", |
| 151 | − .owner = THIS_MODULE, | |
| 152 | 151 | }, |
| 153 | 152 | .remove = __exit_p(davinci_pm_remove), |
| 154 | 153 | }; |
| @@ -76,7 +76,6 @@ static struct of_device_id imx_mmdc_dt_ids[] = { · 75 unmodified lines | ||
| 76 | 76 | static struct platform_driver imx_mmdc_driver = { |
| 77 | 77 | .driver = { |
| 78 | 78 | .name = "imx-mmdc", |
| 79 | − .owner = THIS_MODULE, | |
| 80 | 79 | .of_match_table = imx_mmdc_dt_ids, |
| 81 | 80 | }, |
| 82 | 81 | .probe = imx_mmdc_probe, |
| @@ -169,7 +169,6 @@ static struct platform_driver msm_clock_pcom_driver = { · 168 unmodified lines | ||
| 169 | 169 | .probe = msm_clock_pcom_probe, |
| 170 | 170 | .driver = { |
| 171 | 171 | .name = "msm-clock-pcom", |
| 172 | − .owner = THIS_MODULE, | |
| 173 | 172 | }, |
| 174 | 173 | }; |
| 175 | 174 | module_platform_driver(msm_clock_pcom_driver); |
| @@ -1019,7 +1019,6 @@ static struct platform_driver msm_smd_driver = { · 1018 unmodified lines | ||
| 1019 | 1019 | .probe = msm_smd_probe, |
| 1020 | 1020 | .driver = { |
| 1021 | 1021 | .name = MODULE_NAME, |
| 1022 | − .owner = THIS_MODULE, | |
| 1023 | 1022 | }, |
| 1024 | 1023 | }; |
| 1025 | 1024 | |
| @@ -135,7 +135,6 @@ static struct platform_driver sirfsoc_memc_driver = { · 134 unmodified lines | ||
| 135 | 135 | .probe = sirfsoc_memc_probe, |
| 136 | 136 | .driver = { |
| 137 | 137 | .name = "sirfsoc-memc", |
| 138 | − .owner = THIS_MODULE, | |
| 139 | 138 | .of_match_table = memc_ids, |
| 140 | 139 | }, |
| 141 | 140 | }; |
| @@ -114,7 +114,6 @@ static struct platform_driver sirfsoc_rstc_driver = { · 113 unmodified lines | ||
| 114 | 114 | .probe = sirfsoc_rstc_probe, |
| 115 | 115 | .driver = { |
| 116 | 116 | .name = "sirfsoc_rstc", |
| 117 | − .owner = THIS_MODULE, | |
| 118 | 117 | .of_match_table = rstc_ids, |
| 119 | 118 | }, |
| 120 | 119 | }; |
| @@ -123,7 +123,6 @@ static struct platform_driver sirfsoc_rtciobrg_driver = { · 122 unmodified lines | ||
| 123 | 123 | .probe = sirfsoc_rtciobrg_probe, |
| 124 | 124 | .driver = { |
| 125 | 125 | .name = "sirfsoc-rtciobrg", |
| 126 | − .owner = THIS_MODULE, | |
| 127 | 126 | .of_match_table = rtciobrg_ids, |
| 128 | 127 | }, |
| 129 | 128 | }; |
| @@ -379,7 +379,6 @@ static int pxa3xx_u2d_remove(struct platform_device *pdev) · 378 unmodified lines | ||
| 379 | 379 | static struct platform_driver pxa3xx_u2d_ulpi_driver = { |
| 380 | 380 | .driver = { |
| 381 | 381 | .name = "pxa3xx-u2d", |
| 382 | − .owner = THIS_MODULE, | |
| 383 | 382 | }, |
| 384 | 383 | .probe = pxa3xx_u2d_probe, |
| 385 | 384 | .remove = pxa3xx_u2d_remove, |
| @@ -129,7 +129,6 @@ static struct platform_driver tosa_bt_driver = { · 128 unmodified lines | ||
| 129 | 129 | |
| 130 | 130 | .driver = { |
| 131 | 131 | .name = "tosa-bt", |
| 132 | − .owner = THIS_MODULE, | |
| 133 | 132 | }, |
| 134 | 133 | }; |
| 135 | 134 | |
| @@ -171,7 +171,6 @@ static struct platform_driver osiris_dvs_driver = { · 170 unmodified lines | ||
| 171 | 171 | .remove = osiris_dvs_remove, |
| 172 | 172 | .driver = { |
| 173 | 173 | .name = "osiris-dvs", |
| 174 | − .owner = THIS_MODULE, | |
| 175 | 174 | .pm = &osiris_dvs_pm, |
| 176 | 175 | }, |
| 177 | 176 | }; |
| @@ -423,7 +423,6 @@ static struct platform_driver neponset_device_driver = { · 422 unmodified lines | ||
| 423 | 423 | .remove = neponset_remove, |
| 424 | 424 | .driver = { |
| 425 | 425 | .name = "neponset", |
| 426 | − .owner = THIS_MODULE, | |
| 427 | 426 | .pm = PM_OPS, |
| 428 | 427 | }, |
| 429 | 428 | }; |
| @@ -116,7 +116,6 @@ static const struct of_device_id s365_board_match[] = { · 115 unmodified lines | ||
| 116 | 116 | static struct platform_driver s365_board_driver = { |
| 117 | 117 | .driver = { |
| 118 | 118 | .name = "s365-board", |
| 119 | − .owner = THIS_MODULE, | |
| 120 | 119 | .of_match_table = s365_board_match, |
| 121 | 120 | }, |
| 122 | 121 | }; |
| @@ -268,7 +268,6 @@ static struct platform_driver pxa_ssp_driver = { · 267 unmodified lines | ||
| 268 | 268 | .probe = pxa_ssp_probe, |
| 269 | 269 | .remove = pxa_ssp_remove, |
| 270 | 270 | .driver = { |
| 271 | − .owner = THIS_MODULE, | |
| 272 | 271 | .name = "pxa2xx-ssp", |
| 273 | 272 | .of_match_table = of_match_ptr(pxa_ssp_of_ids), |
| 274 | 273 | }, |
| @@ -505,7 +505,6 @@ static struct platform_driver s3c_adc_driver = { · 504 unmodified lines | ||
| 505 | 505 | .id_table = s3c_adc_driver_ids, |
| 506 | 506 | .driver = { |
| 507 | 507 | .name = "s3c-adc", |
| 508 | − .owner = THIS_MODULE, | |
| 509 | 508 | .pm = &adc_pm_ops, |
| 510 | 509 | }, |
| 511 | 510 | .probe = s3c_adc_probe, |
| @@ -46,7 +46,6 @@ static struct platform_driver dcdc_driver = { · 45 unmodified lines | ||
| 46 | 46 | .probe = dcdc_probe, |
| 47 | 47 | .driver = { |
| 48 | 48 | .name = "dcdc-xrx200", |
| 49 | − .owner = THIS_MODULE, | |
| 50 | 49 | .of_match_table = dcdc_match, |
| 51 | 50 | }, |
| 52 | 51 | }; |
| @@ -261,7 +261,6 @@ static struct platform_driver dma_driver = { · 260 unmodified lines | ||
| 261 | 261 | .probe = ltq_dma_init, |
| 262 | 262 | .driver = { |
| 263 | 263 | .name = "dma-xway", |
| 264 | − .owner = THIS_MODULE, | |
| 265 | 264 | .of_match_table = dma_match, |
| 266 | 265 | }, |
| 267 | 266 | }; |
| @@ -193,7 +193,6 @@ static struct platform_driver dma_driver = { · 192 unmodified lines | ||
| 193 | 193 | .probe = gptu_probe, |
| 194 | 194 | .driver = { |
| 195 | 195 | .name = "gptu-xway", |
| 196 | − .owner = THIS_MODULE, | |
| 197 | 196 | .of_match_table = gptu_match, |
| 198 | 197 | }, |
| 199 | 198 | }; |
| @@ -106,7 +106,6 @@ static struct platform_driver xway_phy_driver = { · 105 unmodified lines | ||
| 106 | 106 | .probe = xway_phy_fw_probe, |
| 107 | 107 | .driver = { |
| 108 | 108 | .name = "phy-xrx200", |
| 109 | − .owner = THIS_MODULE, | |
| 110 | 109 | .of_match_table = xway_phy_match, |
| 111 | 110 | }, |
| 112 | 111 | }; |
| @@ -70,7 +70,6 @@ static struct platform_driver sead3_led_driver = { · 69 unmodified lines | ||
| 70 | 70 | .remove = sead3_led_remove, |
| 71 | 71 | .driver = { |
| 72 | 72 | .name = DRVNAME, |
| 73 | − .owner = THIS_MODULE, | |
| 74 | 73 | }, |
| 75 | 74 | }; |
| 76 | 75 | |
| @@ -380,7 +380,6 @@ static int sead3_i2c_platform_resume(struct platform_device *pdev) · 379 unmodified lines | ||
| 380 | 380 | static struct platform_driver sead3_i2c_platform_driver = { |
| 381 | 381 | .driver = { |
| 382 | 382 | .name = "sead3-i2c", |
| 383 | − .owner = THIS_MODULE, | |
| 384 | 383 | }, |
| 385 | 384 | .probe = sead3_i2c_platform_probe, |
| 386 | 385 | .remove = sead3_i2c_platform_remove, |
| @@ -505,7 +505,6 @@ static struct platform_driver alchemy_pcictl_driver = { · 504 unmodified lines | ||
| 505 | 505 | .probe = alchemy_pci_probe, |
| 506 | 506 | .driver = { |
| 507 | 507 | .name = "alchemy-pci", |
| 508 | − .owner = THIS_MODULE, | |
| 509 | 508 | }, |
| 510 | 509 | }; |
| 511 | 510 | |
| @@ -403,7 +403,6 @@ static struct platform_driver ar71xx_pci_driver = { · 402 unmodified lines | ||
| 403 | 403 | .probe = ar71xx_pci_probe, |
| 404 | 404 | .driver = { |
| 405 | 405 | .name = "ar71xx-pci", |
| 406 | − .owner = THIS_MODULE, | |
| 407 | 406 | }, |
| 408 | 407 | }; |
| 409 | 408 | |
| @@ -400,7 +400,6 @@ static struct platform_driver ar724x_pci_driver = { · 399 unmodified lines | ||
| 400 | 400 | .probe = ar724x_pci_probe, |
| 401 | 401 | .driver = { |
| 402 | 402 | .name = "ar724x-pci", |
| 403 | − .owner = THIS_MODULE, | |
| 404 | 403 | }, |
| 405 | 404 | }; |
| 406 | 405 | |
| @@ -242,7 +242,6 @@ static struct platform_driver ltq_pci_driver = { · 241 unmodified lines | ||
| 242 | 242 | .probe = ltq_pci_probe, |
| 243 | 243 | .driver = { |
| 244 | 244 | .name = "pci-xway", |
| 245 | − .owner = THIS_MODULE, | |
| 246 | 245 | .of_match_table = ltq_pci_match, |
| 247 | 246 | }, |
| 248 | 247 | }; |
| @@ -589,7 +589,6 @@ static struct platform_driver rt3883_pci_driver = { · 588 unmodified lines | ||
| 589 | 589 | .probe = rt3883_pci_probe, |
| 590 | 590 | .driver = { |
| 591 | 591 | .name = "rt3883-pci", |
| 592 | − .owner = THIS_MODULE, | |
| 593 | 592 | .of_match_table = of_match_ptr(rt3883_pci_ids), |
| 594 | 593 | }, |
| 595 | 594 | }; |
| @@ -173,7 +173,6 @@ static struct platform_driver rt_timer_driver = { · 172 unmodified lines | ||
| 173 | 173 | .remove = rt_timer_remove, |
| 174 | 174 | .driver = { |
| 175 | 175 | .name = "rt-timer", |
| 176 | − .owner = THIS_MODULE, | |
| 177 | 176 | .of_match_table = rt_timer_match |
| 178 | 177 | }, |
| 179 | 178 | }; |
| @@ -245,7 +245,6 @@ static int __init rbtx4939_led_probe(struct platform_device *pdev) · 244 unmodified lines | ||
| 245 | 245 | static struct platform_driver rbtx4939_led_driver = { |
| 246 | 246 | .driver = { |
| 247 | 247 | .name = "rbtx4939-led", |
| 248 | − .owner = THIS_MODULE, | |
| 249 | 248 | }, |
| 250 | 249 | }; |
| 251 | 250 | |
| @@ -110,7 +110,6 @@ static struct platform_driver of_pci_phb_driver = { · 109 unmodified lines | ||
| 110 | 110 | .probe = of_pci_phb_probe, |
| 111 | 111 | .driver = { |
| 112 | 112 | .name = "of-pci", |
| 113 | − .owner = THIS_MODULE, | |
| 114 | 113 | .of_match_table = of_pci_phb_ids, |
| 115 | 114 | }, |
| 116 | 115 | }; |
| @@ -782,7 +782,6 @@ static const struct of_device_id mpc52xx_gpt_match[] = { · 781 unmodified lines | ||
| 782 | 782 | static struct platform_driver mpc52xx_gpt_driver = { |
| 783 | 783 | .driver = { |
| 784 | 784 | .name = "mpc52xx-gpt", |
| 785 | − .owner = THIS_MODULE, | |
| 786 | 785 | .of_match_table = mpc52xx_gpt_match, |
| 787 | 786 | }, |
| 788 | 787 | .probe = mpc52xx_gpt_probe, |
| @@ -572,7 +572,6 @@ static const struct of_device_id mpc52xx_lpbfifo_match[] = { · 571 unmodified lines | ||
| 572 | 572 | static struct platform_driver mpc52xx_lpbfifo_driver = { |
| 573 | 573 | .driver = { |
| 574 | 574 | .name = "mpc52xx-lpbfifo", |
| 575 | − .owner = THIS_MODULE, | |
| 576 | 575 | .of_match_table = mpc52xx_lpbfifo_match, |
| 577 | 576 | }, |
| 578 | 577 | .probe = mpc52xx_lpbfifo_probe, |
| @@ -169,7 +169,6 @@ static const struct of_device_id ep8248e_mdio_match[] = { · 168 unmodified lines | ||
| 169 | 169 | static struct platform_driver ep8248e_mdio_driver = { |
| 170 | 170 | .driver = { |
| 171 | 171 | .name = "ep8248e-mdio-bitbang", |
| 172 | − .owner = THIS_MODULE, | |
| 173 | 172 | .of_match_table = ep8248e_mdio_match, |
| 174 | 173 | }, |
| 175 | 174 | .probe = ep8248e_mdio_probe, |
| @@ -435,7 +435,6 @@ static const struct of_device_id pmc_match[] = { · 434 unmodified lines | ||
| 435 | 435 | static struct platform_driver pmc_driver = { |
| 436 | 436 | .driver = { |
| 437 | 437 | .name = "mpc83xx-pmc", |
| 438 | − .owner = THIS_MODULE, | |
| 439 | 438 | .of_match_table = pmc_match, |
| 440 | 439 | }, |
| 441 | 440 | .probe = pmc_probe, |
| @@ -161,7 +161,6 @@ MODULE_DEVICE_TABLE(of, gpio_halt_match); · 160 unmodified lines | ||
| 161 | 161 | static struct platform_driver gpio_halt_driver = { |
| 162 | 162 | .driver = { |
| 163 | 163 | .name = "gpio-halt", |
| 164 | − .owner = THIS_MODULE, | |
| 165 | 164 | .of_match_table = gpio_halt_match, |
| 166 | 165 | }, |
| 167 | 166 | .probe = gpio_halt_probe, |
| @@ -437,7 +437,6 @@ static struct platform_driver axon_msi_driver = { · 436 unmodified lines | ||
| 437 | 437 | .shutdown = axon_msi_shutdown, |
| 438 | 438 | .driver = { |
| 439 | 439 | .name = "axon-msi", |
| 440 | − .owner = THIS_MODULE, | |
| 441 | 440 | .of_match_table = axon_msi_device_id, |
| 442 | 441 | }, |
| 443 | 442 | }; |
| @@ -305,7 +305,6 @@ static struct platform_driver gpio_mdio_driver = · 304 unmodified lines | ||
| 305 | 305 | .remove = gpio_mdio_remove, |
| 306 | 306 | .driver = { |
| 307 | 307 | .name = "gpio-mdio-bitbang", |
| 308 | − .owner = THIS_MODULE, | |
| 309 | 308 | .of_match_table = gpio_mdio_match, |
| 310 | 309 | }, |
| 311 | 310 | }; |
| @@ -326,7 +326,6 @@ static struct platform_driver axon_ram_driver = { · 325 unmodified lines | ||
| 326 | 326 | .remove = axon_ram_remove, |
| 327 | 327 | .driver = { |
| 328 | 328 | .name = AXON_RAM_MODULE_NAME, |
| 329 | − .owner = THIS_MODULE, | |
| 330 | 329 | .of_match_table = axon_ram_device_id, |
| 331 | 330 | }, |
| 332 | 331 | }; |
| @@ -210,7 +210,6 @@ static const struct of_device_id mpc85xx_l2ctlr_of_match[] = { · 209 unmodified lines | ||
| 210 | 210 | static struct platform_driver mpc85xx_l2ctlr_of_platform_driver = { |
| 211 | 211 | .driver = { |
| 212 | 212 | .name = "fsl-l2ctlr", |
| 213 | − .owner = THIS_MODULE, | |
| 214 | 213 | .of_match_table = mpc85xx_l2ctlr_of_match, |
| 215 | 214 | }, |
| 216 | 215 | .probe = mpc85xx_l2ctlr_of_probe, |
| @@ -577,7 +577,6 @@ static const struct of_device_id fsl_of_msi_ids[] = { · 576 unmodified lines | ||
| 577 | 577 | static struct platform_driver fsl_of_msi_driver = { |
| 578 | 578 | .driver = { |
| 579 | 579 | .name = "fsl-msi", |
| 580 | − .owner = THIS_MODULE, | |
| 581 | 580 | .of_match_table = fsl_of_msi_ids, |
| 582 | 581 | }, |
| 583 | 582 | .probe = fsl_of_msi_probe, |
| @@ -80,7 +80,6 @@ static const struct of_device_id pmc_ids[] = { · 79 unmodified lines | ||
| 80 | 80 | static struct platform_driver pmc_driver = { |
| 81 | 81 | .driver = { |
| 82 | 82 | .name = "fsl-pmc", |
| 83 | − .owner = THIS_MODULE, | |
| 84 | 83 | .of_match_table = pmc_ids, |
| 85 | 84 | }, |
| 86 | 85 | .probe = pmc_probe, |
| @@ -777,7 +777,6 @@ static const struct of_device_id fsl_of_rio_rpn_ids[] = { · 776 unmodified lines | ||
| 777 | 777 | static struct platform_driver fsl_of_rio_rpn_driver = { |
| 778 | 778 | .driver = { |
| 779 | 779 | .name = "fsl-of-rio", |
| 780 | − .owner = THIS_MODULE, | |
| 781 | 780 | .of_match_table = fsl_of_rio_rpn_ids, |
| 782 | 781 | }, |
| 783 | 782 | .probe = fsl_of_rio_rpn_probe, |
| @@ -270,7 +270,6 @@ static const struct of_device_id mpic_msgr_ids[] = { · 269 unmodified lines | ||
| 270 | 270 | static struct platform_driver mpic_msgr_driver = { |
| 271 | 271 | .driver = { |
| 272 | 272 | .name = "mpic-msgr", |
| 273 | − .owner = THIS_MODULE, | |
| 274 | 273 | .of_match_table = mpic_msgr_ids, |
| 275 | 274 | }, |
| 276 | 275 | .probe = mpic_msgr_probe, |
| @@ -210,7 +210,6 @@ static struct platform_driver pmi_of_platform_driver = { · 209 unmodified lines | ||
| 210 | 210 | .remove = pmi_of_remove, |
| 211 | 211 | .driver = { |
| 212 | 212 | .name = "pmi", |
| 213 | − .owner = THIS_MODULE, | |
| 214 | 213 | .of_match_table = pmi_match, |
| 215 | 214 | }, |
| 216 | 215 | }; |
| @@ -197,7 +197,6 @@ static struct platform_driver hsta_msi_driver = { · 196 unmodified lines | ||
| 197 | 197 | .probe = hsta_msi_probe, |
| 198 | 198 | .driver = { |
| 199 | 199 | .name = "hsta-msi", |
| 200 | − .owner = THIS_MODULE, | |
| 201 | 200 | .of_match_table = hsta_msi_ids, |
| 202 | 201 | }, |
| 203 | 202 | }; |
| @@ -269,7 +269,6 @@ static struct platform_driver ppc4xx_msi_driver = { · 268 unmodified lines | ||
| 269 | 269 | .remove = ppc4xx_of_msi_remove, |
| 270 | 270 | .driver = { |
| 271 | 271 | .name = "ppc4xx-msi", |
| 272 | − .owner = THIS_MODULE, | |
| 273 | 272 | .of_match_table = ppc4xx_msi_ids, |
| 274 | 273 | }, |
| 275 | 274 | |
| @@ -692,7 +692,6 @@ static const struct of_device_id qe_ids[] = { · 691 unmodified lines | ||
| 692 | 692 | static struct platform_driver qe_driver = { |
| 693 | 693 | .driver = { |
| 694 | 694 | .name = "fsl-qe", |
| 695 | − .owner = THIS_MODULE, | |
| 696 | 695 | .of_match_table = qe_ids, |
| 697 | 696 | }, |
| 698 | 697 | .probe = qe_probe, |
| @@ -511,7 +511,6 @@ static const struct dev_pm_ops appldata_pm_ops = { · 510 unmodified lines | ||
| 511 | 511 | static struct platform_driver appldata_pdrv = { |
| 512 | 512 | .driver = { |
| 513 | 513 | .name = "appldata", |
| 514 | − .owner = THIS_MODULE, | |
| 515 | 514 | .pm = &appldata_pm_ops, |
| 516 | 515 | }, |
| 517 | 516 | }; |
| @@ -238,7 +238,6 @@ static const struct of_device_id ecpp_match[] = { · 237 unmodified lines | ||
| 238 | 238 | static struct platform_driver ecpp_driver = { |
| 239 | 239 | .driver = { |
| 240 | 240 | .name = "ecpp", |
| 241 | − .owner = THIS_MODULE, | |
| 242 | 241 | .of_match_table = ecpp_match, |
| 243 | 242 | }, |
| 244 | 243 | .probe = ecpp_probe, |
| @@ -178,7 +178,6 @@ MODULE_DEVICE_TABLE(of, apc_match); · 177 unmodified lines | ||
| 178 | 178 | static struct platform_driver apc_driver = { |
| 179 | 179 | .driver = { |
| 180 | 180 | .name = "apc", |
| 181 | − .owner = THIS_MODULE, | |
| 182 | 181 | .of_match_table = apc_match, |
| 183 | 182 | }, |
| 184 | 183 | .probe = apc_probe, |
| @@ -135,7 +135,6 @@ static struct platform_driver auxio_driver = { · 134 unmodified lines | ||
| 135 | 135 | .probe = auxio_probe, |
| 136 | 136 | .driver = { |
| 137 | 137 | .name = "auxio", |
| 138 | − .owner = THIS_MODULE, | |
| 139 | 138 | .of_match_table = auxio_match, |
| 140 | 139 | }, |
| 141 | 140 | }; |
| @@ -152,7 +152,6 @@ static struct platform_driver clock_board_driver = { · 151 unmodified lines | ||
| 152 | 152 | .probe = clock_board_probe, |
| 153 | 153 | .driver = { |
| 154 | 154 | .name = "clock_board", |
| 155 | − .owner = THIS_MODULE, | |
| 156 | 155 | .of_match_table = clock_board_match, |
| 157 | 156 | }, |
| 158 | 157 | }; |
| @@ -257,7 +256,6 @@ static struct platform_driver fhc_driver = { · 98 unmodified lines | ||
| 257 | 256 | .probe = fhc_probe, |
| 258 | 257 | .driver = { |
| 259 | 258 | .name = "fhc", |
| 260 | − .owner = THIS_MODULE, | |
| 261 | 259 | .of_match_table = fhc_match, |
| 262 | 260 | }, |
| 263 | 261 | }; |
| @@ -810,7 +810,6 @@ MODULE_DEVICE_TABLE(of, us3mc_match); · 809 unmodified lines | ||
| 810 | 810 | static struct platform_driver us3mc_driver = { |
| 811 | 811 | .driver = { |
| 812 | 812 | .name = "us3mc", |
| 813 | − .owner = THIS_MODULE, | |
| 814 | 813 | .of_match_table = us3mc_match, |
| 815 | 814 | }, |
| 816 | 815 | .probe = us3mc_probe, |
| @@ -708,7 +708,6 @@ static struct of_device_id grpci1_of_match[] = { · 707 unmodified lines | ||
| 708 | 708 | static struct platform_driver grpci1_of_driver = { |
| 709 | 709 | .driver = { |
| 710 | 710 | .name = "grpci1", |
| 711 | − .owner = THIS_MODULE, | |
| 712 | 711 | .of_match_table = grpci1_of_match, |
| 713 | 712 | }, |
| 714 | 713 | .probe = grpci1_of_probe, |
| @@ -900,7 +900,6 @@ static struct of_device_id grpci2_of_match[] = { · 899 unmodified lines | ||
| 900 | 900 | static struct platform_driver grpci2_of_driver = { |
| 901 | 901 | .driver = { |
| 902 | 902 | .name = "grpci2", |
| 903 | − .owner = THIS_MODULE, | |
| 904 | 903 | .of_match_table = grpci2_of_match, |
| 905 | 904 | }, |
| 906 | 905 | .probe = grpci2_of_probe, |
| @@ -508,7 +508,6 @@ static const struct of_device_id fire_match[] = { · 507 unmodified lines | ||
| 508 | 508 | static struct platform_driver fire_driver = { |
| 509 | 509 | .driver = { |
| 510 | 510 | .name = DRIVER_NAME, |
| 511 | − .owner = THIS_MODULE, | |
| 512 | 511 | .of_match_table = fire_match, |
| 513 | 512 | }, |
| 514 | 513 | .probe = fire_probe, |
| @@ -604,7 +604,6 @@ static const struct of_device_id psycho_match[] = { · 603 unmodified lines | ||
| 604 | 604 | static struct platform_driver psycho_driver = { |
| 605 | 605 | .driver = { |
| 606 | 606 | .name = DRIVER_NAME, |
| 607 | − .owner = THIS_MODULE, | |
| 608 | 607 | .of_match_table = psycho_match, |
| 609 | 608 | }, |
| 610 | 609 | .probe = psycho_probe, |
| @@ -600,7 +600,6 @@ static const struct of_device_id sabre_match[] = { · 599 unmodified lines | ||
| 600 | 600 | static struct platform_driver sabre_driver = { |
| 601 | 601 | .driver = { |
| 602 | 602 | .name = DRIVER_NAME, |
| 603 | − .owner = THIS_MODULE, | |
| 604 | 603 | .of_match_table = sabre_match, |
| 605 | 604 | }, |
| 606 | 605 | .probe = sabre_probe, |
| @@ -1495,7 +1495,6 @@ static const struct of_device_id schizo_match[] = { · 1494 unmodified lines | ||
| 1495 | 1495 | static struct platform_driver schizo_driver = { |
| 1496 | 1496 | .driver = { |
| 1497 | 1497 | .name = DRIVER_NAME, |
| 1498 | − .owner = THIS_MODULE, | |
| 1499 | 1498 | .of_match_table = schizo_match, |
| 1500 | 1499 | }, |
| 1501 | 1500 | .probe = schizo_probe, |
| @@ -1010,7 +1010,6 @@ static const struct of_device_id pci_sun4v_match[] = { · 1009 unmodified lines | ||
| 1010 | 1010 | static struct platform_driver pci_sun4v_driver = { |
| 1011 | 1011 | .driver = { |
| 1012 | 1012 | .name = DRIVER_NAME, |
| 1013 | − .owner = THIS_MODULE, | |
| 1014 | 1013 | .of_match_table = pci_sun4v_match, |
| 1015 | 1014 | }, |
| 1016 | 1015 | .probe = pci_sun4v_probe, |
| @@ -82,7 +82,6 @@ MODULE_DEVICE_TABLE(of, pmc_match); · 81 unmodified lines | ||
| 82 | 82 | static struct platform_driver pmc_driver = { |
| 83 | 83 | .driver = { |
| 84 | 84 | .name = "pmc", |
| 85 | − .owner = THIS_MODULE, | |
| 86 | 85 | .of_match_table = pmc_match, |
| 87 | 86 | }, |
| 88 | 87 | .probe = pmc_probe, |
| @@ -63,7 +63,6 @@ static struct platform_driver power_driver = { · 62 unmodified lines | ||
| 63 | 63 | .probe = power_probe, |
| 64 | 64 | .driver = { |
| 65 | 65 | .name = "power", |
| 66 | − .owner = THIS_MODULE, | |
| 67 | 66 | .of_match_table = power_match, |
| 68 | 67 | }, |
| 69 | 68 | }; |
| @@ -322,7 +322,6 @@ static struct platform_driver clock_driver = { · 321 unmodified lines | ||
| 322 | 322 | .probe = clock_probe, |
| 323 | 323 | .driver = { |
| 324 | 324 | .name = "rtc", |
| 325 | − .owner = THIS_MODULE, | |
| 326 | 325 | .of_match_table = clock_match, |
| 327 | 326 | }, |
| 328 | 327 | }; |
| @@ -466,7 +466,6 @@ static struct platform_driver rtc_driver = { · 465 unmodified lines | ||
| 466 | 466 | .probe = rtc_probe, |
| 467 | 467 | .driver = { |
| 468 | 468 | .name = "rtc", |
| 469 | − .owner = THIS_MODULE, | |
| 470 | 469 | .of_match_table = rtc_match, |
| 471 | 470 | }, |
| 472 | 471 | }; |
| @@ -499,7 +498,6 @@ static struct platform_driver bq4802_driver = { · 26 unmodified lines | ||
| 499 | 498 | .probe = bq4802_probe, |
| 500 | 499 | .driver = { |
| 501 | 500 | .name = "bq4802", |
| 502 | − .owner = THIS_MODULE, | |
| 503 | 501 | .of_match_table = bq4802_match, |
| 504 | 502 | }, |
| 505 | 503 | }; |
| @@ -563,7 +561,6 @@ static struct platform_driver mostek_driver = { · 57 unmodified lines | ||
| 563 | 561 | .probe = mostek_probe, |
| 564 | 562 | .driver = { |
| 565 | 563 | .name = "mostek", |
| 566 | − .owner = THIS_MODULE, | |
| 567 | 564 | .of_match_table = mostek_match, |
| 568 | 565 | }, |
| 569 | 566 | }; |
| @@ -130,10 +130,7 @@ static ssize_t _iommu_cpumask_show(struct device *dev, · 129 unmodified lines | ||
| 130 | 130 | struct device_attribute *attr, |
| 131 | 131 | char *buf) |
| 132 | 132 | { |
| 133 | − int n = cpulist_scnprintf(buf, PAGE_SIZE - 2, &iommu_cpumask); | |
| 134 | − buf[n++] = '\n'; | |
| 135 | − buf[n] = '\0'; | |
| 136 | − return n; | |
| 133 | + return cpumap_print_to_pagebuf(true, buf, &iommu_cpumask); | |
| 137 | 134 | } |
| 138 | 135 | static DEVICE_ATTR(cpumask, S_IRUGO, _iommu_cpumask_show, NULL); |
| 139 | 136 | |
| @@ -219,7 +219,6 @@ static ssize_t amd_uncore_attr_show_cpumask(struct device *dev, · 218 unmodified lines | ||
| 219 | 219 | struct device_attribute *attr, |
| 220 | 220 | char *buf) |
| 221 | 221 | { |
| 222 | − int n; | |
| 223 | 222 | cpumask_t *active_mask; |
| 224 | 223 | struct pmu *pmu = dev_get_drvdata(dev); |
| 225 | 224 | |
| @@ -230,10 +229,7 @@ static ssize_t amd_uncore_attr_show_cpumask(struct device *dev, · 4 unmodified lines | ||
| 230 | 229 | else |
| 231 | 230 | return 0; |
| 232 | 231 | |
| 233 | − n = cpulist_scnprintf(buf, PAGE_SIZE - 2, active_mask); | |
| 234 | − buf[n++] = '\n'; | |
| 235 | − buf[n] = '\0'; | |
| 236 | − return n; | |
| 232 | + return cpumap_print_to_pagebuf(true, buf, active_mask); | |
| 237 | 233 | } |
| 238 | 234 | static DEVICE_ATTR(cpumask, S_IRUGO, amd_uncore_attr_show_cpumask, NULL); |
| 239 | 235 | |
| @@ -365,11 +365,7 @@ static void rapl_pmu_event_read(struct perf_event *event) · 364 unmodified lines | ||
| 365 | 365 | static ssize_t rapl_get_attr_cpumask(struct device *dev, |
| 366 | 366 | struct device_attribute *attr, char *buf) |
| 367 | 367 | { |
| 368 | − int n = cpulist_scnprintf(buf, PAGE_SIZE - 2, &rapl_cpu_mask); | |
| 369 | − | |
| 370 | − buf[n++] = '\n'; | |
| 371 | − buf[n] = '\0'; | |
| 372 | − return n; | |
| 368 | + return cpumap_print_to_pagebuf(true, buf, &rapl_cpu_mask); | |
| 373 | 369 | } |
| 374 | 370 | |
| 375 | 371 | static DEVICE_ATTR(cpumask, S_IRUGO, rapl_get_attr_cpumask, NULL); |
| @@ -647,11 +647,7 @@ static int uncore_pmu_event_init(struct perf_event *event) · 646 unmodified lines | ||
| 647 | 647 | static ssize_t uncore_get_attr_cpumask(struct device *dev, |
| 648 | 648 | struct device_attribute *attr, char *buf) |
| 649 | 649 | { |
| 650 | − int n = cpulist_scnprintf(buf, PAGE_SIZE - 2, &uncore_cpu_mask); | |
| 651 | − | |
| 652 | − buf[n++] = '\n'; | |
| 653 | − buf[n] = '\0'; | |
| 654 | − return n; | |
| 650 | + return cpumap_print_to_pagebuf(true, buf, &uncore_cpu_mask); | |
| 655 | 651 | } |
| 656 | 652 | |
| 657 | 653 | static DEVICE_ATTR(cpumask, S_IRUGO, uncore_get_attr_cpumask, NULL); |
| @@ -86,7 +86,6 @@ static int iris_remove(struct platform_device *pdev) · 85 unmodified lines | ||
| 86 | 86 | static struct platform_driver iris_driver = { |
| 87 | 87 | .driver = { |
| 88 | 88 | .name = "iris", |
| 89 | − .owner = THIS_MODULE, | |
| 90 | 89 | }, |
| 91 | 90 | .probe = iris_probe, |
| 92 | 91 | .remove = iris_remove, |
| @@ -170,7 +170,6 @@ static int xo1_pm_remove(struct platform_device *pdev) · 169 unmodified lines | ||
| 170 | 170 | static struct platform_driver cs5535_pms_driver = { |
| 171 | 171 | .driver = { |
| 172 | 172 | .name = "cs5535-pms", |
| 173 | − .owner = THIS_MODULE, | |
| 174 | 173 | }, |
| 175 | 174 | .probe = xo1_pm_probe, |
| 176 | 175 | .remove = xo1_pm_remove, |
| @@ -179,7 +178,6 @@ static struct platform_driver cs5535_pms_driver = { · 2 unmodified lines | ||
| 179 | 178 | static struct platform_driver cs5535_acpi_driver = { |
| 180 | 179 | .driver = { |
| 181 | 180 | .name = "olpc-xo1-pm-acpi", |
| 182 | − .owner = THIS_MODULE, | |
| 183 | 181 | }, |
| 184 | 182 | .probe = xo1_pm_probe, |
| 185 | 183 | .remove = xo1_pm_remove, |
| @@ -350,12 +350,10 @@ static ssize_t acpi_pad_idlecpus_store(struct device *dev, · 349 unmodified lines | ||
| 350 | 350 | static ssize_t acpi_pad_idlecpus_show(struct device *dev, |
| 351 | 351 | struct device_attribute *attr, char *buf) |
| 352 | 352 | { |
| 353 | − int n = 0; | |
| 354 | − n = cpumask_scnprintf(buf, PAGE_SIZE-2, to_cpumask(pad_busy_cpus_bits)); | |
| 355 | − buf[n++] = '\n'; | |
| 356 | − buf[n] = '\0'; | |
| 357 | − return n; | |
| 353 | + return cpumap_print_to_pagebuf(false, buf, | |
| 354 | + to_cpumask(pad_busy_cpus_bits)); | |
| 358 | 355 | } |
| 356 | + | |
| 359 | 357 | static DEVICE_ATTR(idlecpus, S_IRUGO|S_IWUSR, |
| 360 | 358 | acpi_pad_idlecpus_show, |
| 361 | 359 | acpi_pad_idlecpus_store); |
| @@ -1087,7 +1087,6 @@ static int ghes_remove(struct platform_device *ghes_dev) · 1086 unmodified lines | ||
| 1087 | 1087 | static struct platform_driver ghes_platform_driver = { |
| 1088 | 1088 | .driver = { |
| 1089 | 1089 | .name = "GHES", |
| 1090 | − .owner = THIS_MODULE, | |
| 1091 | 1090 | }, |
| 1092 | 1091 | .probe = ghes_probe, |
| 1093 | 1092 | .remove = ghes_remove, |
| @@ -277,7 +277,6 @@ static struct platform_driver tegra_ahb_driver = { · 276 unmodified lines | ||
| 277 | 277 | .probe = tegra_ahb_probe, |
| 278 | 278 | .driver = { |
| 279 | 279 | .name = DRV_NAME, |
| 280 | − .owner = THIS_MODULE, | |
| 281 | 280 | .of_match_table = tegra_ahb_of_match, |
| 282 | 281 | .pm = &tegra_ahb_pm, |
| 283 | 282 | }, |
| @@ -103,7 +103,6 @@ static struct platform_driver ahci_da850_driver = { · 102 unmodified lines | ||
| 103 | 103 | .remove = ata_platform_remove_one, |
| 104 | 104 | .driver = { |
| 105 | 105 | .name = "ahci_da850", |
| 106 | − .owner = THIS_MODULE, | |
| 107 | 106 | .pm = &ahci_da850_pm_ops, |
| 108 | 107 | }, |
| 109 | 108 | }; |
| @@ -679,7 +679,6 @@ static struct platform_driver imx_ahci_driver = { · 678 unmodified lines | ||
| 679 | 679 | .remove = ata_platform_remove_one, |
| 680 | 680 | .driver = { |
| 681 | 681 | .name = "ahci-imx", |
| 682 | − .owner = THIS_MODULE, | |
| 683 | 682 | .of_match_table = imx_ahci_of_match, |
| 684 | 683 | .pm = &ahci_imx_pm_ops, |
| 685 | 684 | }, |
| @@ -115,7 +115,6 @@ static struct platform_driver ahci_mvebu_driver = { · 114 unmodified lines | ||
| 115 | 115 | .remove = ata_platform_remove_one, |
| 116 | 116 | .driver = { |
| 117 | 117 | .name = "ahci-mvebu", |
| 118 | − .owner = THIS_MODULE, | |
| 119 | 118 | .of_match_table = ahci_mvebu_of_match, |
| 120 | 119 | }, |
| 121 | 120 | }; |
| @@ -76,7 +76,6 @@ static struct platform_driver ahci_driver = { · 75 unmodified lines | ||
| 76 | 76 | .remove = ata_platform_remove_one, |
| 77 | 77 | .driver = { |
| 78 | 78 | .name = "ahci", |
| 79 | − .owner = THIS_MODULE, | |
| 80 | 79 | .of_match_table = ahci_of_match, |
| 81 | 80 | .pm = &ahci_pm_ops, |
| 82 | 81 | }, |
| @@ -230,7 +230,6 @@ MODULE_DEVICE_TABLE(of, st_ahci_match); · 229 unmodified lines | ||
| 230 | 230 | static struct platform_driver st_ahci_driver = { |
| 231 | 231 | .driver = { |
| 232 | 232 | .name = "st_ahci", |
| 233 | − .owner = THIS_MODULE, | |
| 234 | 233 | .pm = &st_ahci_pm_ops, |
| 235 | 234 | .of_match_table = of_match_ptr(st_ahci_match), |
| 236 | 235 | }, |
| @@ -252,7 +252,6 @@ static struct platform_driver ahci_sunxi_driver = { · 251 unmodified lines | ||
| 252 | 252 | .remove = ata_platform_remove_one, |
| 253 | 253 | .driver = { |
| 254 | 254 | .name = "ahci-sunxi", |
| 255 | − .owner = THIS_MODULE, | |
| 256 | 255 | .of_match_table = ahci_sunxi_of_match, |
| 257 | 256 | .pm = &ahci_sunxi_pm_ops, |
| 258 | 257 | }, |
| @@ -544,7 +544,6 @@ static struct platform_driver xgene_ahci_driver = { · 543 unmodified lines | ||
| 544 | 544 | .remove = ata_platform_remove_one, |
| 545 | 545 | .driver = { |
| 546 | 546 | .name = "xgene-ahci", |
| 547 | − .owner = THIS_MODULE, | |
| 548 | 547 | .of_match_table = xgene_ahci_of_match, |
| 549 | 548 | }, |
| 550 | 549 | }; |
| @@ -961,7 +961,6 @@ static struct platform_driver arasan_cf_driver = { · 960 unmodified lines | ||
| 961 | 961 | .remove = arasan_cf_remove, |
| 962 | 962 | .driver = { |
| 963 | 963 | .name = DRIVER_NAME, |
| 964 | − .owner = THIS_MODULE, | |
| 965 | 964 | .pm = &arasan_cf_pm_ops, |
| 966 | 965 | .of_match_table = of_match_ptr(arasan_cf_id_table), |
| 967 | 966 | }, |
| @@ -389,7 +389,6 @@ static struct platform_driver pata_at32_driver = { · 388 unmodified lines | ||
| 389 | 389 | .remove = __exit_p(pata_at32_remove), |
| 390 | 390 | .driver = { |
| 391 | 391 | .name = "at32_ide", |
| 392 | − .owner = THIS_MODULE, | |
| 393 | 392 | }, |
| 394 | 393 | }; |
| 395 | 394 | |
| @@ -444,7 +444,6 @@ static struct platform_driver pata_at91_driver = { · 443 unmodified lines | ||
| 444 | 444 | .remove = pata_at91_remove, |
| 445 | 445 | .driver = { |
| 446 | 446 | .name = DRV_NAME, |
| 447 | − .owner = THIS_MODULE, | |
| 448 | 447 | }, |
| 449 | 448 | }; |
| 450 | 449 | |
| @@ -1657,7 +1657,6 @@ static struct platform_driver bfin_atapi_driver = { · 1656 unmodified lines | ||
| 1657 | 1657 | .resume = bfin_atapi_resume, |
| 1658 | 1658 | .driver = { |
| 1659 | 1659 | .name = DRV_NAME, |
| 1660 | − .owner = THIS_MODULE, | |
| 1661 | 1660 | }, |
| 1662 | 1661 | }; |
| 1663 | 1662 | |
| @@ -1021,7 +1021,6 @@ static int ep93xx_pata_remove(struct platform_device *pdev) · 1020 unmodified lines | ||
| 1021 | 1021 | static struct platform_driver ep93xx_pata_platform_driver = { |
| 1022 | 1022 | .driver = { |
| 1023 | 1023 | .name = DRV_NAME, |
| 1024 | − .owner = THIS_MODULE, | |
| 1025 | 1024 | }, |
| 1026 | 1025 | .probe = ep93xx_pata_probe, |
| 1027 | 1026 | .remove = ep93xx_pata_remove, |
| @@ -240,7 +240,6 @@ static struct platform_driver pata_imx_driver = { · 239 unmodified lines | ||
| 240 | 240 | .driver = { |
| 241 | 241 | .name = DRV_NAME, |
| 242 | 242 | .of_match_table = imx_pata_dt_ids, |
| 243 | − .owner = THIS_MODULE, | |
| 244 | 243 | .pm = &pata_imx_pm_ops, |
| 245 | 244 | }, |
| 246 | 245 | }; |
| @@ -193,7 +193,6 @@ static int ixp4xx_pata_probe(struct platform_device *pdev) · 192 unmodified lines | ||
| 193 | 193 | static struct platform_driver ixp4xx_pata_platform_driver = { |
| 194 | 194 | .driver = { |
| 195 | 195 | .name = DRV_NAME, |
| 196 | − .owner = THIS_MODULE, | |
| 197 | 196 | }, |
| 198 | 197 | .probe = ixp4xx_pata_probe, |
| 199 | 198 | .remove = ata_platform_remove_one, |
| @@ -863,7 +863,6 @@ static struct platform_driver mpc52xx_ata_of_platform_driver = { · 862 unmodified lines | ||
| 863 | 863 | #endif |
| 864 | 864 | .driver = { |
| 865 | 865 | .name = DRV_NAME, |
| 866 | − .owner = THIS_MODULE, | |
| 867 | 866 | .of_match_table = mpc52xx_ata_of_match, |
| 868 | 867 | }, |
| 869 | 868 | }; |
| @@ -1059,7 +1059,6 @@ static struct platform_driver octeon_cf_driver = { · 1058 unmodified lines | ||
| 1059 | 1059 | .probe = octeon_cf_probe, |
| 1060 | 1060 | .driver = { |
| 1061 | 1061 | .name = DRV_NAME, |
| 1062 | − .owner = THIS_MODULE, | |
| 1063 | 1062 | .of_match_table = octeon_cf_match, |
| 1064 | 1063 | .shutdown = octeon_cf_shutdown |
| 1065 | 1064 | }, |
| @@ -75,7 +75,6 @@ MODULE_DEVICE_TABLE(of, pata_of_platform_match); · 74 unmodified lines | ||
| 75 | 75 | static struct platform_driver pata_of_platform_driver = { |
| 76 | 76 | .driver = { |
| 77 | 77 | .name = "pata_of_platform", |
| 78 | − .owner = THIS_MODULE, | |
| 79 | 78 | .of_match_table = pata_of_platform_match, |
| 80 | 79 | }, |
| 81 | 80 | .probe = pata_of_platform_probe, |
| @@ -124,7 +124,6 @@ static int palmld_pata_remove(struct platform_device *dev) · 123 unmodified lines | ||
| 124 | 124 | static struct platform_driver palmld_pata_platform_driver = { |
| 125 | 125 | .driver = { |
| 126 | 126 | .name = DRV_NAME, |
| 127 | − .owner = THIS_MODULE, | |
| 128 | 127 | }, |
| 129 | 128 | .probe = palmld_pata_probe, |
| 130 | 129 | .remove = palmld_pata_remove, |
| @@ -224,7 +224,6 @@ static struct platform_driver pata_platform_driver = { · 223 unmodified lines | ||
| 224 | 224 | .remove = ata_platform_remove_one, |
| 225 | 225 | .driver = { |
| 226 | 226 | .name = DRV_NAME, |
| 227 | − .owner = THIS_MODULE, | |
| 228 | 227 | }, |
| 229 | 228 | }; |
| 230 | 229 | |
| @@ -385,7 +385,6 @@ static struct platform_driver pxa_ata_driver = { · 384 unmodified lines | ||
| 385 | 385 | .remove = pxa_ata_remove, |
| 386 | 386 | .driver = { |
| 387 | 387 | .name = DRV_NAME, |
| 388 | − .owner = THIS_MODULE, | |
| 389 | 388 | }, |
| 390 | 389 | }; |
| 391 | 390 | |
| @@ -193,7 +193,6 @@ static struct platform_driver rb532_pata_platform_driver = { · 192 unmodified lines | ||
| 193 | 193 | .remove = rb532_pata_driver_remove, |
| 194 | 194 | .driver = { |
| 195 | 195 | .name = DRV_NAME, |
| 196 | − .owner = THIS_MODULE, | |
| 197 | 196 | }, |
| 198 | 197 | }; |
| 199 | 198 | |
| @@ -656,7 +656,6 @@ static struct platform_driver pata_s3c_driver = { · 655 unmodified lines | ||
| 656 | 656 | .id_table = pata_s3c_driver_ids, |
| 657 | 657 | .driver = { |
| 658 | 658 | .name = DRV_NAME, |
| 659 | − .owner = THIS_MODULE, | |
| 660 | 659 | #ifdef CONFIG_PM_SLEEP |
| 661 | 660 | .pm = &pata_s3c_pm_ops, |
| 662 | 661 | #endif |
| @@ -1807,7 +1807,6 @@ MODULE_DEVICE_TABLE(of, sata_dwc_match); · 1806 unmodified lines | ||
| 1807 | 1807 | static struct platform_driver sata_dwc_driver = { |
| 1808 | 1808 | .driver = { |
| 1809 | 1809 | .name = DRV_NAME, |
| 1810 | − .owner = THIS_MODULE, | |
| 1811 | 1810 | .of_match_table = sata_dwc_match, |
| 1812 | 1811 | }, |
| 1813 | 1812 | .probe = sata_dwc_probe, |
| @@ -1624,7 +1624,6 @@ MODULE_DEVICE_TABLE(of, fsl_sata_match); · 1623 unmodified lines | ||
| 1624 | 1624 | static struct platform_driver fsl_sata_driver = { |
| 1625 | 1625 | .driver = { |
| 1626 | 1626 | .name = "fsl-sata", |
| 1627 | − .owner = THIS_MODULE, | |
| 1628 | 1627 | .of_match_table = fsl_sata_match, |
| 1629 | 1628 | }, |
| 1630 | 1629 | .probe = sata_fsl_probe, |
| @@ -634,7 +634,6 @@ static struct platform_driver ahci_highbank_driver = { · 633 unmodified lines | ||
| 634 | 634 | .remove = ata_platform_remove_one, |
| 635 | 635 | .driver = { |
| 636 | 636 | .name = "highbank-ahci", |
| 637 | − .owner = THIS_MODULE, | |
| 638 | 637 | .of_match_table = ahci_of_match, |
| 639 | 638 | .pm = &ahci_highbank_pm_ops, |
| 640 | 639 | }, |
| @@ -4280,7 +4280,6 @@ static struct platform_driver mv_platform_driver = { · 4279 unmodified lines | ||
| 4280 | 4280 | .resume = mv_platform_resume, |
| 4281 | 4281 | .driver = { |
| 4282 | 4282 | .name = DRV_NAME, |
| 4283 | − .owner = THIS_MODULE, | |
| 4284 | 4283 | .of_match_table = of_match_ptr(mv_sata_dt_ids), |
| 4285 | 4284 | }, |
| 4286 | 4285 | }; |
| @@ -1004,7 +1004,6 @@ static struct platform_driver sata_rcar_driver = { · 1003 unmodified lines | ||
| 1004 | 1004 | .id_table = sata_rcar_id_table, |
| 1005 | 1005 | .driver = { |
| 1006 | 1006 | .name = DRV_NAME, |
| 1007 | − .owner = THIS_MODULE, | |
| 1008 | 1007 | .of_match_table = sata_rcar_match, |
| 1009 | 1008 | #ifdef CONFIG_PM_SLEEP |
| 1010 | 1009 | .pm = &sata_rcar_pm_ops, |
| @@ -2687,7 +2687,6 @@ MODULE_DEVICE_TABLE(of, fore200e_sba_match); · 2686 unmodified lines | ||
| 2687 | 2687 | static struct platform_driver fore200e_sba_driver = { |
| 2688 | 2688 | .driver = { |
| 2689 | 2689 | .name = "fore_200e", |
| 2690 | − .owner = THIS_MODULE, | |
| 2691 | 2690 | .of_match_table = fore200e_sba_match, |
| 2692 | 2691 | }, |
| 2693 | 2692 | .probe = fore200e_sba_probe, |
| @@ -4,7 +4,7 @@ obj-y := component.o core.o bus.o dd.o syscore.o \ · 3 unmodified lines | ||
| 4 | 4 | driver.o class.o platform.o \ |
| 5 | 5 | cpu.o firmware.o init.o map.o devres.o \ |
| 6 | 6 | attribute_container.o transport_class.o \ |
| 7 | − topology.o container.o property.o | |
| 7 | + topology.o container.o property.o cacheinfo.o | |
| 8 | 8 | obj-$(CONFIG_DEVTMPFS) += devtmpfs.o |
| 9 | 9 | obj-$(CONFIG_DMA_CMA) += dma-contiguous.o |
| 10 | 10 | obj-y += power/ |
| @@ -254,13 +254,15 @@ static ssize_t store_drivers_probe(struct bus_type *bus, · 253 unmodified lines | ||
| 254 | 254 | const char *buf, size_t count) |
| 255 | 255 | { |
| 256 | 256 | struct device *dev; |
| 257 | + int err = -EINVAL; | |
| 257 | 258 | |
| 258 | 259 | dev = bus_find_device_by_name(bus, NULL, buf); |
| 259 | 260 | if (!dev) |
| 260 | 261 | return -ENODEV; |
| 261 | − if (bus_rescan_devices_helper(dev, NULL) != 0) | |
| 262 | − return -EINVAL; | |
| 263 | − return count; | |
| 262 | + if (bus_rescan_devices_helper(dev, NULL) == 0) | |
| 263 | + err = count; | |
| 264 | + put_device(dev); | |
| 265 | + return err; | |
| 264 | 266 | } |
| 265 | 267 | |
| 266 | 268 | static struct device *next_device(struct klist_iter *i) |
| @@ -0,0 +1,539 @@ | ||
| 1 | +/* | |
| 2 | + * cacheinfo support - processor cache information via sysfs | |
| 3 | + * | |
| 4 | + * Based on arch/x86/kernel/cpu/intel_cacheinfo.c | |
| 5 | + * Author: Sudeep Holla <sudeep.holla@arm.com> | |
| 6 | + * | |
| 7 | + * This program is free software; you can redistribute it and/or modify | |
| 8 | + * it under the terms of the GNU General Public License version 2 as | |
| 9 | + * published by the Free Software Foundation. | |
| 10 | + * | |
| 11 | + * This program is distributed "as is" WITHOUT ANY WARRANTY of any | |
| 12 | + * kind, whether express or implied; without even the implied warranty | |
| 13 | + * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 14 | + * GNU General Public License for more details. | |
| 15 | + * | |
| 16 | + * You should have received a copy of the GNU General Public License | |
| 17 | + * along with this program. If not, see <http://www.gnu.org/licenses/>. | |
| 18 | + */ | |
| 19 | +#include <linux/bitops.h> | |
| 20 | +#include <linux/cacheinfo.h> | |
| 21 | +#include <linux/compiler.h> | |
| 22 | +#include <linux/cpu.h> | |
| 23 | +#include <linux/device.h> | |
| 24 | +#include <linux/init.h> | |
| 25 | +#include <linux/of.h> | |
| 26 | +#include <linux/sched.h> | |
| 27 | +#include <linux/slab.h> | |
| 28 | +#include <linux/smp.h> | |
| 29 | +#include <linux/sysfs.h> | |
| 30 | + | |
| 31 | +/* pointer to per cpu cacheinfo */ | |
| 32 | +static DEFINE_PER_CPU(struct cpu_cacheinfo, ci_cpu_cacheinfo); | |
| 33 | +#define ci_cacheinfo(cpu) (&per_cpu(ci_cpu_cacheinfo, cpu)) | |
| 34 | +#define cache_leaves(cpu) (ci_cacheinfo(cpu)->num_leaves) | |
| 35 | +#define per_cpu_cacheinfo(cpu) (ci_cacheinfo(cpu)->info_list) | |
| 36 | + | |
| 37 | +struct cpu_cacheinfo *get_cpu_cacheinfo(unsigned int cpu) | |
| 38 | +{ | |
| 39 | + return ci_cacheinfo(cpu); | |
| 40 | +} | |
| 41 | + | |
| 42 | +#ifdef CONFIG_OF | |
| 43 | +static int cache_setup_of_node(unsigned int cpu) | |
| 44 | +{ | |
| 45 | + struct device_node *np; | |
| 46 | + struct cacheinfo *this_leaf; | |
| 47 | + struct device *cpu_dev = get_cpu_device(cpu); | |
| 48 | + struct cpu_cacheinfo *this_cpu_ci = get_cpu_cacheinfo(cpu); | |
| 49 | + unsigned int index = 0; | |
| 50 | + | |
| 51 | + /* skip if of_node is already populated */ | |
| 52 | + if (this_cpu_ci->info_list->of_node) | |
| 53 | + return 0; | |
| 54 | + | |
| 55 | + if (!cpu_dev) { | |
| 56 | + pr_err("No cpu device for CPU %d\n", cpu); | |
| 57 | + return -ENODEV; | |
| 58 | + } | |
| 59 | + np = cpu_dev->of_node; | |
| 60 | + if (!np) { | |
| 61 | + pr_err("Failed to find cpu%d device node\n", cpu); | |
| 62 | + return -ENOENT; | |
| 63 | + } | |
| 64 | + | |
| 65 | + while (np && index < cache_leaves(cpu)) { | |
| 66 | + this_leaf = this_cpu_ci->info_list + index; | |
| 67 | + if (this_leaf->level != 1) | |
| 68 | + np = of_find_next_cache_node(np); | |
| 69 | + else | |
| 70 | + np = of_node_get(np);/* cpu node itself */ | |
| 71 | + this_leaf->of_node = np; | |
| 72 | + index++; | |
| 73 | + } | |
| 74 | + return 0; | |
| 75 | +} | |
| 76 | + | |
| 77 | +static inline bool cache_leaves_are_shared(struct cacheinfo *this_leaf, | |
| 78 | + struct cacheinfo *sib_leaf) | |
| 79 | +{ | |
| 80 | + return sib_leaf->of_node == this_leaf->of_node; | |
| 81 | +} | |
| 82 | +#else | |
| 83 | +static inline int cache_setup_of_node(unsigned int cpu) { return 0; } | |
| 84 | +static inline bool cache_leaves_are_shared(struct cacheinfo *this_leaf, | |
| 85 | + struct cacheinfo *sib_leaf) | |
| 86 | +{ | |
| 87 | + /* | |
| 88 | + * For non-DT systems, assume unique level 1 cache, system-wide | |
| 89 | + * shared caches for all other levels. This will be used only if | |
| 90 | + * arch specific code has not populated shared_cpu_map | |
| 91 | + */ | |
| 92 | + return !(this_leaf->level == 1); | |
| 93 | +} | |
| 94 | +#endif | |
| 95 | + | |
| 96 | +static int cache_shared_cpu_map_setup(unsigned int cpu) | |
| 97 | +{ | |
| 98 | + struct cpu_cacheinfo *this_cpu_ci = get_cpu_cacheinfo(cpu); | |
| 99 | + struct cacheinfo *this_leaf, *sib_leaf; | |
| 100 | + unsigned int index; | |
| 101 | + int ret; | |
| 102 | + | |
| 103 | + ret = cache_setup_of_node(cpu); | |
| 104 | + if (ret) | |
| 105 | + return ret; | |
| 106 | + | |
| 107 | + for (index = 0; index < cache_leaves(cpu); index++) { | |
| 108 | + unsigned int i; | |
| 109 | + | |
| 110 | + this_leaf = this_cpu_ci->info_list + index; | |
| 111 | + /* skip if shared_cpu_map is already populated */ | |
| 112 | + if (!cpumask_empty(&this_leaf->shared_cpu_map)) | |
| 113 | + continue; | |
| 114 | + | |
| 115 | + cpumask_set_cpu(cpu, &this_leaf->shared_cpu_map); | |
| 116 | + for_each_online_cpu(i) { | |
| 117 | + struct cpu_cacheinfo *sib_cpu_ci = get_cpu_cacheinfo(i); | |
| 118 | + | |
| 119 | + if (i == cpu || !sib_cpu_ci->info_list) | |
| 120 | + continue;/* skip if itself or no cacheinfo */ | |
| 121 | + sib_leaf = sib_cpu_ci->info_list + index; | |
| 122 | + if (cache_leaves_are_shared(this_leaf, sib_leaf)) { | |
| 123 | + cpumask_set_cpu(cpu, &sib_leaf->shared_cpu_map); | |
| 124 | + cpumask_set_cpu(i, &this_leaf->shared_cpu_map); | |
| 125 | + } | |
| 126 | + } | |
| 127 | + } | |
| 128 | + | |
| 129 | + return 0; | |
| 130 | +} | |
| 131 | + | |
| 132 | +static void cache_shared_cpu_map_remove(unsigned int cpu) | |
| 133 | +{ | |
| 134 | + struct cpu_cacheinfo *this_cpu_ci = get_cpu_cacheinfo(cpu); | |
| 135 | + struct cacheinfo *this_leaf, *sib_leaf; | |
| 136 | + unsigned int sibling, index; | |
| 137 | + | |
| 138 | + for (index = 0; index < cache_leaves(cpu); index++) { | |
| 139 | + this_leaf = this_cpu_ci->info_list + index; | |
| 140 | + for_each_cpu(sibling, &this_leaf->shared_cpu_map) { | |
| 141 | + struct cpu_cacheinfo *sib_cpu_ci; | |
| 142 | + | |
| 143 | + if (sibling == cpu) /* skip itself */ | |
| 144 | + continue; | |
| 145 | + sib_cpu_ci = get_cpu_cacheinfo(sibling); | |
| 146 | + sib_leaf = sib_cpu_ci->info_list + index; | |
| 147 | + cpumask_clear_cpu(cpu, &sib_leaf->shared_cpu_map); | |
| 148 | + cpumask_clear_cpu(sibling, &this_leaf->shared_cpu_map); | |
| 149 | + } | |
| 150 | + of_node_put(this_leaf->of_node); | |
| 151 | + } | |
| 152 | +} | |
| 153 | + | |
| 154 | +static void free_cache_attributes(unsigned int cpu) | |
| 155 | +{ | |
| 156 | + cache_shared_cpu_map_remove(cpu); | |
| 157 | + | |
| 158 | + kfree(per_cpu_cacheinfo(cpu)); | |
| 159 | + per_cpu_cacheinfo(cpu) = NULL; | |
| 160 | +} | |
| 161 | + | |
| 162 | +int __weak init_cache_level(unsigned int cpu) | |
| 163 | +{ | |
| 164 | + return -ENOENT; | |
| 165 | +} | |
| 166 | + | |
| 167 | +int __weak populate_cache_leaves(unsigned int cpu) | |
| 168 | +{ | |
| 169 | + return -ENOENT; | |
| 170 | +} | |
| 171 | + | |
| 172 | +static int detect_cache_attributes(unsigned int cpu) | |
| 173 | +{ | |
| 174 | + int ret; | |
| 175 | + | |
| 176 | + if (init_cache_level(cpu)) | |
| 177 | + return -ENOENT; | |
| 178 | + | |
| 179 | + per_cpu_cacheinfo(cpu) = kcalloc(cache_leaves(cpu), | |
| 180 | + sizeof(struct cacheinfo), GFP_KERNEL); | |
| 181 | + if (per_cpu_cacheinfo(cpu) == NULL) | |
| 182 | + return -ENOMEM; | |
| 183 | + | |
| 184 | + ret = populate_cache_leaves(cpu); | |
| 185 | + if (ret) | |
| 186 | + goto free_ci; | |
| 187 | + /* | |
| 188 | + * For systems using DT for cache hierarcy, of_node and shared_cpu_map | |
| 189 | + * will be set up here only if they are not populated already | |
| 190 | + */ | |
| 191 | + ret = cache_shared_cpu_map_setup(cpu); | |
| 192 | + if (ret) | |
| 193 | + goto free_ci; | |
| 194 | + return 0; | |
| 195 | + | |
| 196 | +free_ci: | |
| 197 | + free_cache_attributes(cpu); | |
| 198 | + return ret; | |
| 199 | +} | |
| 200 | + | |
| 201 | +/* pointer to cpuX/cache device */ | |
| 202 | +static DEFINE_PER_CPU(struct device *, ci_cache_dev); | |
| 203 | +#define per_cpu_cache_dev(cpu) (per_cpu(ci_cache_dev, cpu)) | |
| 204 | + | |
| 205 | +static cpumask_t cache_dev_map; | |
| 206 | + | |
| 207 | +/* pointer to array of devices for cpuX/cache/indexY */ | |
| 208 | +static DEFINE_PER_CPU(struct device **, ci_index_dev); | |
| 209 | +#define per_cpu_index_dev(cpu) (per_cpu(ci_index_dev, cpu)) | |
| 210 | +#define per_cache_index_dev(cpu, idx) ((per_cpu_index_dev(cpu))[idx]) | |
| 211 | + | |
| 212 | +#define show_one(file_name, object) \ | |
| 213 | +static ssize_t file_name##_show(struct device *dev, \ | |
| 214 | + struct device_attribute *attr, char *buf) \ | |
| 215 | +{ \ | |
| 216 | + struct cacheinfo *this_leaf = dev_get_drvdata(dev); \ | |
| 217 | + return sprintf(buf, "%u\n", this_leaf->object); \ | |
| 218 | +} | |
| 219 | + | |
| 220 | +show_one(level, level); | |
| 221 | +show_one(coherency_line_size, coherency_line_size); | |
| 222 | +show_one(number_of_sets, number_of_sets); | |
| 223 | +show_one(physical_line_partition, physical_line_partition); | |
| 224 | +show_one(ways_of_associativity, ways_of_associativity); | |
| 225 | + | |
| 226 | +static ssize_t size_show(struct device *dev, | |
| 227 | + struct device_attribute *attr, char *buf) | |
| 228 | +{ | |
| 229 | + struct cacheinfo *this_leaf = dev_get_drvdata(dev); | |
| 230 | + | |
| 231 | + return sprintf(buf, "%uK\n", this_leaf->size >> 10); | |
| 232 | +} | |
| 233 | + | |
| 234 | +static ssize_t shared_cpumap_show_func(struct device *dev, bool list, char *buf) | |
| 235 | +{ | |
| 236 | + struct cacheinfo *this_leaf = dev_get_drvdata(dev); | |
| 237 | + const struct cpumask *mask = &this_leaf->shared_cpu_map; | |
| 238 | + | |
| 239 | + return cpumap_print_to_pagebuf(list, buf, mask); | |
| 240 | +} | |
| 241 | + | |
| 242 | +static ssize_t shared_cpu_map_show(struct device *dev, | |
| 243 | + struct device_attribute *attr, char *buf) | |
| 244 | +{ | |
| 245 | + return shared_cpumap_show_func(dev, false, buf); | |
| 246 | +} | |
| 247 | + | |
| 248 | +static ssize_t shared_cpu_list_show(struct device *dev, | |
| 249 | + struct device_attribute *attr, char *buf) | |
| 250 | +{ | |
| 251 | + return shared_cpumap_show_func(dev, true, buf); | |
| 252 | +} | |
| 253 | + | |
| 254 | +static ssize_t type_show(struct device *dev, | |
| 255 | + struct device_attribute *attr, char *buf) | |
| 256 | +{ | |
| 257 | + struct cacheinfo *this_leaf = dev_get_drvdata(dev); | |
| 258 | + | |
| 259 | + switch (this_leaf->type) { | |
| 260 | + case CACHE_TYPE_DATA: | |
| 261 | + return sprintf(buf, "Data\n"); | |
| 262 | + case CACHE_TYPE_INST: | |
| 263 | + return sprintf(buf, "Instruction\n"); | |
| 264 | + case CACHE_TYPE_UNIFIED: | |
| 265 | + return sprintf(buf, "Unified\n"); | |
| 266 | + default: | |
| 267 | + return -EINVAL; | |
| 268 | + } | |
| 269 | +} | |
| 270 | + | |
| 271 | +static ssize_t allocation_policy_show(struct device *dev, | |
| 272 | + struct device_attribute *attr, char *buf) | |
| 273 | +{ | |
| 274 | + struct cacheinfo *this_leaf = dev_get_drvdata(dev); | |
| 275 | + unsigned int ci_attr = this_leaf->attributes; | |
| 276 | + int n = 0; | |
| 277 | + | |
| 278 | + if ((ci_attr & CACHE_READ_ALLOCATE) && (ci_attr & CACHE_WRITE_ALLOCATE)) | |
| 279 | + n = sprintf(buf, "ReadWriteAllocate\n"); | |
| 280 | + else if (ci_attr & CACHE_READ_ALLOCATE) | |
| 281 | + n = sprintf(buf, "ReadAllocate\n"); | |
| 282 | + else if (ci_attr & CACHE_WRITE_ALLOCATE) | |
| 283 | + n = sprintf(buf, "WriteAllocate\n"); | |
| 284 | + return n; | |
| 285 | +} | |
| 286 | + | |
| 287 | +static ssize_t write_policy_show(struct device *dev, | |
| 288 | + struct device_attribute *attr, char *buf) | |
| 289 | +{ | |
| 290 | + struct cacheinfo *this_leaf = dev_get_drvdata(dev); | |
| 291 | + unsigned int ci_attr = this_leaf->attributes; | |
| 292 | + int n = 0; | |
| 293 | + | |
| 294 | + if (ci_attr & CACHE_WRITE_THROUGH) | |
| 295 | + n = sprintf(buf, "WriteThrough\n"); | |
| 296 | + else if (ci_attr & CACHE_WRITE_BACK) | |
| 297 | + n = sprintf(buf, "WriteBack\n"); | |
| 298 | + return n; | |
| 299 | +} | |
| 300 | + | |
| 301 | +static DEVICE_ATTR_RO(level); | |
| 302 | +static DEVICE_ATTR_RO(type); | |
| 303 | +static DEVICE_ATTR_RO(coherency_line_size); | |
| 304 | +static DEVICE_ATTR_RO(ways_of_associativity); | |
| 305 | +static DEVICE_ATTR_RO(number_of_sets); | |
| 306 | +static DEVICE_ATTR_RO(size); | |
| 307 | +static DEVICE_ATTR_RO(allocation_policy); | |
| 308 | +static DEVICE_ATTR_RO(write_policy); | |
| 309 | +static DEVICE_ATTR_RO(shared_cpu_map); | |
| 310 | +static DEVICE_ATTR_RO(shared_cpu_list); | |
| 311 | +static DEVICE_ATTR_RO(physical_line_partition); | |
| 312 | + | |
| 313 | +static struct attribute *cache_default_attrs[] = { | |
| 314 | + &dev_attr_type.attr, | |
| 315 | + &dev_attr_level.attr, | |
| 316 | + &dev_attr_shared_cpu_map.attr, | |
| 317 | + &dev_attr_shared_cpu_list.attr, | |
| 318 | + &dev_attr_coherency_line_size.attr, | |
| 319 | + &dev_attr_ways_of_associativity.attr, | |
| 320 | + &dev_attr_number_of_sets.attr, | |
| 321 | + &dev_attr_size.attr, | |
| 322 | + &dev_attr_allocation_policy.attr, | |
| 323 | + &dev_attr_write_policy.attr, | |
| 324 | + &dev_attr_physical_line_partition.attr, | |
| 325 | + NULL | |
| 326 | +}; | |
| 327 | + | |
| 328 | +static umode_t | |
| 329 | +cache_default_attrs_is_visible(struct kobject *kobj, | |
| 330 | + struct attribute *attr, int unused) | |
| 331 | +{ | |
| 332 | + struct device *dev = kobj_to_dev(kobj); | |
| 333 | + struct cacheinfo *this_leaf = dev_get_drvdata(dev); | |
| 334 | + const struct cpumask *mask = &this_leaf->shared_cpu_map; | |
| 335 | + umode_t mode = attr->mode; | |
| 336 | + | |
| 337 | + if ((attr == &dev_attr_type.attr) && this_leaf->type) | |
| 338 | + return mode; | |
| 339 | + if ((attr == &dev_attr_level.attr) && this_leaf->level) | |
| 340 | + return mode; | |
| 341 | + if ((attr == &dev_attr_shared_cpu_map.attr) && !cpumask_empty(mask)) | |
| 342 | + return mode; | |
| 343 | + if ((attr == &dev_attr_shared_cpu_list.attr) && !cpumask_empty(mask)) | |
| 344 | + return mode; | |
| 345 | + if ((attr == &dev_attr_coherency_line_size.attr) && | |
| 346 | + this_leaf->coherency_line_size) | |
| 347 | + return mode; | |
| 348 | + if ((attr == &dev_attr_ways_of_associativity.attr) && | |
| 349 | + this_leaf->size) /* allow 0 = full associativity */ | |
| 350 | + return mode; | |
| 351 | + if ((attr == &dev_attr_number_of_sets.attr) && | |
| 352 | + this_leaf->number_of_sets) | |
| 353 | + return mode; | |
| 354 | + if ((attr == &dev_attr_size.attr) && this_leaf->size) | |
| 355 | + return mode; | |
| 356 | + if ((attr == &dev_attr_write_policy.attr) && | |
| 357 | + (this_leaf->attributes & CACHE_WRITE_POLICY_MASK)) | |
| 358 | + return mode; | |
| 359 | + if ((attr == &dev_attr_allocation_policy.attr) && | |
| 360 | + (this_leaf->attributes & CACHE_ALLOCATE_POLICY_MASK)) | |
| 361 | + return mode; | |
| 362 | + if ((attr == &dev_attr_physical_line_partition.attr) && | |
| 363 | + this_leaf->physical_line_partition) | |
| 364 | + return mode; | |
| 365 | + | |
| 366 | + return 0; | |
| 367 | +} | |
| 368 | + | |
| 369 | +static const struct attribute_group cache_default_group = { | |
| 370 | + .attrs = cache_default_attrs, | |
| 371 | + .is_visible = cache_default_attrs_is_visible, | |
| 372 | +}; | |
| 373 | + | |
| 374 | +static const struct attribute_group *cache_default_groups[] = { | |
| 375 | + &cache_default_group, | |
| 376 | + NULL, | |
| 377 | +}; | |
| 378 | + | |
| 379 | +static const struct attribute_group *cache_private_groups[] = { | |
| 380 | + &cache_default_group, | |
| 381 | + NULL, /* Place holder for private group */ | |
| 382 | + NULL, | |
| 383 | +}; | |
| 384 | + | |
| 385 | +const struct attribute_group * | |
| 386 | +__weak cache_get_priv_group(struct cacheinfo *this_leaf) | |
| 387 | +{ | |
| 388 | + return NULL; | |
| 389 | +} | |
| 390 | + | |
| 391 | +static const struct attribute_group ** | |
| 392 | +cache_get_attribute_groups(struct cacheinfo *this_leaf) | |
| 393 | +{ | |
| 394 | + const struct attribute_group *priv_group = | |
| 395 | + cache_get_priv_group(this_leaf); | |
| 396 | + | |
| 397 | + if (!priv_group) | |
| 398 | + return cache_default_groups; | |
| 399 | + | |
| 400 | + if (!cache_private_groups[1]) | |
| 401 | + cache_private_groups[1] = priv_group; | |
| 402 | + | |
| 403 | + return cache_private_groups; | |
| 404 | +} | |
| 405 | + | |
| 406 | +/* Add/Remove cache interface for CPU device */ | |
| 407 | +static void cpu_cache_sysfs_exit(unsigned int cpu) | |
| 408 | +{ | |
| 409 | + int i; | |
| 410 | + struct device *ci_dev; | |
| 411 | + | |
| 412 | + if (per_cpu_index_dev(cpu)) { | |
| 413 | + for (i = 0; i < cache_leaves(cpu); i++) { | |
| 414 | + ci_dev = per_cache_index_dev(cpu, i); | |
| 415 | + if (!ci_dev) | |
| 416 | + continue; | |
| 417 | + device_unregister(ci_dev); | |
| 418 | + } | |
| 419 | + kfree(per_cpu_index_dev(cpu)); | |
| 420 | + per_cpu_index_dev(cpu) = NULL; | |
| 421 | + } | |
| 422 | + device_unregister(per_cpu_cache_dev(cpu)); | |
| 423 | + per_cpu_cache_dev(cpu) = NULL; | |
| 424 | +} | |
| 425 | + | |
| 426 | +static int cpu_cache_sysfs_init(unsigned int cpu) | |
| 427 | +{ | |
| 428 | + struct device *dev = get_cpu_device(cpu); | |
| 429 | + | |
| 430 | + if (per_cpu_cacheinfo(cpu) == NULL) | |
| 431 | + return -ENOENT; | |
| 432 | + | |
| 433 | + per_cpu_cache_dev(cpu) = cpu_device_create(dev, NULL, NULL, "cache"); | |
| 434 | + if (IS_ERR(per_cpu_cache_dev(cpu))) | |
| 435 | + return PTR_ERR(per_cpu_cache_dev(cpu)); | |
| 436 | + | |
| 437 | + /* Allocate all required memory */ | |
| 438 | + per_cpu_index_dev(cpu) = kcalloc(cache_leaves(cpu), | |
| 439 | + sizeof(struct device *), GFP_KERNEL); | |
| 440 | + if (unlikely(per_cpu_index_dev(cpu) == NULL)) | |
| 441 | + goto err_out; | |
| 442 | + | |
| 443 | + return 0; | |
| 444 | + | |
| 445 | +err_out: | |
| 446 | + cpu_cache_sysfs_exit(cpu); | |
| 447 | + return -ENOMEM; | |
| 448 | +} | |
| 449 | + | |
| 450 | +static int cache_add_dev(unsigned int cpu) | |
| 451 | +{ | |
| 452 | + unsigned int i; | |
| 453 | + int rc; | |
| 454 | + struct device *ci_dev, *parent; | |
| 455 | + struct cacheinfo *this_leaf; | |
| 456 | + struct cpu_cacheinfo *this_cpu_ci = get_cpu_cacheinfo(cpu); | |
| 457 | + const struct attribute_group **cache_groups; | |
| 458 | + | |
| 459 | + rc = cpu_cache_sysfs_init(cpu); | |
| 460 | + if (unlikely(rc < 0)) | |
| 461 | + return rc; | |
| 462 | + | |
| 463 | + parent = per_cpu_cache_dev(cpu); | |
| 464 | + for (i = 0; i < cache_leaves(cpu); i++) { | |
| 465 | + this_leaf = this_cpu_ci->info_list + i; | |
| 466 | + if (this_leaf->disable_sysfs) | |
| 467 | + continue; | |
| 468 | + cache_groups = cache_get_attribute_groups(this_leaf); | |
| 469 | + ci_dev = cpu_device_create(parent, this_leaf, cache_groups, | |
| 470 | + "index%1u", i); | |
| 471 | + if (IS_ERR(ci_dev)) { | |
| 472 | + rc = PTR_ERR(ci_dev); | |
| 473 | + goto err; | |
| 474 | + } | |
| 475 | + per_cache_index_dev(cpu, i) = ci_dev; | |
| 476 | + } | |
| 477 | + cpumask_set_cpu(cpu, &cache_dev_map); | |
| 478 | + | |
| 479 | + return 0; | |
| 480 | +err: | |
| 481 | + cpu_cache_sysfs_exit(cpu); | |
| 482 | + return rc; | |
| 483 | +} | |
| 484 | + | |
| 485 | +static void cache_remove_dev(unsigned int cpu) | |
| 486 | +{ | |
| 487 | + if (!cpumask_test_cpu(cpu, &cache_dev_map)) | |
| 488 | + return; | |
| 489 | + cpumask_clear_cpu(cpu, &cache_dev_map); | |
| 490 | + | |
| 491 | + cpu_cache_sysfs_exit(cpu); | |
| 492 | +} | |
| 493 | + | |
| 494 | +static int cacheinfo_cpu_callback(struct notifier_block *nfb, | |
| 495 | + unsigned long action, void *hcpu) | |
| 496 | +{ | |
| 497 | + unsigned int cpu = (unsigned long)hcpu; | |
| 498 | + int rc = 0; | |
| 499 | + | |
| 500 | + switch (action & ~CPU_TASKS_FROZEN) { | |
| 501 | + case CPU_ONLINE: | |
| 502 | + rc = detect_cache_attributes(cpu); | |
| 503 | + if (!rc) | |
| 504 | + rc = cache_add_dev(cpu); | |
| 505 | + break; | |
| 506 | + case CPU_DEAD: | |
| 507 | + cache_remove_dev(cpu); | |
| 508 | + if (per_cpu_cacheinfo(cpu)) | |
| 509 | + free_cache_attributes(cpu); | |
| 510 | + break; | |
| 511 | + } | |
| 512 | + return notifier_from_errno(rc); | |
| 513 | +} | |
| 514 | + | |
| 515 | +static int __init cacheinfo_sysfs_init(void) | |
| 516 | +{ | |
| 517 | + int cpu, rc = 0; | |
| 518 | + | |
| 519 | + cpu_notifier_register_begin(); | |
| 520 | + | |
| 521 | + for_each_online_cpu(cpu) { | |
| 522 | + rc = detect_cache_attributes(cpu); | |
| 523 | + if (rc) | |
| 524 | + goto out; | |
| 525 | + rc = cache_add_dev(cpu); | |
| 526 | + if (rc) { | |
| 527 | + free_cache_attributes(cpu); | |
| 528 | + pr_err("error populating cacheinfo..cpu%d\n", cpu); | |
| 529 | + goto out; | |
| 530 | + } | |
| 531 | + } | |
| 532 | + __hotcpu_notifier(cacheinfo_cpu_callback, 0); | |
| 533 | + | |
| 534 | +out: | |
| 535 | + cpu_notifier_register_done(); | |
| 536 | + return rc; | |
| 537 | +} | |
| 538 | + | |
| 539 | +device_initcall(cacheinfo_sysfs_init); | |
| @@ -1021,18 +1021,6 @@ int device_add(struct device *dev) · 1020 unmodified lines | ||
| 1021 | 1021 | if (error) |
| 1022 | 1022 | goto attrError; |
| 1023 | 1023 | |
| 1024 | − if (MAJOR(dev->devt)) { | |
| 1025 | − error = device_create_file(dev, &dev_attr_dev); | |
| 1026 | − if (error) | |
| 1027 | − goto ueventattrError; | |
| 1028 | − | |
| 1029 | − error = device_create_sys_dev_entry(dev); | |
| 1030 | − if (error) | |
| 1031 | − goto devtattrError; | |
| 1032 | − | |
| 1033 | − devtmpfs_create_node(dev); | |
| 1034 | − } | |
| 1035 | − | |
| 1036 | 1024 | error = device_add_class_symlinks(dev); |
| 1037 | 1025 | if (error) |
| 1038 | 1026 | goto SymlinkError; |
| @@ -1047,6 +1035,18 @@ int device_add(struct device *dev) · 8 unmodified lines | ||
| 1047 | 1035 | goto DPMError; |
| 1048 | 1036 | device_pm_add(dev); |
| 1049 | 1037 | |
| 1038 | + if (MAJOR(dev->devt)) { | |
| 1039 | + error = device_create_file(dev, &dev_attr_dev); | |
| 1040 | + if (error) | |
| 1041 | + goto DevAttrError; | |
| 1042 | + | |
| 1043 | + error = device_create_sys_dev_entry(dev); | |
| 1044 | + if (error) | |
| 1045 | + goto SysEntryError; | |
| 1046 | + | |
| 1047 | + devtmpfs_create_node(dev); | |
| 1048 | + } | |
| 1049 | + | |
| 1050 | 1050 | /* Notify clients of device addition. This call must come |
| 1051 | 1051 | * after dpm_sysfs_add() and before kobject_uevent(). |
| 1052 | 1052 | */ |
| @@ -1076,6 +1076,12 @@ int device_add(struct device *dev) · 23 unmodified lines | ||
| 1076 | 1076 | done: |
| 1077 | 1077 | put_device(dev); |
| 1078 | 1078 | return error; |
| 1079 | + SysEntryError: | |
| 1080 | + if (MAJOR(dev->devt)) | |
| 1081 | + device_remove_file(dev, &dev_attr_dev); | |
| 1082 | + DevAttrError: | |
| 1083 | + device_pm_remove(dev); | |
| 1084 | + dpm_sysfs_remove(dev); | |
| 1079 | 1085 | DPMError: |
| 1080 | 1086 | bus_remove_device(dev); |
| 1081 | 1087 | BusError: |
| @@ -1083,14 +1089,6 @@ done: · 1 unmodified line | ||
| 1083 | 1089 | AttrsError: |
| 1084 | 1090 | device_remove_class_symlinks(dev); |
| 1085 | 1091 | SymlinkError: |
| 1086 | − if (MAJOR(dev->devt)) | |
| 1087 | − devtmpfs_delete_node(dev); | |
| 1088 | − if (MAJOR(dev->devt)) | |
| 1089 | − device_remove_sys_dev_entry(dev); | |
| 1090 | − devtattrError: | |
| 1091 | − if (MAJOR(dev->devt)) | |
| 1092 | − device_remove_file(dev, &dev_attr_dev); | |
| 1093 | − ueventattrError: | |
| 1094 | 1092 | device_remove_file(dev, &dev_attr_uevent); |
| 1095 | 1093 | attrError: |
| 1096 | 1094 | kobject_uevent(&dev->kobj, KOBJ_REMOVE); |
| @@ -207,11 +207,8 @@ static ssize_t show_cpus_attr(struct device *dev, · 206 unmodified lines | ||
| 207 | 207 | char *buf) |
| 208 | 208 | { |
| 209 | 209 | struct cpu_attr *ca = container_of(attr, struct cpu_attr, attr); |
| 210 | − int n = cpulist_scnprintf(buf, PAGE_SIZE-2, *(ca->map)); | |
| 211 | 210 | |
| 212 | − buf[n++] = '\n'; | |
| 213 | − buf[n] = '\0'; | |
| 214 | − return n; | |
| 211 | + return cpumap_print_to_pagebuf(true, buf, *ca->map); | |
| 215 | 212 | } |
| 216 | 213 | |
| 217 | 214 | #define _CPU_ATTR(name, map) \ |
| @@ -366,6 +363,60 @@ struct device *get_cpu_device(unsigned cpu) · 148 unmodified lines | ||
| 366 | 363 | } |
| 367 | 364 | EXPORT_SYMBOL_GPL(get_cpu_device); |
| 368 | 365 | |
| 366 | +static void device_create_release(struct device *dev) | |
| 367 | +{ | |
| 368 | + kfree(dev); | |
| 369 | +} | |
| 370 | + | |
| 371 | +static struct device * | |
| 372 | +__cpu_device_create(struct device *parent, void *drvdata, | |
| 373 | + const struct attribute_group **groups, | |
| 374 | + const char *fmt, va_list args) | |
| 375 | +{ | |
| 376 | + struct device *dev = NULL; | |
| 377 | + int retval = -ENODEV; | |
| 378 | + | |
| 379 | + dev = kzalloc(sizeof(*dev), GFP_KERNEL); | |
| 380 | + if (!dev) { | |
| 381 | + retval = -ENOMEM; | |
| 382 | + goto error; | |
| 383 | + } | |
| 384 | + | |
| 385 | + device_initialize(dev); | |
| 386 | + dev->parent = parent; | |
| 387 | + dev->groups = groups; | |
| 388 | + dev->release = device_create_release; | |
| 389 | + dev_set_drvdata(dev, drvdata); | |
| 390 | + | |
| 391 | + retval = kobject_set_name_vargs(&dev->kobj, fmt, args); | |
| 392 | + if (retval) | |
| 393 | + goto error; | |
| 394 | + | |
| 395 | + retval = device_add(dev); | |
| 396 | + if (retval) | |
| 397 | + goto error; | |
| 398 | + | |
| 399 | + return dev; | |
| 400 | + | |
| 401 | +error: | |
| 402 | + put_device(dev); | |
| 403 | + return ERR_PTR(retval); | |
| 404 | +} | |
| 405 | + | |
| 406 | +struct device *cpu_device_create(struct device *parent, void *drvdata, | |
| 407 | + const struct attribute_group **groups, | |
| 408 | + const char *fmt, ...) | |
| 409 | +{ | |
| 410 | + va_list vargs; | |
| 411 | + struct device *dev; | |
| 412 | + | |
| 413 | + va_start(vargs, fmt); | |
| 414 | + dev = __cpu_device_create(parent, drvdata, groups, fmt, vargs); | |
| 415 | + va_end(vargs); | |
| 416 | + return dev; | |
| 417 | +} | |
| 418 | +EXPORT_SYMBOL_GPL(cpu_device_create); | |
| 419 | + | |
| 369 | 420 | #ifdef CONFIG_GENERIC_CPU_AUTOPROBE |
| 370 | 421 | static DEVICE_ATTR(modalias, 0444, print_cpu_modalias, NULL); |
| 371 | 422 | #endif |
| @@ -31,6 +31,11 @@ · 30 unmodified lines | ||
| 31 | 31 | #include <linux/fs.h> |
| 32 | 32 | #include <linux/workqueue.h> |
| 33 | 33 | |
| 34 | +static struct class devcd_class; | |
| 35 | + | |
| 36 | +/* global disable flag, for security purposes */ | |
| 37 | +static bool devcd_disabled; | |
| 38 | + | |
| 34 | 39 | /* if data isn't read by userspace after 5 minutes then delete it */ |
| 35 | 40 | #define DEVCD_TIMEOUT (HZ * 60 * 5) |
| 36 | 41 | |
| @@ -121,11 +126,51 @@ static const struct attribute_group *devcd_dev_groups[] = { · 84 unmodified lines | ||
| 121 | 126 | &devcd_dev_group, NULL, |
| 122 | 127 | }; |
| 123 | 128 | |
| 129 | +static int devcd_free(struct device *dev, void *data) | |
| 130 | +{ | |
| 131 | + struct devcd_entry *devcd = dev_to_devcd(dev); | |
| 132 | + | |
| 133 | + flush_delayed_work(&devcd->del_wk); | |
| 134 | + return 0; | |
| 135 | +} | |
| 136 | + | |
| 137 | +static ssize_t disabled_show(struct class *class, struct class_attribute *attr, | |
| 138 | + char *buf) | |
| 139 | +{ | |
| 140 | + return sprintf(buf, "%d\n", devcd_disabled); | |
| 141 | +} | |
| 142 | + | |
| 143 | +static ssize_t disabled_store(struct class *class, struct class_attribute *attr, | |
| 144 | + const char *buf, size_t count) | |
| 145 | +{ | |
| 146 | + long tmp = simple_strtol(buf, NULL, 10); | |
| 147 | + | |
| 148 | + /* | |
| 149 | + * This essentially makes the attribute write-once, since you can't | |
| 150 | + * go back to not having it disabled. This is intentional, it serves | |
| 151 | + * as a system lockdown feature. | |
| 152 | + */ | |
| 153 | + if (tmp != 1) | |
| 154 | + return -EINVAL; | |
| 155 | + | |
| 156 | + devcd_disabled = true; | |
| 157 | + | |
| 158 | + class_for_each_device(&devcd_class, NULL, NULL, devcd_free); | |
| 159 | + | |
| 160 | + return count; | |
| 161 | +} | |
| 162 | + | |
| 163 | +static struct class_attribute devcd_class_attrs[] = { | |
| 164 | + __ATTR_RW(disabled), | |
| 165 | + __ATTR_NULL | |
| 166 | +}; | |
| 167 | + | |
| 124 | 168 | static struct class devcd_class = { |
| 125 | 169 | .name = "devcoredump", |
| 126 | 170 | .owner = THIS_MODULE, |
| 127 | 171 | .dev_release = devcd_dev_release, |
| 128 | 172 | .dev_groups = devcd_dev_groups, |
| 173 | + .class_attrs = devcd_class_attrs, | |
| 129 | 174 | }; |
| 130 | 175 | |
| 131 | 176 | static ssize_t devcd_readv(char *buffer, loff_t offset, size_t count, |
| @@ -192,6 +237,9 @@ void dev_coredumpm(struct device *dev, struct module *owner, · 60 unmodified lines | ||
| 192 | 237 | struct devcd_entry *devcd; |
| 193 | 238 | struct device *existing; |
| 194 | 239 | |
| 240 | + if (devcd_disabled) | |
| 241 | + goto free; | |
| 242 | + | |
| 195 | 243 | existing = class_find_device(&devcd_class, NULL, dev, |
| 196 | 244 | devcd_match_failing); |
| 197 | 245 | if (existing) { |
| @@ -249,14 +297,6 @@ static int __init devcoredump_init(void) · 51 unmodified lines | ||
| 249 | 297 | } |
| 250 | 298 | __initcall(devcoredump_init); |
| 251 | 299 | |
| 252 | −static int devcd_free(struct device *dev, void *data) | |
| 253 | −{ | |
| 254 | − struct devcd_entry *devcd = dev_to_devcd(dev); | |
| 255 | − | |
| 256 | − flush_delayed_work(&devcd->del_wk); | |
| 257 | − return 0; | |
| 258 | −} | |
| 259 | − | |
| 260 | 300 | static void __exit devcoredump_exit(void) |
| 261 | 301 | { |
| 262 | 302 | class_for_each_device(&devcd_class, NULL, NULL, devcd_free); |
| @@ -591,8 +591,7 @@ static int fw_map_pages_buf(struct firmware_buf *buf) · 590 unmodified lines | ||
| 591 | 591 | if (!buf->is_paged_buf) |
| 592 | 592 | return 0; |
| 593 | 593 | |
| 594 | − if (buf->data) | |
| 595 | − vunmap(buf->data); | |
| 594 | + vunmap(buf->data); | |
| 596 | 595 | buf->data = vmap(buf->pages, buf->nr_pages, 0, PAGE_KERNEL_RO); |
| 597 | 596 | if (!buf->data) |
| 598 | 597 | return -ENOMEM; |
| @@ -925,7 +924,7 @@ static int _request_firmware_load(struct firmware_priv *fw_priv, · 326 unmodified lines | ||
| 925 | 924 | kobject_uevent(&fw_priv->dev.kobj, KOBJ_ADD); |
| 926 | 925 | } |
| 927 | 926 | |
| 928 | − wait_for_completion(&buf->completion); | |
| 927 | + retval = wait_for_completion_interruptible(&buf->completion); | |
| 929 | 928 | |
| 930 | 929 | cancel_delayed_work_sync(&fw_priv->timeout_work); |
| 931 | 930 | if (is_fw_load_aborted(buf)) |
| @@ -1004,7 +1003,7 @@ static int sync_cached_firmware_buf(struct firmware_buf *buf) · 72 unmodified lines | ||
| 1004 | 1003 | break; |
| 1005 | 1004 | } |
| 1006 | 1005 | mutex_unlock(&fw_lock); |
| 1007 | − wait_for_completion(&buf->completion); | |
| 1006 | + ret = wait_for_completion_interruptible(&buf->completion); | |
| 1008 | 1007 | mutex_lock(&fw_lock); |
| 1009 | 1008 | } |
| 1010 | 1009 | mutex_unlock(&fw_lock); |
| @@ -25,32 +25,26 @@ static struct bus_type node_subsys = { · 24 unmodified lines | ||
| 25 | 25 | }; |
| 26 | 26 | |
| 27 | 27 | |
| 28 | −static ssize_t node_read_cpumap(struct device *dev, int type, char *buf) | |
| 28 | +static ssize_t node_read_cpumap(struct device *dev, bool list, char *buf) | |
| 29 | 29 | { |
| 30 | 30 | struct node *node_dev = to_node(dev); |
| 31 | 31 | const struct cpumask *mask = cpumask_of_node(node_dev->dev.id); |
| 32 | − int len; | |
| 33 | 32 | |
| 34 | 33 | /* 2008/04/07: buf currently PAGE_SIZE, need 9 chars per 32 bits. */ |
| 35 | 34 | BUILD_BUG_ON((NR_CPUS/32 * 9) > (PAGE_SIZE-1)); |
| 36 | 35 | |
| 37 | − len = type? | |
| 38 | − cpulist_scnprintf(buf, PAGE_SIZE-2, mask) : | |
| 39 | − cpumask_scnprintf(buf, PAGE_SIZE-2, mask); | |
| 40 | − buf[len++] = '\n'; | |
| 41 | − buf[len] = '\0'; | |
| 42 | − return len; | |
| 36 | + return cpumap_print_to_pagebuf(list, buf, mask); | |
| 43 | 37 | } |
| 44 | 38 | |
| 45 | 39 | static inline ssize_t node_read_cpumask(struct device *dev, |
| 46 | 40 | struct device_attribute *attr, char *buf) |
| 47 | 41 | { |
| 48 | − return node_read_cpumap(dev, 0, buf); | |
| 42 | + return node_read_cpumap(dev, false, buf); | |
| 49 | 43 | } |
| 50 | 44 | static inline ssize_t node_read_cpulist(struct device *dev, |
| 51 | 45 | struct device_attribute *attr, char *buf) |
| 52 | 46 | { |
| 53 | − return node_read_cpumap(dev, 1, buf); | |
| 47 | + return node_read_cpumap(dev, true, buf); | |
| 54 | 48 | } |
| 55 | 49 | |
| 56 | 50 | static DEVICE_ATTR(cpumap, S_IRUGO, node_read_cpumask, NULL); |
| @@ -580,9 +580,10 @@ void platform_driver_unregister(struct platform_driver *drv) · 579 unmodified lines | ||
| 580 | 580 | EXPORT_SYMBOL_GPL(platform_driver_unregister); |
| 581 | 581 | |
| 582 | 582 | /** |
| 583 | − * platform_driver_probe - register driver for non-hotpluggable device | |
| 583 | + * __platform_driver_probe - register driver for non-hotpluggable device | |
| 584 | 584 | * @drv: platform driver structure |
| 585 | 585 | * @probe: the driver probe routine, probably from an __init section |
| 586 | + * @module: module which will be the owner of the driver | |
| 586 | 587 | * |
| 587 | 588 | * Use this instead of platform_driver_register() when you know the device |
| 588 | 589 | * is not hotpluggable and has already been registered, and you want to |
| @@ -598,8 +599,8 @@ EXPORT_SYMBOL_GPL(platform_driver_unregister); · 9 unmodified lines | ||
| 598 | 599 | * Returns zero if the driver registered and bound to a device, else returns |
| 599 | 600 | * a negative error code and with the driver not registered. |
| 600 | 601 | */ |
| 601 | −int __init_or_module platform_driver_probe(struct platform_driver *drv, | |
| 602 | − int (*probe)(struct platform_device *)) | |
| 602 | +int __init_or_module __platform_driver_probe(struct platform_driver *drv, | |
| 603 | + int (*probe)(struct platform_device *), struct module *module) | |
| 603 | 604 | { |
| 604 | 605 | int retval, code; |
| 605 | 606 | |
| @@ -614,7 +615,7 @@ int __init_or_module platform_driver_probe(struct platform_driver *drv, · 8 unmodified lines | ||
| 614 | 615 | |
| 615 | 616 | /* temporary section violation during probe() */ |
| 616 | 617 | drv->probe = probe; |
| 617 | − retval = code = platform_driver_register(drv); | |
| 618 | + retval = code = __platform_driver_register(drv, module); | |
| 618 | 619 | |
| 619 | 620 | /* |
| 620 | 621 | * Fixup that section violation, being paranoid about code scanning |
| @@ -633,27 +634,28 @@ int __init_or_module platform_driver_probe(struct platform_driver *drv, · 12 unmodified lines | ||
| 633 | 634 | platform_driver_unregister(drv); |
| 634 | 635 | return retval; |
| 635 | 636 | } |
| 636 | −EXPORT_SYMBOL_GPL(platform_driver_probe); | |
| 637 | +EXPORT_SYMBOL_GPL(__platform_driver_probe); | |
| 637 | 638 | |
| 638 | 639 | /** |
| 639 | − * platform_create_bundle - register driver and create corresponding device | |
| 640 | + * __platform_create_bundle - register driver and create corresponding device | |
| 640 | 641 | * @driver: platform driver structure |
| 641 | 642 | * @probe: the driver probe routine, probably from an __init section |
| 642 | 643 | * @res: set of resources that needs to be allocated for the device |
| 643 | 644 | * @n_res: number of resources |
| 644 | 645 | * @data: platform specific data for this platform device |
| 645 | 646 | * @size: size of platform specific data |
| 647 | + * @module: module which will be the owner of the driver | |
| 646 | 648 | * |
| 647 | 649 | * Use this in legacy-style modules that probe hardware directly and |
| 648 | 650 | * register a single platform device and corresponding platform driver. |
| 649 | 651 | * |
| 650 | 652 | * Returns &struct platform_device pointer on success, or ERR_PTR() on error. |
| 651 | 653 | */ |
| 652 | −struct platform_device * __init_or_module platform_create_bundle( | |
| 654 | +struct platform_device * __init_or_module __platform_create_bundle( | |
| 653 | 655 | struct platform_driver *driver, |
| 654 | 656 | int (*probe)(struct platform_device *), |
| 655 | 657 | struct resource *res, unsigned int n_res, |
| 656 | − const void *data, size_t size) | |
| 658 | + const void *data, size_t size, struct module *module) | |
| 657 | 659 | { |
| 658 | 660 | struct platform_device *pdev; |
| 659 | 661 | int error; |
| @@ -676,7 +678,7 @@ struct platform_device * __init_or_module platform_create_bundle( · 16 unmodified lines | ||
| 676 | 678 | if (error) |
| 677 | 679 | goto err_pdev_put; |
| 678 | 680 | |
| 679 | − error = platform_driver_probe(driver, probe); | |
| 681 | + error = __platform_driver_probe(driver, probe, module); | |
| 680 | 682 | if (error) |
| 681 | 683 | goto err_pdev_del; |
| 682 | 684 | |
| @@ -689,7 +691,7 @@ err_pdev_put: · 6 unmodified lines | ||
| 689 | 691 | err_out: |
| 690 | 692 | return ERR_PTR(error); |
| 691 | 693 | } |
| 692 | −EXPORT_SYMBOL_GPL(platform_create_bundle); | |
| 694 | +EXPORT_SYMBOL_GPL(__platform_create_bundle); | |
| 693 | 695 | |
| 694 | 696 | /* modalias support enables more hands-off userspace setup: |
| 695 | 697 | * (a) environment variable lets new-style hotplug events work once system is |
| @@ -29,75 +29,52 @@ · 28 unmodified lines | ||
| 29 | 29 | #include <linux/hardirq.h> |
| 30 | 30 | #include <linux/topology.h> |
| 31 | 31 | |
| 32 | −#define define_one_ro_named(_name, _func) \ | |
| 33 | − static DEVICE_ATTR(_name, 0444, _func, NULL) | |
| 34 | − | |
| 35 | −#define define_one_ro(_name) \ | |
| 36 | − static DEVICE_ATTR(_name, 0444, show_##_name, NULL) | |
| 37 | − | |
| 38 | 32 | #define define_id_show_func(name) \ |
| 39 | −static ssize_t show_##name(struct device *dev, \ | |
| 33 | +static ssize_t name##_show(struct device *dev, \ | |
| 40 | 34 | struct device_attribute *attr, char *buf) \ |
| 41 | 35 | { \ |
| 42 | 36 | return sprintf(buf, "%d\n", topology_##name(dev->id)); \ |
| 43 | 37 | } |
| 44 | 38 | |
| 45 | −#if defined(topology_thread_cpumask) || defined(topology_core_cpumask) || \ | |
| 46 | − defined(topology_book_cpumask) | |
| 47 | −static ssize_t show_cpumap(int type, const struct cpumask *mask, char *buf) | |
| 48 | −{ | |
| 49 | − ptrdiff_t len = PTR_ALIGN(buf + PAGE_SIZE - 1, PAGE_SIZE) - buf; | |
| 50 | − int n = 0; | |
| 51 | − | |
| 52 | − if (len > 1) { | |
| 53 | − n = type? | |
| 54 | − cpulist_scnprintf(buf, len-2, mask) : | |
| 55 | − cpumask_scnprintf(buf, len-2, mask); | |
| 56 | − buf[n++] = '\n'; | |
| 57 | − buf[n] = '\0'; | |
| 58 | − } | |
| 59 | − return n; | |
| 60 | −} | |
| 61 | −#endif | |
| 62 | − | |
| 63 | −#define define_siblings_show_map(name) \ | |
| 64 | −static ssize_t show_##name(struct device *dev, \ | |
| 39 | +#define define_siblings_show_map(name, mask) \ | |
| 40 | +static ssize_t name##_show(struct device *dev, \ | |
| 65 | 41 | struct device_attribute *attr, char *buf) \ |
| 66 | 42 | { \ |
| 67 | − return show_cpumap(0, topology_##name(dev->id), buf); \ | |
| 43 | + return cpumap_print_to_pagebuf(false, buf, topology_##mask(dev->id));\ | |
| 68 | 44 | } |
| 69 | 45 | |
| 70 | −#define define_siblings_show_list(name) \ | |
| 71 | −static ssize_t show_##name##_list(struct device *dev, \ | |
| 72 | − struct device_attribute *attr, \ | |
| 73 | − char *buf) \ | |
| 46 | +#define define_siblings_show_list(name, mask) \ | |
| 47 | +static ssize_t name##_list_show(struct device *dev, \ | |
| 48 | + struct device_attribute *attr, \ | |
| 49 | + char *buf) \ | |
| 74 | 50 | { \ |
| 75 | − return show_cpumap(1, topology_##name(dev->id), buf); \ | |
| 51 | + return cpumap_print_to_pagebuf(true, buf, topology_##mask(dev->id));\ | |
| 76 | 52 | } |
| 77 | 53 | |
| 78 | −#define define_siblings_show_func(name) \ | |
| 79 | − define_siblings_show_map(name); define_siblings_show_list(name) | |
| 54 | +#define define_siblings_show_func(name, mask) \ | |
| 55 | + define_siblings_show_map(name, mask); \ | |
| 56 | + define_siblings_show_list(name, mask) | |
| 80 | 57 | |
| 81 | 58 | define_id_show_func(physical_package_id); |
| 82 | −define_one_ro(physical_package_id); | |
| 59 | +static DEVICE_ATTR_RO(physical_package_id); | |
| 83 | 60 | |
| 84 | 61 | define_id_show_func(core_id); |
| 85 | −define_one_ro(core_id); | |
| 62 | +static DEVICE_ATTR_RO(core_id); | |
| 86 | 63 | |
| 87 | −define_siblings_show_func(thread_cpumask); | |
| 88 | −define_one_ro_named(thread_siblings, show_thread_cpumask); | |
| 89 | −define_one_ro_named(thread_siblings_list, show_thread_cpumask_list); | |
| 64 | +define_siblings_show_func(thread_siblings, thread_cpumask); | |
| 65 | +static DEVICE_ATTR_RO(thread_siblings); | |
| 66 | +static DEVICE_ATTR_RO(thread_siblings_list); | |
| 90 | 67 | |
| 91 | −define_siblings_show_func(core_cpumask); | |
| 92 | −define_one_ro_named(core_siblings, show_core_cpumask); | |
| 93 | −define_one_ro_named(core_siblings_list, show_core_cpumask_list); | |
| 68 | +define_siblings_show_func(core_siblings, core_cpumask); | |
| 69 | +static DEVICE_ATTR_RO(core_siblings); | |
| 70 | +static DEVICE_ATTR_RO(core_siblings_list); | |
| 94 | 71 | |
| 95 | 72 | #ifdef CONFIG_SCHED_BOOK |
| 96 | 73 | define_id_show_func(book_id); |
| 97 | −define_one_ro(book_id); | |
| 98 | −define_siblings_show_func(book_cpumask); | |
| 99 | −define_one_ro_named(book_siblings, show_book_cpumask); | |
| 100 | −define_one_ro_named(book_siblings_list, show_book_cpumask_list); | |
| 74 | +static DEVICE_ATTR_RO(book_id); | |
| 75 | +define_siblings_show_func(book_siblings, book_cpumask); | |
| 76 | +static DEVICE_ATTR_RO(book_siblings); | |
| 77 | +static DEVICE_ATTR_RO(book_siblings_list); | |
| 101 | 78 | #endif |
| 102 | 79 | |
| 103 | 80 | static struct attribute *default_attrs[] = { |
| @@ -1864,7 +1864,6 @@ static int __exit amiga_floppy_remove(struct platform_device *pdev) · 1863 unmodified lines | ||
| 1864 | 1864 | static struct platform_driver amiga_floppy_driver = { |
| 1865 | 1865 | .driver = { |
| 1866 | 1866 | .name = "amiga-floppy", |
| 1867 | − .owner = THIS_MODULE, | |
| 1868 | 1867 | }, |
| 1869 | 1868 | }; |
| 1870 | 1869 | |
| @@ -1082,7 +1082,6 @@ static struct platform_driver mg_disk_driver = { · 1081 unmodified lines | ||
| 1082 | 1082 | .remove = mg_remove, |
| 1083 | 1083 | .driver = { |
| 1084 | 1084 | .name = MG_DEV_NAME, |
| 1085 | − .owner = THIS_MODULE, | |
| 1086 | 1085 | .pm = &mg_pm, |
| 1087 | 1086 | } |
| 1088 | 1087 | }; |
| @@ -971,7 +971,6 @@ static struct platform_driver swim_driver = { · 970 unmodified lines | ||
| 971 | 971 | .remove = swim_remove, |
| 972 | 972 | .driver = { |
| 973 | 973 | .name = CARDNAME, |
| 974 | − .owner = THIS_MODULE, | |
| 975 | 974 | }, |
| 976 | 975 | }; |
| 977 | 976 | |
| @@ -349,7 +349,6 @@ static struct platform_driver btwilink_driver = { · 348 unmodified lines | ||
| 349 | 349 | .remove = bt_ti_remove, |
| 350 | 350 | .driver = { |
| 351 | 351 | .name = "btwilink", |
| 352 | − .owner = THIS_MODULE, | |
| 353 | 352 | }, |
| 354 | 353 | }; |
| 355 | 354 | |
| @@ -389,7 +389,6 @@ static const struct dev_pm_ops brcmstb_gisb_arb_pm_ops = { · 388 unmodified lines | ||
| 389 | 389 | static struct platform_driver brcmstb_gisb_arb_driver = { |
| 390 | 390 | .driver = { |
| 391 | 391 | .name = "brcm-gisb-arb", |
| 392 | − .owner = THIS_MODULE, | |
| 393 | 392 | .of_match_table = brcmstb_gisb_arb_of_match, |
| 394 | 393 | .pm = &brcmstb_gisb_arb_pm_ops, |
| 395 | 394 | }, |
| @@ -206,7 +206,6 @@ static int __init weim_probe(struct platform_device *pdev) · 205 unmodified lines | ||
| 206 | 206 | static struct platform_driver weim_driver = { |
| 207 | 207 | .driver = { |
| 208 | 208 | .name = "imx-weim", |
| 209 | − .owner = THIS_MODULE, | |
| 210 | 209 | .of_match_table = weim_id_table, |
| 211 | 210 | }, |
| 212 | 211 | }; |
| @@ -77,7 +77,6 @@ static struct platform_driver omap_ocp2scp_driver = { · 76 unmodified lines | ||
| 77 | 77 | .remove = omap_ocp2scp_remove, |
| 78 | 78 | .driver = { |
| 79 | 79 | .name = "omap-ocp2scp", |
| 80 | − .owner = THIS_MODULE, | |
| 81 | 80 | .of_match_table = of_match_ptr(omap_ocp2scp_id_table), |
| 82 | 81 | }, |
| 83 | 82 | }; |
| @@ -358,7 +358,6 @@ static struct platform_driver omap_l3_driver = { · 357 unmodified lines | ||
| 358 | 358 | .probe = omap_l3_probe, |
| 359 | 359 | .driver = { |
| 360 | 360 | .name = "omap_l3_noc", |
| 361 | − .owner = THIS_MODULE, | |
| 362 | 361 | .pm = L3_DEV_PM_OPS, |
| 363 | 362 | .of_match_table = of_match_ptr(l3_noc_match), |
| 364 | 363 | }, |
| @@ -134,7 +134,6 @@ static struct platform_driver atmel_trng_driver = { · 133 unmodified lines | ||
| 134 | 134 | .remove = atmel_trng_remove, |
| 135 | 135 | .driver = { |
| 136 | 136 | .name = "atmel-trng", |
| 137 | − .owner = THIS_MODULE, | |
| 138 | 137 | #ifdef CONFIG_PM |
| 139 | 138 | .pm = &atmel_trng_pm_ops, |
| 140 | 139 | #endif /* CONFIG_PM */ |
| @@ -99,7 +99,6 @@ MODULE_DEVICE_TABLE(of, bcm2835_rng_of_match); · 98 unmodified lines | ||
| 99 | 99 | static struct platform_driver bcm2835_rng_driver = { |
| 100 | 100 | .driver = { |
| 101 | 101 | .name = "bcm2835-rng", |
| 102 | − .owner = THIS_MODULE, | |
| 103 | 102 | .of_match_table = bcm2835_rng_of_match, |
| 104 | 103 | }, |
| 105 | 104 | .probe = bcm2835_rng_probe, |
| @@ -162,7 +162,6 @@ static struct platform_driver bcm63xx_rng_driver = { · 161 unmodified lines | ||
| 162 | 162 | .remove = bcm63xx_rng_remove, |
| 163 | 163 | .driver = { |
| 164 | 164 | .name = "bcm63xx-rng", |
| 165 | − .owner = THIS_MODULE, | |
| 166 | 165 | }, |
| 167 | 166 | }; |
| 168 | 167 | |
| @@ -169,7 +169,6 @@ static UNIVERSAL_DEV_PM_OPS(exynos_rng_pm_ops, exynos_rng_runtime_suspend, · 168 unmodified lines | ||
| 169 | 169 | static struct platform_driver exynos_rng_driver = { |
| 170 | 170 | .driver = { |
| 171 | 171 | .name = "exynos-rng", |
| 172 | − .owner = THIS_MODULE, | |
| 173 | 172 | .pm = &exynos_rng_pm_ops, |
| 174 | 173 | }, |
| 175 | 174 | .probe = exynos_rng_probe, |
| @@ -185,7 +185,6 @@ static struct platform_driver msm_rng_driver = { · 184 unmodified lines | ||
| 185 | 185 | .remove = msm_rng_remove, |
| 186 | 186 | .driver = { |
| 187 | 187 | .name = KBUILD_MODNAME, |
| 188 | − .owner = THIS_MODULE, | |
| 189 | 188 | .of_match_table = of_match_ptr(msm_rng_of_match), |
| 190 | 189 | } |
| 191 | 190 | }; |
| @@ -206,7 +206,6 @@ static int __exit mxc_rnga_remove(struct platform_device *pdev) · 205 unmodified lines | ||
| 206 | 206 | static struct platform_driver mxc_rnga_driver = { |
| 207 | 207 | .driver = { |
| 208 | 208 | .name = "mxc_rnga", |
| 209 | − .owner = THIS_MODULE, | |
| 210 | 209 | }, |
| 211 | 210 | .remove = __exit_p(mxc_rnga_remove), |
| 212 | 211 | }; |
| @@ -750,7 +750,6 @@ MODULE_DEVICE_TABLE(of, n2rng_match); · 749 unmodified lines | ||
| 750 | 750 | static struct platform_driver n2rng_driver = { |
| 751 | 751 | .driver = { |
| 752 | 752 | .name = "n2rng", |
| 753 | − .owner = THIS_MODULE, | |
| 754 | 753 | .of_match_table = n2rng_match, |
| 755 | 754 | }, |
| 756 | 755 | .probe = n2rng_probe, |
| @@ -117,7 +117,6 @@ static int __exit octeon_rng_remove(struct platform_device *pdev) · 116 unmodified lines | ||
| 117 | 117 | static struct platform_driver octeon_rng_driver = { |
| 118 | 118 | .driver = { |
| 119 | 119 | .name = "octeon_rng", |
| 120 | − .owner = THIS_MODULE, | |
| 121 | 120 | }, |
| 122 | 121 | .probe = octeon_rng_probe, |
| 123 | 122 | .remove = __exit_p(octeon_rng_remove), |
| @@ -456,7 +456,6 @@ static SIMPLE_DEV_PM_OPS(omap_rng_pm, omap_rng_suspend, omap_rng_resume); · 455 unmodified lines | ||
| 456 | 456 | static struct platform_driver omap_rng_driver = { |
| 457 | 457 | .driver = { |
| 458 | 458 | .name = "omap_rng", |
| 459 | − .owner = THIS_MODULE, | |
| 460 | 459 | .pm = OMAP_RNG_PM, |
| 461 | 460 | .of_match_table = of_match_ptr(omap_rng_of_match), |
| 462 | 461 | }, |
| @@ -126,7 +126,6 @@ static int omap3_rom_rng_remove(struct platform_device *pdev) · 125 unmodified lines | ||
| 126 | 126 | static struct platform_driver omap3_rom_rng_driver = { |
| 127 | 127 | .driver = { |
| 128 | 128 | .name = "omap3-rom-rng", |
| 129 | − .owner = THIS_MODULE, | |
| 130 | 129 | }, |
| 131 | 130 | .probe = omap3_rom_rng_probe, |
| 132 | 131 | .remove = omap3_rom_rng_remove, |
| @@ -142,7 +142,6 @@ static struct of_device_id rng_match[] = { · 141 unmodified lines | ||
| 142 | 142 | static struct platform_driver rng_driver = { |
| 143 | 143 | .driver = { |
| 144 | 144 | .name = "pasemi-rng", |
| 145 | − .owner = THIS_MODULE, | |
| 146 | 145 | .of_match_table = rng_match, |
| 147 | 146 | }, |
| 148 | 147 | .probe = rng_probe, |
| @@ -133,7 +133,6 @@ static struct of_device_id ppc4xx_rng_match[] = { · 132 unmodified lines | ||
| 133 | 133 | static struct platform_driver ppc4xx_rng_driver = { |
| 134 | 134 | .driver = { |
| 135 | 135 | .name = MODULE_NAME, |
| 136 | − .owner = THIS_MODULE, | |
| 137 | 136 | .of_match_table = ppc4xx_rng_match, |
| 138 | 137 | }, |
| 139 | 138 | .probe = ppc4xx_rng_probe, |
| @@ -200,7 +200,6 @@ MODULE_DEVICE_TABLE(of, timeriomem_rng_match); · 199 unmodified lines | ||
| 200 | 200 | static struct platform_driver timeriomem_rng_driver = { |
| 201 | 201 | .driver = { |
| 202 | 202 | .name = "timeriomem_rng", |
| 203 | − .owner = THIS_MODULE, | |
| 204 | 203 | .of_match_table = timeriomem_rng_match, |
| 205 | 204 | }, |
| 206 | 205 | .probe = timeriomem_rng_probe, |
| @@ -158,7 +158,6 @@ static int __exit tx4939_rng_remove(struct platform_device *dev) · 157 unmodified lines | ||
| 158 | 158 | static struct platform_driver tx4939_rng_driver = { |
| 159 | 159 | .driver = { |
| 160 | 160 | .name = "tx4939-rng", |
| 161 | − .owner = THIS_MODULE, | |
| 162 | 161 | }, |
| 163 | 162 | .remove = tx4939_rng_remove, |
| 164 | 163 | }; |
| @@ -2788,7 +2788,6 @@ static struct of_device_id ipmi_match[] = · 2787 unmodified lines | ||
| 2788 | 2788 | static struct platform_driver ipmi_driver = { |
| 2789 | 2789 | .driver = { |
| 2790 | 2790 | .name = DEVICE_NAME, |
| 2791 | − .owner = THIS_MODULE, | |
| 2792 | 2791 | .of_match_table = ipmi_match, |
| 2793 | 2792 | }, |
| 2794 | 2793 | .probe = ipmi_probe, |
| @@ -1482,7 +1482,6 @@ static void sonypi_shutdown(struct platform_device *dev) · 1481 unmodified lines | ||
| 1482 | 1482 | static struct platform_driver sonypi_driver = { |
| 1483 | 1483 | .driver = { |
| 1484 | 1484 | .name = "sonypi", |
| 1485 | − .owner = THIS_MODULE, | |
| 1486 | 1485 | .pm = SONYPI_PM, |
| 1487 | 1486 | }, |
| 1488 | 1487 | .probe = sonypi_probe, |
| @@ -337,7 +337,6 @@ static struct platform_driver tb0219_device_driver = { · 336 unmodified lines | ||
| 337 | 337 | .remove = tb0219_remove, |
| 338 | 338 | .driver = { |
| 339 | 339 | .name = "TB0219", |
| 340 | − .owner = THIS_MODULE, | |
| 341 | 340 | }, |
| 342 | 341 | }; |
| 343 | 342 | |
| @@ -152,7 +152,6 @@ static SIMPLE_DEV_PM_OPS(tpm_atml_pm, tpm_pm_suspend, tpm_pm_resume); · 151 unmodified lines | ||
| 152 | 152 | static struct platform_driver atml_drv = { |
| 153 | 153 | .driver = { |
| 154 | 154 | .name = "tpm_atmel", |
| 155 | − .owner = THIS_MODULE, | |
| 156 | 155 | .pm = &tpm_atml_pm, |
| 157 | 156 | }, |
| 158 | 157 | }; |
| @@ -258,7 +258,6 @@ static SIMPLE_DEV_PM_OPS(tpm_nsc_pm, tpm_pm_suspend, tpm_pm_resume); · 257 unmodified lines | ||
| 258 | 258 | static struct platform_driver nsc_drv = { |
| 259 | 259 | .driver = { |
| 260 | 260 | .name = "tpm_nsc", |
| 261 | − .owner = THIS_MODULE, | |
| 262 | 261 | .pm = &tpm_nsc_pm, |
| 263 | 262 | }, |
| 264 | 263 | }; |
| @@ -837,7 +837,6 @@ MODULE_PARM_DESC(hid, "Set additional specific HID for this driver to probe"); · 836 unmodified lines | ||
| 837 | 837 | static struct platform_driver tis_drv = { |
| 838 | 838 | .driver = { |
| 839 | 839 | .name = "tpm_tis", |
| 840 | − .owner = THIS_MODULE, | |
| 841 | 840 | .pm = &tpm_tis_pm, |
| 842 | 841 | }, |
| 843 | 842 | }; |
| @@ -179,7 +179,6 @@ static struct platform_driver xillybus_platform_driver = { · 178 unmodified lines | ||
| 179 | 179 | .remove = xilly_drv_remove, |
| 180 | 180 | .driver = { |
| 181 | 181 | .name = xillyname, |
| 182 | − .owner = THIS_MODULE, | |
| 183 | 182 | .of_match_table = xillybus_of_match, |
| 184 | 183 | }, |
| 185 | 184 | }; |
| @@ -593,7 +593,6 @@ static struct platform_driver axmclk_driver = { · 592 unmodified lines | ||
| 593 | 593 | .remove = axmclk_remove, |
| 594 | 594 | .driver = { |
| 595 | 595 | .name = "clk-axm5516", |
| 596 | − .owner = THIS_MODULE, | |
| 597 | 596 | .of_match_table = axmclk_match_table, |
| 598 | 597 | }, |
| 599 | 598 | }; |
| @@ -294,7 +294,6 @@ static const struct of_device_id ppc_clk_ids[] __initconst = { · 293 unmodified lines | ||
| 294 | 294 | static struct platform_driver ppc_corenet_clk_driver __initdata = { |
| 295 | 295 | .driver = { |
| 296 | 296 | .name = "ppc_corenet_clock", |
| 297 | − .owner = THIS_MODULE, | |
| 298 | 297 | .of_match_table = ppc_clk_ids, |
| 299 | 298 | }, |
| 300 | 299 | .probe = ppc_corenet_clk_probe, |
| @@ -312,7 +312,6 @@ MODULE_DEVICE_TABLE(platform, s2mps11_clk_id); · 311 unmodified lines | ||
| 312 | 312 | static struct platform_driver s2mps11_clk_driver = { |
| 313 | 313 | .driver = { |
| 314 | 314 | .name = "s2mps11-clk", |
| 315 | − .owner = THIS_MODULE, | |
| 316 | 315 | }, |
| 317 | 316 | .probe = s2mps11_clk_probe, |
| 318 | 317 | .remove = s2mps11_clk_remove, |
| @@ -3589,7 +3589,6 @@ static struct platform_driver gcc_apq8084_driver = { · 3588 unmodified lines | ||
| 3589 | 3589 | .remove = gcc_apq8084_remove, |
| 3590 | 3590 | .driver = { |
| 3591 | 3591 | .name = "gcc-apq8084", |
| 3592 | − .owner = THIS_MODULE, | |
| 3593 | 3592 | .of_match_table = gcc_apq8084_match_table, |
| 3594 | 3593 | }, |
| 3595 | 3594 | }; |
| @@ -2431,7 +2431,6 @@ static struct platform_driver gcc_ipq806x_driver = { · 2430 unmodified lines | ||
| 2431 | 2431 | .remove = gcc_ipq806x_remove, |
| 2432 | 2432 | .driver = { |
| 2433 | 2433 | .name = "gcc-ipq806x", |
| 2434 | − .owner = THIS_MODULE, | |
| 2435 | 2434 | .of_match_table = gcc_ipq806x_match_table, |
| 2436 | 2435 | }, |
| 2437 | 2436 | }; |
| @@ -2744,7 +2744,6 @@ static struct platform_driver gcc_msm8660_driver = { · 2743 unmodified lines | ||
| 2744 | 2744 | .remove = gcc_msm8660_remove, |
| 2745 | 2745 | .driver = { |
| 2746 | 2746 | .name = "gcc-msm8660", |
| 2747 | − .owner = THIS_MODULE, | |
| 2748 | 2747 | .of_match_table = gcc_msm8660_match_table, |
| 2749 | 2748 | }, |
| 2750 | 2749 | }; |
| @@ -3519,7 +3519,6 @@ static struct platform_driver gcc_msm8960_driver = { · 3518 unmodified lines | ||
| 3519 | 3519 | .remove = gcc_msm8960_remove, |
| 3520 | 3520 | .driver = { |
| 3521 | 3521 | .name = "gcc-msm8960", |
| 3522 | − .owner = THIS_MODULE, | |
| 3523 | 3522 | .of_match_table = gcc_msm8960_match_table, |
| 3524 | 3523 | }, |
| 3525 | 3524 | }; |
| @@ -2737,7 +2737,6 @@ static struct platform_driver gcc_msm8974_driver = { · 2736 unmodified lines | ||
| 2737 | 2737 | .remove = gcc_msm8974_remove, |
| 2738 | 2738 | .driver = { |
| 2739 | 2739 | .name = "gcc-msm8974", |
| 2740 | − .owner = THIS_MODULE, | |
| 2741 | 2740 | .of_match_table = gcc_msm8974_match_table, |
| 2742 | 2741 | }, |
| 2743 | 2742 | }; |
| @@ -223,7 +223,6 @@ static int exynos_audss_clk_remove(struct platform_device *pdev) · 222 unmodified lines | ||
| 223 | 223 | static struct platform_driver exynos_audss_clk_driver = { |
| 224 | 224 | .driver = { |
| 225 | 225 | .name = "exynos-audss-clk", |
| 226 | − .owner = THIS_MODULE, | |
| 227 | 226 | .of_match_table = exynos_audss_clk_of_match, |
| 228 | 227 | }, |
| 229 | 228 | .probe = exynos_audss_clk_probe, |
| @@ -216,7 +216,6 @@ static const struct of_device_id s5pv210_audss_clk_of_match[] = { · 215 unmodified lines | ||
| 216 | 216 | static struct platform_driver s5pv210_audss_clk_driver = { |
| 217 | 217 | .driver = { |
| 218 | 218 | .name = "s5pv210-audss-clk", |
| 219 | − .owner = THIS_MODULE, | |
| 220 | 219 | .of_match_table = s5pv210_audss_clk_of_match, |
| 221 | 220 | }, |
| 222 | 221 | .probe = s5pv210_audss_clk_probe, |
| @@ -121,7 +121,6 @@ static int abx500_clk_probe(struct platform_device *pdev) · 120 unmodified lines | ||
| 121 | 121 | static struct platform_driver abx500_clk_driver = { |
| 122 | 122 | .driver = { |
| 123 | 123 | .name = "abx500-clk", |
| 124 | − .owner = THIS_MODULE, | |
| 125 | 124 | }, |
| 126 | 125 | .probe = abx500_clk_probe, |
| 127 | 126 | }; |
| @@ -42,7 +42,6 @@ static int lpt_clk_probe(struct platform_device *pdev) · 41 unmodified lines | ||
| 42 | 42 | static struct platform_driver lpt_clk_driver = { |
| 43 | 43 | .driver = { |
| 44 | 44 | .name = "clk-lpt", |
| 45 | − .owner = THIS_MODULE, | |
| 46 | 45 | }, |
| 47 | 46 | .probe = lpt_clk_probe, |
| 48 | 47 | }; |
| @@ -106,7 +106,6 @@ static int generic_bL_remove(struct platform_device *pdev) · 105 unmodified lines | ||
| 106 | 106 | static struct platform_driver generic_bL_platdrv = { |
| 107 | 107 | .driver = { |
| 108 | 108 | .name = "arm-bL-cpufreq-dt", |
| 109 | − .owner = THIS_MODULE, | |
| 110 | 109 | }, |
| 111 | 110 | .probe = generic_bL_probe, |
| 112 | 111 | .remove = generic_bL_remove, |
| @@ -400,7 +400,6 @@ static int dt_cpufreq_remove(struct platform_device *pdev) · 399 unmodified lines | ||
| 400 | 400 | static struct platform_driver dt_cpufreq_platdrv = { |
| 401 | 401 | .driver = { |
| 402 | 402 | .name = "cpufreq-dt", |
| 403 | − .owner = THIS_MODULE, | |
| 404 | 403 | }, |
| 405 | 404 | .probe = dt_cpufreq_probe, |
| 406 | 405 | .remove = dt_cpufreq_remove, |
| @@ -169,7 +169,6 @@ static int __exit davinci_cpufreq_remove(struct platform_device *pdev) · 168 unmodified lines | ||
| 169 | 169 | static struct platform_driver davinci_cpufreq_driver = { |
| 170 | 170 | .driver = { |
| 171 | 171 | .name = "cpufreq-davinci", |
| 172 | − .owner = THIS_MODULE, | |
| 173 | 172 | }, |
| 174 | 173 | .remove = __exit_p(davinci_cpufreq_remove), |
| 175 | 174 | }; |
| @@ -69,7 +69,6 @@ static int dbx500_cpufreq_probe(struct platform_device *pdev) · 68 unmodified lines | ||
| 69 | 69 | static struct platform_driver dbx500_cpufreq_plat_driver = { |
| 70 | 70 | .driver = { |
| 71 | 71 | .name = "cpufreq-ux500", |
| 72 | − .owner = THIS_MODULE, | |
| 73 | 72 | }, |
| 74 | 73 | .probe = dbx500_cpufreq_probe, |
| 75 | 74 | }; |
| @@ -211,7 +211,6 @@ err_vdd_arm: · 210 unmodified lines | ||
| 211 | 211 | static struct platform_driver exynos_cpufreq_platdrv = { |
| 212 | 212 | .driver = { |
| 213 | 213 | .name = "exynos-cpufreq", |
| 214 | − .owner = THIS_MODULE, | |
| 215 | 214 | }, |
| 216 | 215 | .probe = exynos_cpufreq_probe, |
| 217 | 216 | }; |
| @@ -442,7 +442,6 @@ static int exynos_cpufreq_remove(struct platform_device *pdev) · 441 unmodified lines | ||
| 442 | 442 | static struct platform_driver exynos_cpufreq_platdrv = { |
| 443 | 443 | .driver = { |
| 444 | 444 | .name = "exynos5440-cpufreq", |
| 445 | − .owner = THIS_MODULE, | |
| 446 | 445 | .of_match_table = exynos_cpufreq_match, |
| 447 | 446 | }, |
| 448 | 447 | .probe = exynos_cpufreq_probe, |
| @@ -357,7 +357,6 @@ static int imx6q_cpufreq_remove(struct platform_device *pdev) · 356 unmodified lines | ||
| 357 | 357 | static struct platform_driver imx6q_cpufreq_platdrv = { |
| 358 | 358 | .driver = { |
| 359 | 359 | .name = "imx6q-cpufreq", |
| 360 | − .owner = THIS_MODULE, | |
| 361 | 360 | }, |
| 362 | 361 | .probe = imx6q_cpufreq_probe, |
| 363 | 362 | .remove = imx6q_cpufreq_remove, |
| @@ -226,7 +226,6 @@ static const struct of_device_id integrator_cpufreq_match[] = { · 225 unmodified lines | ||
| 226 | 226 | static struct platform_driver integrator_cpufreq_driver = { |
| 227 | 227 | .driver = { |
| 228 | 228 | .name = "integrator-cpufreq", |
| 229 | − .owner = THIS_MODULE, | |
| 230 | 229 | .of_match_table = integrator_cpufreq_match, |
| 231 | 230 | }, |
| 232 | 231 | .remove = __exit_p(integrator_cpufreq_remove), |
| @@ -183,7 +183,6 @@ static struct platform_driver kirkwood_cpufreq_platform_driver = { · 182 unmodified lines | ||
| 183 | 183 | .remove = kirkwood_cpufreq_remove, |
| 184 | 184 | .driver = { |
| 185 | 185 | .name = "kirkwood-cpufreq", |
| 186 | − .owner = THIS_MODULE, | |
| 187 | 186 | }, |
| 188 | 187 | }; |
| 189 | 188 | |
| @@ -130,7 +130,6 @@ MODULE_DEVICE_TABLE(platform, platform_device_ids); · 129 unmodified lines | ||
| 130 | 130 | static struct platform_driver platform_driver = { |
| 131 | 131 | .driver = { |
| 132 | 132 | .name = "loongson2_cpufreq", |
| 133 | − .owner = THIS_MODULE, | |
| 134 | 133 | }, |
| 135 | 134 | .id_table = platform_device_ids, |
| 136 | 135 | }; |
| @@ -195,7 +195,6 @@ static int omap_cpufreq_remove(struct platform_device *pdev) · 194 unmodified lines | ||
| 195 | 195 | static struct platform_driver omap_cpufreq_platdrv = { |
| 196 | 196 | .driver = { |
| 197 | 197 | .name = "omap-cpufreq", |
| 198 | − .owner = THIS_MODULE, | |
| 199 | 198 | }, |
| 200 | 199 | .probe = omap_cpufreq_probe, |
| 201 | 200 | .remove = omap_cpufreq_remove, |
| @@ -656,7 +656,6 @@ static int s5pv210_cpufreq_probe(struct platform_device *pdev) · 655 unmodified lines | ||
| 656 | 656 | static struct platform_driver s5pv210_cpufreq_platdrv = { |
| 657 | 657 | .driver = { |
| 658 | 658 | .name = "s5pv210-cpufreq", |
| 659 | − .owner = THIS_MODULE, | |
| 660 | 659 | }, |
| 661 | 660 | .probe = s5pv210_cpufreq_probe, |
| 662 | 661 | }; |
| @@ -236,7 +236,6 @@ out_put_node: · 235 unmodified lines | ||
| 236 | 236 | static struct platform_driver spear_cpufreq_platdrv = { |
| 237 | 237 | .driver = { |
| 238 | 238 | .name = "spear-cpufreq", |
| 239 | − .owner = THIS_MODULE, | |
| 240 | 239 | }, |
| 241 | 240 | .probe = spear_cpufreq_probe, |
| 242 | 241 | }; |
| @@ -60,7 +60,6 @@ static int ve_spc_cpufreq_remove(struct platform_device *pdev) · 59 unmodified lines | ||
| 60 | 60 | static struct platform_driver ve_spc_cpufreq_platdrv = { |
| 61 | 61 | .driver = { |
| 62 | 62 | .name = "vexpress-spc-cpufreq", |
| 63 | − .owner = THIS_MODULE, | |
| 64 | 63 | }, |
| 65 | 64 | .probe = ve_spc_cpufreq_probe, |
| 66 | 65 | .remove = ve_spc_cpufreq_remove, |
| @@ -60,7 +60,6 @@ static int at91_cpuidle_probe(struct platform_device *dev) · 59 unmodified lines | ||
| 60 | 60 | static struct platform_driver at91_cpuidle_driver = { |
| 61 | 61 | .driver = { |
| 62 | 62 | .name = "cpuidle-at91", |
| 63 | − .owner = THIS_MODULE, | |
| 64 | 63 | }, |
| 65 | 64 | .probe = at91_cpuidle_probe, |
| 66 | 65 | }; |
| @@ -72,7 +72,6 @@ static int calxeda_cpuidle_probe(struct platform_device *pdev) · 71 unmodified lines | ||
| 72 | 72 | static struct platform_driver calxeda_cpuidle_plat_driver = { |
| 73 | 73 | .driver = { |
| 74 | 74 | .name = "cpuidle-calxeda", |
| 75 | − .owner = THIS_MODULE, | |
| 76 | 75 | }, |
| 77 | 76 | .probe = calxeda_cpuidle_probe, |
| 78 | 77 | }; |
| @@ -54,7 +54,6 @@ static int __init clps711x_cpuidle_probe(struct platform_device *pdev) · 53 unmodified lines | ||
| 54 | 54 | static struct platform_driver clps711x_cpuidle_driver = { |
| 55 | 55 | .driver = { |
| 56 | 56 | .name = CLPS711X_CPUIDLE_NAME, |
| 57 | − .owner = THIS_MODULE, | |
| 58 | 57 | }, |
| 59 | 58 | }; |
| 60 | 59 | module_platform_driver_probe(clps711x_cpuidle_driver, clps711x_cpuidle_probe); |
| @@ -74,7 +74,6 @@ static struct platform_driver exynos_cpuidle_driver = { · 73 unmodified lines | ||
| 74 | 74 | .probe = exynos_cpuidle_probe, |
| 75 | 75 | .driver = { |
| 76 | 76 | .name = "exynos_cpuidle", |
| 77 | − .owner = THIS_MODULE, | |
| 78 | 77 | }, |
| 79 | 78 | }; |
| 80 | 79 | |
| @@ -77,7 +77,6 @@ static struct platform_driver kirkwood_cpuidle_driver = { · 76 unmodified lines | ||
| 77 | 77 | .remove = kirkwood_cpuidle_remove, |
| 78 | 78 | .driver = { |
| 79 | 79 | .name = "kirkwood_cpuidle", |
| 80 | − .owner = THIS_MODULE, | |
| 81 | 80 | }, |
| 82 | 81 | }; |
| 83 | 82 | |
| @@ -114,7 +114,6 @@ static int mvebu_v7_cpuidle_probe(struct platform_device *pdev) · 113 unmodified lines | ||
| 114 | 114 | static struct platform_driver armadaxp_cpuidle_plat_driver = { |
| 115 | 115 | .driver = { |
| 116 | 116 | .name = "cpuidle-armada-xp", |
| 117 | − .owner = THIS_MODULE, | |
| 118 | 117 | }, |
| 119 | 118 | .probe = mvebu_v7_cpuidle_probe, |
| 120 | 119 | }; |
| @@ -124,7 +123,6 @@ module_platform_driver(armadaxp_cpuidle_plat_driver); · 3 unmodified lines | ||
| 124 | 123 | static struct platform_driver armada370_cpuidle_plat_driver = { |
| 125 | 124 | .driver = { |
| 126 | 125 | .name = "cpuidle-armada-370", |
| 127 | − .owner = THIS_MODULE, | |
| 128 | 126 | }, |
| 129 | 127 | .probe = mvebu_v7_cpuidle_probe, |
| 130 | 128 | }; |
| @@ -134,7 +132,6 @@ module_platform_driver(armada370_cpuidle_plat_driver); · 3 unmodified lines | ||
| 134 | 132 | static struct platform_driver armada38x_cpuidle_plat_driver = { |
| 135 | 133 | .driver = { |
| 136 | 134 | .name = "cpuidle-armada-38x", |
| 137 | − .owner = THIS_MODULE, | |
| 138 | 135 | }, |
| 139 | 136 | .probe = mvebu_v7_cpuidle_probe, |
| 140 | 137 | }; |
| @@ -122,7 +122,6 @@ static int dbx500_cpuidle_probe(struct platform_device *pdev) · 121 unmodified lines | ||
| 122 | 122 | static struct platform_driver dbx500_cpuidle_plat_driver = { |
| 123 | 123 | .driver = { |
| 124 | 124 | .name = "cpuidle-dbx500", |
| 125 | − .owner = THIS_MODULE, | |
| 126 | 125 | }, |
| 127 | 126 | .probe = dbx500_cpuidle_probe, |
| 128 | 127 | }; |
| @@ -71,7 +71,6 @@ static int zynq_cpuidle_probe(struct platform_device *pdev) · 70 unmodified lines | ||
| 71 | 71 | static struct platform_driver zynq_cpuidle_driver = { |
| 72 | 72 | .driver = { |
| 73 | 73 | .name = "cpuidle-zynq", |
| 74 | − .owner = THIS_MODULE, | |
| 75 | 74 | }, |
| 76 | 75 | .probe = zynq_cpuidle_probe, |
| 77 | 76 | }; |
| @@ -1288,7 +1288,6 @@ static const struct of_device_id crypto4xx_match[] = { · 1287 unmodified lines | ||
| 1288 | 1288 | static struct platform_driver crypto4xx_driver = { |
| 1289 | 1289 | .driver = { |
| 1290 | 1290 | .name = "crypto4xx", |
| 1291 | − .owner = THIS_MODULE, | |
| 1292 | 1291 | .of_match_table = crypto4xx_match, |
| 1293 | 1292 | }, |
| 1294 | 1293 | .probe = crypto4xx_probe, |
| @@ -1473,7 +1473,6 @@ static struct platform_driver atmel_aes_driver = { · 1472 unmodified lines | ||
| 1473 | 1473 | .remove = atmel_aes_remove, |
| 1474 | 1474 | .driver = { |
| 1475 | 1475 | .name = "atmel_aes", |
| 1476 | − .owner = THIS_MODULE, | |
| 1477 | 1476 | .of_match_table = of_match_ptr(atmel_aes_dt_ids), |
| 1478 | 1477 | }, |
| 1479 | 1478 | }; |
| @@ -1529,7 +1529,6 @@ static struct platform_driver atmel_sha_driver = { · 1528 unmodified lines | ||
| 1529 | 1529 | .remove = atmel_sha_remove, |
| 1530 | 1530 | .driver = { |
| 1531 | 1531 | .name = "atmel_sha", |
| 1532 | − .owner = THIS_MODULE, | |
| 1533 | 1532 | .of_match_table = of_match_ptr(atmel_sha_dt_ids), |
| 1534 | 1533 | }, |
| 1535 | 1534 | }; |
| @@ -1524,7 +1524,6 @@ static struct platform_driver atmel_tdes_driver = { · 1523 unmodified lines | ||
| 1524 | 1524 | .remove = atmel_tdes_remove, |
| 1525 | 1525 | .driver = { |
| 1526 | 1526 | .name = "atmel_tdes", |
| 1527 | − .owner = THIS_MODULE, | |
| 1528 | 1527 | .of_match_table = of_match_ptr(atmel_tdes_dt_ids), |
| 1529 | 1528 | }, |
| 1530 | 1529 | }; |
| @@ -724,7 +724,6 @@ static struct platform_driver bfin_crypto_crc_driver = { · 723 unmodified lines | ||
| 724 | 724 | .resume = bfin_crypto_crc_resume, |
| 725 | 725 | .driver = { |
| 726 | 726 | .name = DRIVER_NAME, |
| 727 | − .owner = THIS_MODULE, | |
| 728 | 727 | }, |
| 729 | 728 | }; |
| 730 | 729 | |
| @@ -720,7 +720,6 @@ MODULE_DEVICE_TABLE(of, caam_match); · 719 unmodified lines | ||
| 720 | 720 | static struct platform_driver caam_driver = { |
| 721 | 721 | .driver = { |
| 722 | 722 | .name = "caam", |
| 723 | − .owner = THIS_MODULE, | |
| 724 | 723 | .of_match_table = caam_match, |
| 725 | 724 | }, |
| 726 | 725 | .probe = caam_probe, |
| @@ -511,7 +511,6 @@ MODULE_DEVICE_TABLE(of, caam_jr_match); · 510 unmodified lines | ||
| 511 | 511 | static struct platform_driver caam_jr_driver = { |
| 512 | 512 | .driver = { |
| 513 | 513 | .name = "caam_jr", |
| 514 | − .owner = THIS_MODULE, | |
| 515 | 514 | .of_match_table = caam_jr_match, |
| 516 | 515 | }, |
| 517 | 516 | .probe = caam_jr_probe, |
| @@ -208,7 +208,6 @@ static const struct of_device_id ccp_platform_ids[] = { · 207 unmodified lines | ||
| 208 | 208 | static struct platform_driver ccp_platform_driver = { |
| 209 | 209 | .driver = { |
| 210 | 210 | .name = "AMD Cryptographic Coprocessor", |
| 211 | − .owner = THIS_MODULE, | |
| 212 | 211 | .of_match_table = ccp_platform_ids, |
| 213 | 212 | }, |
| 214 | 213 | .probe = ccp_platform_probe, |
| @@ -1180,7 +1180,6 @@ static struct platform_driver marvell_crypto = { · 1179 unmodified lines | ||
| 1180 | 1180 | .probe = mv_probe, |
| 1181 | 1181 | .remove = mv_remove, |
| 1182 | 1182 | .driver = { |
| 1183 | − .owner = THIS_MODULE, | |
| 1184 | 1183 | .name = "mv_crypto", |
| 1185 | 1184 | .of_match_table = mv_cesa_of_match_table, |
| 1186 | 1185 | }, |
| @@ -1090,7 +1090,6 @@ static struct platform_driver mxs_dcp_driver = { · 1089 unmodified lines | ||
| 1090 | 1090 | .remove = mxs_dcp_remove, |
| 1091 | 1091 | .driver = { |
| 1092 | 1092 | .name = "mxs-dcp", |
| 1093 | − .owner = THIS_MODULE, | |
| 1094 | 1093 | .of_match_table = mxs_dcp_dt_ids, |
| 1095 | 1094 | }, |
| 1096 | 1095 | }; |
| @@ -2210,7 +2210,6 @@ MODULE_DEVICE_TABLE(of, n2_crypto_match); · 2209 unmodified lines | ||
| 2210 | 2210 | static struct platform_driver n2_crypto_driver = { |
| 2211 | 2211 | .driver = { |
| 2212 | 2212 | .name = "n2cp", |
| 2213 | − .owner = THIS_MODULE, | |
| 2214 | 2213 | .of_match_table = n2_crypto_match, |
| 2215 | 2214 | }, |
| 2216 | 2215 | .probe = n2_crypto_probe, |
| @@ -2238,7 +2237,6 @@ MODULE_DEVICE_TABLE(of, n2_mau_match); · 21 unmodified lines | ||
| 2238 | 2237 | static struct platform_driver n2_mau_driver = { |
| 2239 | 2238 | .driver = { |
| 2240 | 2239 | .name = "ncp", |
| 2241 | − .owner = THIS_MODULE, | |
| 2242 | 2240 | .of_match_table = n2_mau_match, |
| 2243 | 2241 | }, |
| 2244 | 2242 | .probe = n2_mau_probe, |
| @@ -1314,7 +1314,6 @@ static struct platform_driver omap_aes_driver = { · 1313 unmodified lines | ||
| 1314 | 1314 | .remove = omap_aes_remove, |
| 1315 | 1315 | .driver = { |
| 1316 | 1316 | .name = "omap-aes", |
| 1317 | − .owner = THIS_MODULE, | |
| 1318 | 1317 | .pm = &omap_aes_pm_ops, |
| 1319 | 1318 | .of_match_table = omap_aes_of_match, |
| 1320 | 1319 | }, |
| @@ -1222,7 +1222,6 @@ static struct platform_driver omap_des_driver = { · 1221 unmodified lines | ||
| 1222 | 1222 | .remove = omap_des_remove, |
| 1223 | 1223 | .driver = { |
| 1224 | 1224 | .name = "omap-des", |
| 1225 | − .owner = THIS_MODULE, | |
| 1226 | 1225 | .pm = &omap_des_pm_ops, |
| 1227 | 1226 | .of_match_table = of_match_ptr(omap_des_of_match), |
| 1228 | 1227 | }, |
| @@ -2029,7 +2029,6 @@ static struct platform_driver omap_sham_driver = { · 2028 unmodified lines | ||
| 2029 | 2029 | .remove = omap_sham_remove, |
| 2030 | 2030 | .driver = { |
| 2031 | 2031 | .name = "omap-sham", |
| 2032 | − .owner = THIS_MODULE, | |
| 2033 | 2032 | .pm = &omap_sham_pm_ops, |
| 2034 | 2033 | .of_match_table = omap_sham_of_match, |
| 2035 | 2034 | }, |
| @@ -273,7 +273,6 @@ static struct platform_driver qce_crypto_driver = { · 272 unmodified lines | ||
| 273 | 273 | .probe = qce_crypto_probe, |
| 274 | 274 | .remove = qce_crypto_remove, |
| 275 | 275 | .driver = { |
| 276 | − .owner = THIS_MODULE, | |
| 277 | 276 | .name = KBUILD_MODNAME, |
| 278 | 277 | .of_match_table = qce_crypto_of_match, |
| 279 | 278 | }, |
| @@ -745,7 +745,6 @@ static struct platform_driver s5p_aes_crypto = { · 744 unmodified lines | ||
| 745 | 745 | .probe = s5p_aes_probe, |
| 746 | 746 | .remove = s5p_aes_remove, |
| 747 | 747 | .driver = { |
| 748 | − .owner = THIS_MODULE, | |
| 749 | 748 | .name = "s5p-secss", |
| 750 | 749 | .of_match_table = s5p_sss_dt_match, |
| 751 | 750 | }, |
| @@ -1656,7 +1656,6 @@ static struct platform_driver sahara_driver = { · 1655 unmodified lines | ||
| 1656 | 1656 | .remove = sahara_remove, |
| 1657 | 1657 | .driver = { |
| 1658 | 1658 | .name = SAHARA_NAME, |
| 1659 | − .owner = THIS_MODULE, | |
| 1660 | 1659 | .of_match_table = sahara_dt_ids, |
| 1661 | 1660 | }, |
| 1662 | 1661 | .id_table = sahara_platform_ids, |
| @@ -2811,7 +2811,6 @@ MODULE_DEVICE_TABLE(of, talitos_match); · 2810 unmodified lines | ||
| 2811 | 2811 | static struct platform_driver talitos_driver = { |
| 2812 | 2812 | .driver = { |
| 2813 | 2813 | .name = "talitos", |
| 2814 | − .owner = THIS_MODULE, | |
| 2815 | 2814 | .of_match_table = talitos_match, |
| 2816 | 2815 | }, |
| 2817 | 2816 | .probe = talitos_probe, |
| @@ -1783,7 +1783,6 @@ static struct platform_driver cryp_driver = { · 1782 unmodified lines | ||
| 1783 | 1783 | .remove = ux500_cryp_remove, |
| 1784 | 1784 | .shutdown = ux500_cryp_shutdown, |
| 1785 | 1785 | .driver = { |
| 1786 | − .owner = THIS_MODULE, | |
| 1787 | 1786 | .name = "cryp1", |
| 1788 | 1787 | .of_match_table = ux500_cryp_match, |
| 1789 | 1788 | .pm = &ux500_cryp_pm, |
| @@ -1964,7 +1964,6 @@ static struct platform_driver hash_driver = { · 1963 unmodified lines | ||
| 1964 | 1964 | .remove = ux500_hash_remove, |
| 1965 | 1965 | .shutdown = ux500_hash_shutdown, |
| 1966 | 1966 | .driver = { |
| 1967 | − .owner = THIS_MODULE, | |
| 1968 | 1967 | .name = "hash1", |
| 1969 | 1968 | .of_match_table = ux500_hash_match, |
| 1970 | 1969 | .pm = &ux500_hash_pm, |
| @@ -1034,7 +1034,6 @@ static struct platform_driver exynos4_busfreq_driver = { · 1033 unmodified lines | ||
| 1034 | 1034 | .id_table = exynos4_busfreq_id, |
| 1035 | 1035 | .driver = { |
| 1036 | 1036 | .name = "exynos4-busfreq", |
| 1037 | − .owner = THIS_MODULE, | |
| 1038 | 1037 | .pm = &exynos4_busfreq_pm_ops, |
| 1039 | 1038 | }, |
| 1040 | 1039 | }; |
| @@ -393,7 +393,6 @@ static struct platform_driver exynos5_busfreq_int_driver = { · 392 unmodified lines | ||
| 393 | 393 | .remove = exynos5_busfreq_int_remove, |
| 394 | 394 | .driver = { |
| 395 | 395 | .name = "exynos5-bus-int", |
| 396 | − .owner = THIS_MODULE, | |
| 397 | 396 | .pm = &exynos5_busfreq_int_pm_ops, |
| 398 | 397 | }, |
| 399 | 398 | }; |
| @@ -495,7 +495,6 @@ static struct platform_driver mpc52xx_bcom_of_platform_driver = { · 494 unmodified lines | ||
| 495 | 495 | .remove = mpc52xx_bcom_remove, |
| 496 | 496 | .driver = { |
| 497 | 497 | .name = DRIVER_NAME, |
| 498 | − .owner = THIS_MODULE, | |
| 499 | 498 | .of_match_table = mpc52xx_bcom_of_match, |
| 500 | 499 | }, |
| 501 | 500 | }; |
| @@ -1092,7 +1092,6 @@ static struct platform_driver edma_driver = { · 1091 unmodified lines | ||
| 1092 | 1092 | .remove = edma_remove, |
| 1093 | 1093 | .driver = { |
| 1094 | 1094 | .name = "edma-dma-engine", |
| 1095 | − .owner = THIS_MODULE, | |
| 1096 | 1095 | }, |
| 1097 | 1096 | }; |
| 1098 | 1097 | |
| @@ -966,7 +966,6 @@ MODULE_DEVICE_TABLE(of, fsl_edma_dt_ids); · 965 unmodified lines | ||
| 966 | 966 | static struct platform_driver fsl_edma_driver = { |
| 967 | 967 | .driver = { |
| 968 | 968 | .name = "fsl-edma", |
| 969 | − .owner = THIS_MODULE, | |
| 970 | 969 | .of_match_table = fsl_edma_dt_ids, |
| 971 | 970 | }, |
| 972 | 971 | .probe = fsl_edma_probe, |
| @@ -1539,7 +1539,6 @@ static const struct of_device_id fsldma_of_ids[] = { · 1538 unmodified lines | ||
| 1539 | 1539 | static struct platform_driver fsldma_of_driver = { |
| 1540 | 1540 | .driver = { |
| 1541 | 1541 | .name = "fsl-elo-dma", |
| 1542 | − .owner = THIS_MODULE, | |
| 1543 | 1542 | .of_match_table = fsldma_of_ids, |
| 1544 | 1543 | #ifdef CONFIG_PM |
| 1545 | 1544 | .pm = &fsldma_pm_ops, |
| @@ -1236,7 +1236,6 @@ static int imxdma_remove(struct platform_device *pdev) · 1235 unmodified lines | ||
| 1236 | 1236 | static struct platform_driver imxdma_driver = { |
| 1237 | 1237 | .driver = { |
| 1238 | 1238 | .name = "imx-dma", |
| 1239 | − .owner = THIS_MODULE, | |
| 1240 | 1239 | .of_match_table = imx_dma_of_dev_id, |
| 1241 | 1240 | }, |
| 1242 | 1241 | .id_table = imx_dma_devtype, |
| @@ -1783,7 +1783,6 @@ static int ipu_remove(struct platform_device *pdev) · 1782 unmodified lines | ||
| 1783 | 1783 | static struct platform_driver ipu_platform_driver = { |
| 1784 | 1784 | .driver = { |
| 1785 | 1785 | .name = "ipu-core", |
| 1786 | − .owner = THIS_MODULE, | |
| 1787 | 1786 | }, |
| 1788 | 1787 | .remove = ipu_remove, |
| 1789 | 1788 | }; |
| @@ -677,7 +677,6 @@ static struct platform_driver moxart_driver = { · 676 unmodified lines | ||
| 677 | 677 | .remove = moxart_remove, |
| 678 | 678 | .driver = { |
| 679 | 679 | .name = "moxart-dma-engine", |
| 680 | − .owner = THIS_MODULE, | |
| 681 | 680 | .of_match_table = moxart_dma_match, |
| 682 | 681 | }, |
| 683 | 682 | }; |
| @@ -1269,7 +1269,6 @@ static struct platform_driver mv_xor_driver = { · 1268 unmodified lines | ||
| 1269 | 1269 | .probe = mv_xor_probe, |
| 1270 | 1270 | .remove = mv_xor_remove, |
| 1271 | 1271 | .driver = { |
| 1272 | − .owner = THIS_MODULE, | |
| 1273 | 1272 | .name = MV_XOR_NAME, |
| 1274 | 1273 | .of_match_table = of_match_ptr(mv_xor_dt_ids), |
| 1275 | 1274 | }, |
| @@ -1231,7 +1231,6 @@ static struct platform_driver omap_dma_driver = { · 1230 unmodified lines | ||
| 1231 | 1231 | .remove = omap_dma_remove, |
| 1232 | 1232 | .driver = { |
| 1233 | 1233 | .name = "omap-dma-engine", |
| 1234 | − .owner = THIS_MODULE, | |
| 1235 | 1234 | .of_match_table = of_match_ptr(omap_dma_match), |
| 1236 | 1235 | }, |
| 1237 | 1236 | }; |
| @@ -4579,7 +4579,6 @@ static struct platform_driver ppc440spe_adma_driver = { · 4578 unmodified lines | ||
| 4579 | 4579 | .remove = ppc440spe_adma_remove, |
| 4580 | 4580 | .driver = { |
| 4581 | 4581 | .name = "PPC440SP(E)-ADMA", |
| 4582 | − .owner = THIS_MODULE, | |
| 4583 | 4582 | .of_match_table = ppc440spe_adma_of_match, |
| 4584 | 4583 | }, |
| 4585 | 4584 | }; |
| @@ -1063,7 +1063,6 @@ static const struct dev_pm_ops sa11x0_dma_pm_ops = { · 1062 unmodified lines | ||
| 1063 | 1063 | static struct platform_driver sa11x0_dma_driver = { |
| 1064 | 1064 | .driver = { |
| 1065 | 1065 | .name = "sa11x0-dma", |
| 1066 | − .owner = THIS_MODULE, | |
| 1067 | 1066 | .pm = &sa11x0_dma_pm_ops, |
| 1068 | 1067 | }, |
| 1069 | 1068 | .probe = sa11x0_dma_probe, |
| @@ -923,7 +923,6 @@ static int sh_dmae_remove(struct platform_device *pdev) · 922 unmodified lines | ||
| 923 | 923 | |
| 924 | 924 | static struct platform_driver sh_dmae_driver = { |
| 925 | 925 | .driver = { |
| 926 | − .owner = THIS_MODULE, | |
| 927 | 926 | .pm = &sh_dmae_pm, |
| 928 | 927 | .name = SH_DMAE_DRV_NAME, |
| 929 | 928 | .of_match_table = sh_dmae_of_match, |
| @@ -934,7 +934,6 @@ static struct platform_driver sirfsoc_dma_driver = { · 933 unmodified lines | ||
| 934 | 934 | .remove = sirfsoc_dma_remove, |
| 935 | 935 | .driver = { |
| 936 | 936 | .name = DRV_NAME, |
| 937 | − .owner = THIS_MODULE, | |
| 938 | 937 | .pm = &sirfsoc_dma_pm_ops, |
| 939 | 938 | .of_match_table = sirfsoc_dma_match, |
| 940 | 939 | }, |
| @@ -3750,7 +3750,6 @@ static const struct of_device_id d40_match[] = { · 3749 unmodified lines | ||
| 3750 | 3750 | |
| 3751 | 3751 | static struct platform_driver d40_driver = { |
| 3752 | 3752 | .driver = { |
| 3753 | − .owner = THIS_MODULE, | |
| 3754 | 3753 | .name = D40_NAME, |
| 3755 | 3754 | .pm = &dma40_pm_ops, |
| 3756 | 3755 | .of_match_table = d40_match, |
| @@ -245,7 +245,6 @@ static int cell_edac_remove(struct platform_device *pdev) · 244 unmodified lines | ||
| 245 | 245 | static struct platform_driver cell_edac_driver = { |
| 246 | 246 | .driver = { |
| 247 | 247 | .name = "cbe-mic", |
| 248 | − .owner = THIS_MODULE, | |
| 249 | 248 | }, |
| 250 | 249 | .probe = cell_edac_probe, |
| 251 | 250 | .remove = cell_edac_remove, |
| @@ -715,7 +715,6 @@ static struct platform_driver mpc85xx_l2_err_driver = { · 714 unmodified lines | ||
| 715 | 715 | .remove = mpc85xx_l2_err_remove, |
| 716 | 716 | .driver = { |
| 717 | 717 | .name = "mpc85xx_l2_err", |
| 718 | − .owner = THIS_MODULE, | |
| 719 | 718 | .of_match_table = mpc85xx_l2_err_of_match, |
| 720 | 719 | }, |
| 721 | 720 | }; |
| @@ -1215,7 +1214,6 @@ static struct platform_driver mpc85xx_mc_err_driver = { · 493 unmodified lines | ||
| 1215 | 1214 | .remove = mpc85xx_mc_err_remove, |
| 1216 | 1215 | .driver = { |
| 1217 | 1216 | .name = "mpc85xx_mc_err", |
| 1218 | − .owner = THIS_MODULE, | |
| 1219 | 1217 | .of_match_table = mpc85xx_mc_err_of_match, |
| 1220 | 1218 | }, |
| 1221 | 1219 | }; |
| @@ -204,7 +204,6 @@ static struct platform_driver ppc4xx_edac_driver = { · 203 unmodified lines | ||
| 204 | 204 | .probe = ppc4xx_edac_probe, |
| 205 | 205 | .remove = ppc4xx_edac_remove, |
| 206 | 206 | .driver = { |
| 207 | − .owner = THIS_MODULE, | |
| 208 | 207 | .name = PPC4XX_EDAC_MODULE_NAME, |
| 209 | 208 | .of_match_table = ppc4xx_edac_match, |
| 210 | 209 | }, |
| @@ -199,7 +199,6 @@ static int tile_edac_mc_remove(struct platform_device *pdev) · 198 unmodified lines | ||
| 199 | 199 | static struct platform_driver tile_edac_mc_driver = { |
| 200 | 200 | .driver = { |
| 201 | 201 | .name = DRV_NAME, |
| 202 | − .owner = THIS_MODULE, | |
| 203 | 202 | }, |
| 204 | 203 | .probe = tile_edac_mc_probe, |
| 205 | 204 | .remove = tile_edac_mc_remove, |
| @@ -182,7 +182,6 @@ static struct platform_driver adc_jack_driver = { · 181 unmodified lines | ||
| 182 | 182 | .remove = adc_jack_remove, |
| 183 | 183 | .driver = { |
| 184 | 184 | .name = "adc-jack", |
| 185 | − .owner = THIS_MODULE, | |
| 186 | 185 | }, |
| 187 | 186 | }; |
| 188 | 187 | |
| @@ -1469,7 +1469,6 @@ static int arizona_extcon_remove(struct platform_device *pdev) · 1468 unmodified lines | ||
| 1469 | 1469 | static struct platform_driver arizona_extcon_driver = { |
| 1470 | 1470 | .driver = { |
| 1471 | 1471 | .name = "arizona-extcon", |
| 1472 | − .owner = THIS_MODULE, | |
| 1473 | 1472 | }, |
| 1474 | 1473 | .probe = arizona_extcon_probe, |
| 1475 | 1474 | .remove = arizona_extcon_remove, |
| @@ -181,7 +181,6 @@ static struct platform_driver gpio_extcon_driver = { · 180 unmodified lines | ||
| 181 | 181 | .remove = gpio_extcon_remove, |
| 182 | 182 | .driver = { |
| 183 | 183 | .name = "extcon-gpio", |
| 184 | − .owner = THIS_MODULE, | |
| 185 | 184 | .pm = &gpio_extcon_pm_ops, |
| 186 | 185 | }, |
| 187 | 186 | }; |
| @@ -807,7 +807,6 @@ MODULE_DEVICE_TABLE(platform, max14577_muic_id); · 806 unmodified lines | ||
| 807 | 807 | static struct platform_driver max14577_muic_driver = { |
| 808 | 808 | .driver = { |
| 809 | 809 | .name = "max14577-muic", |
| 810 | − .owner = THIS_MODULE, | |
| 811 | 810 | }, |
| 812 | 811 | .probe = max14577_muic_probe, |
| 813 | 812 | .remove = max14577_muic_remove, |
| @@ -1301,7 +1301,6 @@ static int max77693_muic_remove(struct platform_device *pdev) · 1300 unmodified lines | ||
| 1301 | 1301 | static struct platform_driver max77693_muic_driver = { |
| 1302 | 1302 | .driver = { |
| 1303 | 1303 | .name = DEV_NAME, |
| 1304 | − .owner = THIS_MODULE, | |
| 1305 | 1304 | }, |
| 1306 | 1305 | .probe = max77693_muic_probe, |
| 1307 | 1306 | .remove = max77693_muic_remove, |
| @@ -792,7 +792,6 @@ static int max8997_muic_remove(struct platform_device *pdev) · 791 unmodified lines | ||
| 792 | 792 | static struct platform_driver max8997_muic_driver = { |
| 793 | 793 | .driver = { |
| 794 | 794 | .name = DEV_NAME, |
| 795 | − .owner = THIS_MODULE, | |
| 796 | 795 | }, |
| 797 | 796 | .probe = max8997_muic_probe, |
| 798 | 797 | .remove = max8997_muic_remove, |
| @@ -291,7 +291,6 @@ static struct platform_driver palmas_usb_driver = { · 290 unmodified lines | ||
| 291 | 291 | .driver = { |
| 292 | 292 | .name = "palmas-usb", |
| 293 | 293 | .of_match_table = of_palmas_match_tbl, |
| 294 | − .owner = THIS_MODULE, | |
| 295 | 294 | .pm = &palmas_pm_ops, |
| 296 | 295 | }, |
| 297 | 296 | }; |
| @@ -578,7 +578,6 @@ static int dcdbas_remove(struct platform_device *dev) · 577 unmodified lines | ||
| 578 | 578 | static struct platform_driver dcdbas_driver = { |
| 579 | 579 | .driver = { |
| 580 | 580 | .name = DRIVER_NAME, |
| 581 | − .owner = THIS_MODULE, | |
| 582 | 581 | }, |
| 583 | 582 | .probe = dcdbas_probe, |
| 584 | 583 | .remove = dcdbas_remove, |
| @@ -177,7 +177,6 @@ static int adp5520_gpio_remove(struct platform_device *pdev) · 176 unmodified lines | ||
| 177 | 177 | static struct platform_driver adp5520_gpio_driver = { |
| 178 | 178 | .driver = { |
| 179 | 179 | .name = "adp5520-gpio", |
| 180 | − .owner = THIS_MODULE, | |
| 181 | 180 | }, |
| 182 | 181 | .probe = adp5520_gpio_probe, |
| 183 | 182 | .remove = adp5520_gpio_remove, |
| @@ -668,7 +668,6 @@ err_irq_domain: · 667 unmodified lines | ||
| 668 | 668 | static struct platform_driver bcm_kona_gpio_driver = { |
| 669 | 669 | .driver = { |
| 670 | 670 | .name = "bcm-kona-gpio", |
| 671 | − .owner = THIS_MODULE, | |
| 672 | 671 | .of_match_table = bcm_kona_gpio_of_match, |
| 673 | 672 | }, |
| 674 | 673 | .probe = bcm_kona_gpio_probe, |
| @@ -87,7 +87,6 @@ MODULE_DEVICE_TABLE(of, clps711x_gpio_ids); · 86 unmodified lines | ||
| 87 | 87 | static struct platform_driver clps711x_gpio_driver = { |
| 88 | 88 | .driver = { |
| 89 | 89 | .name = "clps711x-gpio", |
| 90 | − .owner = THIS_MODULE, | |
| 91 | 90 | .of_match_table = of_match_ptr(clps711x_gpio_ids), |
| 92 | 91 | }, |
| 93 | 92 | .probe = clps711x_gpio_probe, |
| @@ -379,7 +379,6 @@ static struct platform_driver crystalcove_gpio_driver = { · 378 unmodified lines | ||
| 379 | 379 | .remove = crystalcove_gpio_remove, |
| 380 | 380 | .driver = { |
| 381 | 381 | .name = "crystal_cove_gpio", |
| 382 | − .owner = THIS_MODULE, | |
| 383 | 382 | }, |
| 384 | 383 | }; |
| 385 | 384 | |
| @@ -367,7 +367,6 @@ static int cs5535_gpio_remove(struct platform_device *pdev) · 366 unmodified lines | ||
| 367 | 367 | static struct platform_driver cs5535_gpio_driver = { |
| 368 | 368 | .driver = { |
| 369 | 369 | .name = DRV_NAME, |
| 370 | − .owner = THIS_MODULE, | |
| 371 | 370 | }, |
| 372 | 371 | .probe = cs5535_gpio_probe, |
| 373 | 372 | .remove = cs5535_gpio_remove, |
| @@ -246,7 +246,6 @@ static struct platform_driver da9052_gpio_driver = { · 245 unmodified lines | ||
| 246 | 246 | .remove = da9052_gpio_remove, |
| 247 | 247 | .driver = { |
| 248 | 248 | .name = "da9052-gpio", |
| 249 | − .owner = THIS_MODULE, | |
| 250 | 249 | }, |
| 251 | 250 | }; |
| 252 | 251 | |
| @@ -183,7 +183,6 @@ static struct platform_driver da9055_gpio_driver = { · 182 unmodified lines | ||
| 183 | 183 | .remove = da9055_gpio_remove, |
| 184 | 184 | .driver = { |
| 185 | 185 | .name = "da9055-gpio", |
| 186 | − .owner = THIS_MODULE, | |
| 187 | 186 | }, |
| 188 | 187 | }; |
| 189 | 188 | |
| @@ -614,7 +614,6 @@ static struct platform_driver davinci_gpio_driver = { · 613 unmodified lines | ||
| 614 | 614 | .probe = davinci_gpio_probe, |
| 615 | 615 | .driver = { |
| 616 | 616 | .name = "davinci_gpio", |
| 617 | − .owner = THIS_MODULE, | |
| 618 | 617 | .of_match_table = of_match_ptr(davinci_gpio_ids), |
| 619 | 618 | }, |
| 620 | 619 | }; |
| @@ -703,7 +703,6 @@ static SIMPLE_DEV_PM_OPS(dwapb_gpio_pm_ops, dwapb_gpio_suspend, · 702 unmodified lines | ||
| 703 | 703 | static struct platform_driver dwapb_gpio_driver = { |
| 704 | 704 | .driver = { |
| 705 | 705 | .name = "gpio-dwapb", |
| 706 | − .owner = THIS_MODULE, | |
| 707 | 706 | .pm = &dwapb_gpio_pm_ops, |
| 708 | 707 | .of_match_table = of_match_ptr(dwapb_of_match), |
| 709 | 708 | }, |
| @@ -423,7 +423,6 @@ static struct platform_driver em_gio_device_driver = { · 422 unmodified lines | ||
| 423 | 423 | .driver = { |
| 424 | 424 | .name = "em_gio", |
| 425 | 425 | .of_match_table = em_gio_dt_ids, |
| 426 | − .owner = THIS_MODULE, | |
| 427 | 426 | } |
| 428 | 427 | }; |
| 429 | 428 | |
| @@ -374,7 +374,6 @@ static int ep93xx_gpio_probe(struct platform_device *pdev) · 373 unmodified lines | ||
| 374 | 374 | static struct platform_driver ep93xx_gpio_driver = { |
| 375 | 375 | .driver = { |
| 376 | 376 | .name = "gpio-ep93xx", |
| 377 | − .owner = THIS_MODULE, | |
| 378 | 377 | }, |
| 379 | 378 | .probe = ep93xx_gpio_probe, |
| 380 | 379 | }; |
| @@ -417,7 +417,6 @@ err: · 416 unmodified lines | ||
| 417 | 417 | |
| 418 | 418 | static struct platform_driver f7188x_gpio_driver = { |
| 419 | 419 | .driver = { |
| 420 | − .owner = THIS_MODULE, | |
| 421 | 420 | .name = DRVNAME, |
| 422 | 421 | }, |
| 423 | 422 | .probe = f7188x_gpio_probe, |
| @@ -120,7 +120,6 @@ static int __init gef_gpio_probe(struct platform_device *pdev) · 119 unmodified lines | ||
| 120 | 120 | static struct platform_driver gef_gpio_driver = { |
| 121 | 121 | .driver = { |
| 122 | 122 | .name = "gef-gpio", |
| 123 | − .owner = THIS_MODULE, | |
| 124 | 123 | .of_match_table = gef_gpio_ids, |
| 125 | 124 | }, |
| 126 | 125 | }; |
| @@ -491,7 +491,6 @@ MODULE_DEVICE_TABLE(of, grgpio_match); · 490 unmodified lines | ||
| 491 | 491 | static struct platform_driver grgpio_driver = { |
| 492 | 492 | .driver = { |
| 493 | 493 | .name = "grgpio", |
| 494 | − .owner = THIS_MODULE, | |
| 495 | 494 | .of_match_table = grgpio_match, |
| 496 | 495 | }, |
| 497 | 496 | .probe = grgpio_probe, |
| @@ -526,7 +526,6 @@ static int ichx_gpio_remove(struct platform_device *pdev) · 525 unmodified lines | ||
| 526 | 526 | |
| 527 | 527 | static struct platform_driver ichx_gpio_driver = { |
| 528 | 528 | .driver = { |
| 529 | − .owner = THIS_MODULE, | |
| 530 | 529 | .name = DRV_NAME, |
| 531 | 530 | }, |
| 532 | 531 | .probe = ichx_gpio_probe, |
| @@ -120,7 +120,6 @@ static int iop3xx_gpio_probe(struct platform_device *pdev) · 119 unmodified lines | ||
| 120 | 120 | static struct platform_driver iop3xx_gpio_driver = { |
| 121 | 121 | .driver = { |
| 122 | 122 | .name = "gpio-iop", |
| 123 | − .owner = THIS_MODULE, | |
| 124 | 123 | }, |
| 125 | 124 | .probe = iop3xx_gpio_probe, |
| 126 | 125 | }; |
| @@ -203,7 +203,6 @@ static int ttl_remove(struct platform_device *pdev) · 202 unmodified lines | ||
| 203 | 203 | static struct platform_driver ttl_driver = { |
| 204 | 204 | .driver = { |
| 205 | 205 | .name = DRV_NAME, |
| 206 | − .owner = THIS_MODULE, | |
| 207 | 206 | }, |
| 208 | 207 | .probe = ttl_probe, |
| 209 | 208 | .remove = ttl_remove, |
| @@ -206,7 +206,6 @@ static int kempld_gpio_remove(struct platform_device *pdev) · 205 unmodified lines | ||
| 206 | 206 | static struct platform_driver kempld_gpio_driver = { |
| 207 | 207 | .driver = { |
| 208 | 208 | .name = "kempld-gpio", |
| 209 | − .owner = THIS_MODULE, | |
| 210 | 209 | }, |
| 211 | 210 | .probe = kempld_gpio_probe, |
| 212 | 211 | .remove = kempld_gpio_remove, |
| @@ -231,7 +231,6 @@ static struct platform_driver lp3943_gpio_driver = { · 230 unmodified lines | ||
| 231 | 231 | .remove = lp3943_gpio_remove, |
| 232 | 232 | .driver = { |
| 233 | 233 | .name = "lp3943-gpio", |
| 234 | − .owner = THIS_MODULE, | |
| 235 | 234 | .of_match_table = lp3943_gpio_of_match, |
| 236 | 235 | }, |
| 237 | 236 | }; |
| @@ -569,7 +569,6 @@ static const struct of_device_id lpc32xx_gpio_of_match[] = { · 568 unmodified lines | ||
| 569 | 569 | static struct platform_driver lpc32xx_gpio_driver = { |
| 570 | 570 | .driver = { |
| 571 | 571 | .name = "lpc32xx-gpio", |
| 572 | − .owner = THIS_MODULE, | |
| 573 | 572 | .of_match_table = of_match_ptr(lpc32xx_gpio_of_match), |
| 574 | 573 | }, |
| 575 | 574 | .probe = lpc32xx_gpio_probe, |
| @@ -450,7 +450,6 @@ static struct platform_driver lp_gpio_driver = { · 449 unmodified lines | ||
| 450 | 450 | .remove = lp_gpio_remove, |
| 451 | 451 | .driver = { |
| 452 | 452 | .name = "lp_gpio", |
| 453 | − .owner = THIS_MODULE, | |
| 454 | 453 | .pm = &lp_gpio_pm_ops, |
| 455 | 454 | .acpi_match_table = ACPI_PTR(lynxpoint_gpio_acpi_match), |
| 456 | 455 | }, |
| @@ -145,7 +145,6 @@ static struct platform_driver ltq_mm_driver = { · 144 unmodified lines | ||
| 145 | 145 | .probe = ltq_mm_probe, |
| 146 | 146 | .driver = { |
| 147 | 147 | .name = "gpio-mm-ltq", |
| 148 | − .owner = THIS_MODULE, | |
| 149 | 148 | .of_match_table = ltq_mm_match, |
| 150 | 149 | }, |
| 151 | 150 | }; |
| @@ -142,7 +142,6 @@ static const struct of_device_id moxart_gpio_match[] = { · 141 unmodified lines | ||
| 142 | 142 | static struct platform_driver moxart_gpio_driver = { |
| 143 | 143 | .driver = { |
| 144 | 144 | .name = "moxart-gpio", |
| 145 | − .owner = THIS_MODULE, | |
| 146 | 145 | .of_match_table = moxart_gpio_match, |
| 147 | 146 | }, |
| 148 | 147 | .probe = moxart_gpio_probe, |
| @@ -192,7 +192,6 @@ static const struct of_device_id mpc52xx_wkup_gpiochip_match[] = { · 191 unmodified lines | ||
| 192 | 192 | static struct platform_driver mpc52xx_wkup_gpiochip_driver = { |
| 193 | 193 | .driver = { |
| 194 | 194 | .name = "mpc5200-gpio-wkup", |
| 195 | − .owner = THIS_MODULE, | |
| 196 | 195 | .of_match_table = mpc52xx_wkup_gpiochip_match, |
| 197 | 196 | }, |
| 198 | 197 | .probe = mpc52xx_wkup_gpiochip_probe, |
| @@ -347,7 +346,6 @@ static const struct of_device_id mpc52xx_simple_gpiochip_match[] = { · 148 unmodified lines | ||
| 347 | 346 | static struct platform_driver mpc52xx_simple_gpiochip_driver = { |
| 348 | 347 | .driver = { |
| 349 | 348 | .name = "mpc5200-gpio", |
| 350 | − .owner = THIS_MODULE, | |
| 351 | 349 | .of_match_table = mpc52xx_simple_gpiochip_match, |
| 352 | 350 | }, |
| 353 | 351 | .probe = mpc52xx_simple_gpiochip_probe, |
| @@ -321,7 +321,6 @@ err: · 320 unmodified lines | ||
| 321 | 321 | static struct platform_driver platform_msic_gpio_driver = { |
| 322 | 322 | .driver = { |
| 323 | 323 | .name = "msic_gpio", |
| 324 | − .owner = THIS_MODULE, | |
| 325 | 324 | }, |
| 326 | 325 | .probe = platform_msic_gpio_probe, |
| 327 | 326 | }; |
| @@ -701,7 +701,6 @@ MODULE_DEVICE_TABLE(platform, gpio_msm_v1_device_ids); · 700 unmodified lines | ||
| 701 | 701 | static struct platform_driver gpio_msm_v1_driver = { |
| 702 | 702 | .driver = { |
| 703 | 703 | .name = "gpio-msm-v1", |
| 704 | − .owner = THIS_MODULE, | |
| 705 | 704 | }, |
| 706 | 705 | .probe = gpio_msm_v1_probe, |
| 707 | 706 | .id_table = gpio_msm_v1_device_ids, |
| @@ -450,7 +450,6 @@ static struct platform_driver msm_gpio_driver = { · 449 unmodified lines | ||
| 450 | 450 | .remove = msm_gpio_remove, |
| 451 | 451 | .driver = { |
| 452 | 452 | .name = "msmgpio", |
| 453 | − .owner = THIS_MODULE, | |
| 454 | 453 | .of_match_table = msm_gpio_of_match, |
| 455 | 454 | }, |
| 456 | 455 | }; |
| @@ -828,7 +828,6 @@ static int mvebu_gpio_probe(struct platform_device *pdev) · 827 unmodified lines | ||
| 828 | 828 | static struct platform_driver mvebu_gpio_driver = { |
| 829 | 829 | .driver = { |
| 830 | 830 | .name = "mvebu-gpio", |
| 831 | − .owner = THIS_MODULE, | |
| 832 | 831 | .of_match_table = mvebu_gpio_of_match, |
| 833 | 832 | }, |
| 834 | 833 | .probe = mvebu_gpio_probe, |
| @@ -496,7 +496,6 @@ out_bgio: · 495 unmodified lines | ||
| 496 | 496 | static struct platform_driver mxc_gpio_driver = { |
| 497 | 497 | .driver = { |
| 498 | 498 | .name = "gpio-mxc", |
| 499 | − .owner = THIS_MODULE, | |
| 500 | 499 | .of_match_table = mxc_gpio_dt_ids, |
| 501 | 500 | }, |
| 502 | 501 | .probe = mxc_gpio_probe, |
| @@ -351,7 +351,6 @@ out_irqdesc_free: · 350 unmodified lines | ||
| 351 | 351 | static struct platform_driver mxs_gpio_driver = { |
| 352 | 352 | .driver = { |
| 353 | 353 | .name = "gpio-mxs", |
| 354 | − .owner = THIS_MODULE, | |
| 355 | 354 | .of_match_table = mxs_gpio_dt_ids, |
| 356 | 355 | }, |
| 357 | 356 | .probe = mxs_gpio_probe, |
| @@ -144,7 +144,6 @@ MODULE_DEVICE_TABLE(of, octeon_gpio_match); · 143 unmodified lines | ||
| 144 | 144 | static struct platform_driver octeon_gpio_driver = { |
| 145 | 145 | .driver = { |
| 146 | 146 | .name = "octeon_gpio", |
| 147 | − .owner = THIS_MODULE, | |
| 148 | 147 | .of_match_table = octeon_gpio_match, |
| 149 | 148 | }, |
| 150 | 149 | .probe = octeon_gpio_probe, |
| @@ -155,7 +155,6 @@ static int rc5t583_gpio_remove(struct platform_device *pdev) · 154 unmodified lines | ||
| 155 | 155 | static struct platform_driver rc5t583_gpio_driver = { |
| 156 | 156 | .driver = { |
| 157 | 157 | .name = "rc5t583-gpio", |
| 158 | − .owner = THIS_MODULE, | |
| 159 | 158 | }, |
| 160 | 159 | .probe = rc5t583_gpio_probe, |
| 161 | 160 | .remove = rc5t583_gpio_remove, |
| @@ -250,7 +250,6 @@ static int sch_gpio_remove(struct platform_device *pdev) · 249 unmodified lines | ||
| 250 | 250 | static struct platform_driver sch_gpio_driver = { |
| 251 | 251 | .driver = { |
| 252 | 252 | .name = "sch_gpio", |
| 253 | − .owner = THIS_MODULE, | |
| 254 | 253 | }, |
| 255 | 254 | .probe = sch_gpio_probe, |
| 256 | 255 | .remove = sch_gpio_remove, |
| @@ -191,7 +191,6 @@ MODULE_DEVICE_TABLE(of, spics_gpio_of_match); · 190 unmodified lines | ||
| 191 | 191 | static struct platform_driver spics_gpio_driver = { |
| 192 | 192 | .probe = spics_gpio_probe, |
| 193 | 193 | .driver = { |
| 194 | − .owner = THIS_MODULE, | |
| 195 | 194 | .name = "spear-spics-gpio", |
| 196 | 195 | .of_match_table = spics_gpio_of_match, |
| 197 | 196 | }, |
| @@ -429,7 +429,6 @@ err_free_descs: · 428 unmodified lines | ||
| 429 | 429 | static struct platform_driver sta2x11_gpio_platform_driver = { |
| 430 | 430 | .driver = { |
| 431 | 431 | .name = "sta2x11-gpio", |
| 432 | − .owner = THIS_MODULE, | |
| 433 | 432 | }, |
| 434 | 433 | .probe = gsta_probe, |
| 435 | 434 | }; |
| @@ -283,7 +283,6 @@ static struct platform_driver xway_stp_driver = { · 282 unmodified lines | ||
| 283 | 283 | .probe = xway_stp_probe, |
| 284 | 284 | .driver = { |
| 285 | 285 | .name = "gpio-stp-xway", |
| 286 | − .owner = THIS_MODULE, | |
| 287 | 286 | .of_match_table = xway_stp_match, |
| 288 | 287 | }, |
| 289 | 288 | }; |
| @@ -253,7 +253,6 @@ static int syscon_gpio_remove(struct platform_device *pdev) · 252 unmodified lines | ||
| 253 | 253 | static struct platform_driver syscon_gpio_driver = { |
| 254 | 254 | .driver = { |
| 255 | 255 | .name = "gpio-syscon", |
| 256 | − .owner = THIS_MODULE, | |
| 257 | 256 | .of_match_table = syscon_gpio_ids, |
| 258 | 257 | }, |
| 259 | 258 | .probe = syscon_gpio_probe, |
| @@ -311,7 +311,6 @@ static struct platform_driver tb10x_gpio_driver = { · 310 unmodified lines | ||
| 311 | 311 | .driver = { |
| 312 | 312 | .name = "tb10x-gpio", |
| 313 | 313 | .of_match_table = tb10x_gpio_dt_ids, |
| 314 | − .owner = THIS_MODULE, | |
| 315 | 314 | } |
| 316 | 315 | }; |
| 317 | 316 | |
| @@ -528,7 +528,6 @@ static int tegra_gpio_probe(struct platform_device *pdev) · 527 unmodified lines | ||
| 528 | 528 | static struct platform_driver tegra_gpio_driver = { |
| 529 | 529 | .driver = { |
| 530 | 530 | .name = "tegra-gpio", |
| 531 | − .owner = THIS_MODULE, | |
| 532 | 531 | .pm = &tegra_gpio_pm_ops, |
| 533 | 532 | .of_match_table = tegra_gpio_of_match, |
| 534 | 533 | }, |
| @@ -330,7 +330,6 @@ static int timbgpio_remove(struct platform_device *pdev) · 329 unmodified lines | ||
| 330 | 330 | static struct platform_driver timbgpio_platform_driver = { |
| 331 | 331 | .driver = { |
| 332 | 332 | .name = DRIVER_NAME, |
| 333 | − .owner = THIS_MODULE, | |
| 334 | 333 | }, |
| 335 | 334 | .probe = timbgpio_probe, |
| 336 | 335 | .remove = timbgpio_remove, |
| @@ -124,7 +124,6 @@ static int tps65912_gpio_remove(struct platform_device *pdev) · 123 unmodified lines | ||
| 124 | 124 | static struct platform_driver tps65912_gpio_driver = { |
| 125 | 125 | .driver = { |
| 126 | 126 | .name = "tps65912-gpio", |
| 127 | − .owner = THIS_MODULE, | |
| 128 | 127 | }, |
| 129 | 128 | .probe = tps65912_gpio_probe, |
| 130 | 129 | .remove = tps65912_gpio_remove, |
| @@ -452,7 +452,6 @@ MODULE_DEVICE_TABLE(platform, ts5500_dio_ids); · 451 unmodified lines | ||
| 452 | 452 | static struct platform_driver ts5500_dio_driver = { |
| 453 | 453 | .driver = { |
| 454 | 454 | .name = "ts5500-dio", |
| 455 | − .owner = THIS_MODULE, | |
| 456 | 455 | }, |
| 457 | 456 | .probe = ts5500_dio_probe, |
| 458 | 457 | .remove = ts5500_dio_remove, |
| @@ -605,7 +605,6 @@ MODULE_ALIAS("platform:twl4030_gpio"); · 604 unmodified lines | ||
| 605 | 605 | static struct platform_driver gpio_twl4030_driver = { |
| 606 | 606 | .driver = { |
| 607 | 607 | .name = "twl4030_gpio", |
| 608 | − .owner = THIS_MODULE, | |
| 609 | 608 | .of_match_table = twl_gpio_match, |
| 610 | 609 | }, |
| 611 | 610 | .probe = gpio_twl4030_probe, |
| @@ -121,7 +121,6 @@ MODULE_ALIAS("platform:twl6040-gpo"); · 120 unmodified lines | ||
| 121 | 121 | static struct platform_driver gpo_twl6040_driver = { |
| 122 | 122 | .driver = { |
| 123 | 123 | .name = "twl6040-gpo", |
| 124 | − .owner = THIS_MODULE, | |
| 125 | 124 | }, |
| 126 | 125 | .probe = gpo_twl6040_probe, |
| 127 | 126 | .remove = gpo_twl6040_remove, |
| @@ -230,7 +230,6 @@ static struct of_device_id tz1090_pdc_gpio_of_match[] = { · 229 unmodified lines | ||
| 230 | 230 | static struct platform_driver tz1090_pdc_gpio_driver = { |
| 231 | 231 | .driver = { |
| 232 | 232 | .name = "tz1090-pdc-gpio", |
| 233 | − .owner = THIS_MODULE, | |
| 234 | 233 | .of_match_table = tz1090_pdc_gpio_of_match, |
| 235 | 234 | }, |
| 236 | 235 | .probe = tz1090_pdc_gpio_probe, |
| @@ -593,7 +593,6 @@ static struct of_device_id tz1090_gpio_of_match[] = { · 592 unmodified lines | ||
| 593 | 593 | static struct platform_driver tz1090_gpio_driver = { |
| 594 | 594 | .driver = { |
| 595 | 595 | .name = "tz1090-gpio", |
| 596 | − .owner = THIS_MODULE, | |
| 597 | 596 | .of_match_table = tz1090_gpio_of_match, |
| 598 | 597 | }, |
| 599 | 598 | .probe = tz1090_gpio_probe, |
| @@ -591,7 +591,6 @@ static struct platform_driver giu_device_driver = { · 590 unmodified lines | ||
| 591 | 591 | .remove = giu_remove, |
| 592 | 592 | .driver = { |
| 593 | 593 | .name = "GIU", |
| 594 | − .owner = THIS_MODULE, | |
| 595 | 594 | }, |
| 596 | 595 | }; |
| 597 | 596 | |
| @@ -306,7 +306,6 @@ static int vx855gpio_remove(struct platform_device *pdev) · 305 unmodified lines | ||
| 306 | 306 | static struct platform_driver vx855gpio_driver = { |
| 307 | 307 | .driver = { |
| 308 | 308 | .name = MODULE_NAME, |
| 309 | − .owner = THIS_MODULE, | |
| 310 | 309 | }, |
| 311 | 310 | .probe = vx855gpio_probe, |
| 312 | 311 | .remove = vx855gpio_remove, |
| @@ -229,7 +229,6 @@ MODULE_DEVICE_TABLE(of, xgene_gpio_of_match); · 228 unmodified lines | ||
| 229 | 229 | static struct platform_driver xgene_gpio_driver = { |
| 230 | 230 | .driver = { |
| 231 | 231 | .name = "xgene-gpio", |
| 232 | − .owner = THIS_MODULE, | |
| 233 | 232 | .of_match_table = xgene_gpio_of_match, |
| 234 | 233 | .pm = XGENE_GPIO_PM_OPS, |
| 235 | 234 | }, |
| @@ -157,7 +157,6 @@ static int xtensa_gpio_probe(struct platform_device *pdev) · 156 unmodified lines | ||
| 157 | 157 | static struct platform_driver xtensa_gpio_driver = { |
| 158 | 158 | .driver = { |
| 159 | 159 | .name = "xtensa-gpio", |
| 160 | − .owner = THIS_MODULE, | |
| 161 | 160 | }, |
| 162 | 161 | .probe = xtensa_gpio_probe, |
| 163 | 162 | }; |
| @@ -212,7 +212,6 @@ MODULE_DEVICE_TABLE(of, zevio_gpio_of_match); · 211 unmodified lines | ||
| 212 | 212 | static struct platform_driver zevio_gpio_driver = { |
| 213 | 213 | .driver = { |
| 214 | 214 | .name = "gpio-zevio", |
| 215 | − .owner = THIS_MODULE, | |
| 216 | 215 | .of_match_table = zevio_gpio_of_match, |
| 217 | 216 | }, |
| 218 | 217 | .probe = zevio_gpio_probe, |
| @@ -486,7 +486,6 @@ static struct platform_driver armada_drm_platform_driver = { · 485 unmodified lines | ||
| 486 | 486 | .remove = armada_drm_remove, |
| 487 | 487 | .driver = { |
| 488 | 488 | .name = "armada-drm", |
| 489 | − .owner = THIS_MODULE, | |
| 490 | 489 | }, |
| 491 | 490 | .id_table = armada_drm_platform_ids, |
| 492 | 491 | }; |
| @@ -736,7 +736,6 @@ static struct platform_driver exynos_drm_platform_driver = { · 735 unmodified lines | ||
| 736 | 736 | .probe = exynos_drm_platform_probe, |
| 737 | 737 | .remove = exynos_drm_platform_remove, |
| 738 | 738 | .driver = { |
| 739 | − .owner = THIS_MODULE, | |
| 740 | 739 | .name = "exynos-drm", |
| 741 | 740 | .pm = &exynos_drm_pm_ops, |
| 742 | 741 | }, |
| @@ -987,7 +987,6 @@ static struct platform_driver msm_platform_driver = { · 986 unmodified lines | ||
| 987 | 987 | .probe = msm_pdev_probe, |
| 988 | 988 | .remove = msm_pdev_remove, |
| 989 | 989 | .driver = { |
| 990 | − .owner = THIS_MODULE, | |
| 991 | 990 | .name = "msm", |
| 992 | 991 | .of_match_table = dt_match, |
| 993 | 992 | .pm = &msm_pm_ops, |
| @@ -718,7 +718,6 @@ static const struct dev_pm_ops omapdrm_pm_ops = { · 717 unmodified lines | ||
| 718 | 718 | static struct platform_driver pdev = { |
| 719 | 719 | .driver = { |
| 720 | 720 | .name = DRIVER_NAME, |
| 721 | − .owner = THIS_MODULE, | |
| 722 | 721 | #ifdef CONFIG_PM |
| 723 | 722 | .pm = &omapdrm_pm_ops, |
| 724 | 723 | #endif |
| @@ -708,7 +708,6 @@ static void panel_simple_platform_shutdown(struct platform_device *pdev) · 707 unmodified lines | ||
| 708 | 708 | static struct platform_driver panel_simple_platform_driver = { |
| 709 | 709 | .driver = { |
| 710 | 710 | .name = "panel-simple", |
| 711 | − .owner = THIS_MODULE, | |
| 712 | 711 | .of_match_table = platform_of_match, |
| 713 | 712 | }, |
| 714 | 713 | .probe = panel_simple_platform_probe, |
| @@ -330,7 +330,6 @@ static struct platform_driver rcar_du_platform_driver = { · 329 unmodified lines | ||
| 330 | 330 | .probe = rcar_du_probe, |
| 331 | 331 | .remove = rcar_du_remove, |
| 332 | 332 | .driver = { |
| 333 | − .owner = THIS_MODULE, | |
| 334 | 333 | .name = "rcar-du", |
| 335 | 334 | .pm = &rcar_du_pm_ops, |
| 336 | 335 | .of_match_table = rcar_du_of_table, |
| @@ -348,7 +348,6 @@ static struct platform_driver shmob_drm_platform_driver = { · 347 unmodified lines | ||
| 348 | 348 | .probe = shmob_drm_probe, |
| 349 | 349 | .remove = shmob_drm_remove, |
| 350 | 350 | .driver = { |
| 351 | − .owner = THIS_MODULE, | |
| 352 | 351 | .name = "shmob-drm", |
| 353 | 352 | .pm = &shmob_drm_pm_ops, |
| 354 | 353 | }, |
| @@ -267,7 +267,6 @@ static int sti_compositor_remove(struct platform_device *pdev) · 266 unmodified lines | ||
| 267 | 267 | static struct platform_driver sti_compositor_driver = { |
| 268 | 268 | .driver = { |
| 269 | 269 | .name = "sti-compositor", |
| 270 | − .owner = THIS_MODULE, | |
| 271 | 270 | .of_match_table = compositor_of_match, |
| 272 | 271 | }, |
| 273 | 272 | .probe = sti_compositor_probe, |
| @@ -184,7 +184,6 @@ static struct platform_driver sti_drm_master_driver = { · 183 unmodified lines | ||
| 184 | 184 | .probe = sti_drm_master_probe, |
| 185 | 185 | .remove = sti_drm_master_remove, |
| 186 | 186 | .driver = { |
| 187 | − .owner = THIS_MODULE, | |
| 188 | 187 | .name = DRIVER_NAME "__master", |
| 189 | 188 | }, |
| 190 | 189 | }; |
| @@ -228,7 +227,6 @@ static struct platform_driver sti_drm_platform_driver = { · 37 unmodified lines | ||
| 228 | 227 | .probe = sti_drm_platform_probe, |
| 229 | 228 | .remove = sti_drm_platform_remove, |
| 230 | 229 | .driver = { |
| 231 | − .owner = THIS_MODULE, | |
| 232 | 230 | .name = DRIVER_NAME, |
| 233 | 231 | .of_match_table = sti_drm_dt_ids, |
| 234 | 232 | }, |
| @@ -645,7 +645,6 @@ static struct platform_driver tilcdc_platform_driver = { · 644 unmodified lines | ||
| 645 | 645 | .probe = tilcdc_pdev_probe, |
| 646 | 646 | .remove = tilcdc_pdev_remove, |
| 647 | 647 | .driver = { |
| 648 | − .owner = THIS_MODULE, | |
| 649 | 648 | .name = "tilcdc", |
| 650 | 649 | .pm = &tilcdc_pm_ops, |
| 651 | 650 | .of_match_table = tilcdc_of_match, |
| @@ -610,7 +610,6 @@ static struct platform_driver ssi_pdriver = { · 609 unmodified lines | ||
| 610 | 610 | .remove = __exit_p(ssi_remove), |
| 611 | 611 | .driver = { |
| 612 | 612 | .name = "omap_ssi", |
| 613 | − .owner = THIS_MODULE, | |
| 614 | 613 | .pm = DEV_PM_OPS, |
| 615 | 614 | .of_match_table = omap_ssi_of_match, |
| 616 | 615 | }, |
| @@ -1385,7 +1385,6 @@ static struct platform_driver ssi_port_pdriver = { · 1384 unmodified lines | ||
| 1385 | 1385 | .remove = __exit_p(ssi_port_remove), |
| 1386 | 1386 | .driver = { |
| 1387 | 1387 | .name = "omap_ssi_port", |
| 1388 | − .owner = THIS_MODULE, | |
| 1389 | 1388 | .of_match_table = omap_ssi_port_of_match, |
| 1390 | 1389 | .pm = DEV_PM_OPS, |
| 1391 | 1390 | }, |
| @@ -1547,7 +1547,6 @@ static SIMPLE_DEV_PM_OPS(abituguru_pm, abituguru_suspend, abituguru_resume); · 1546 unmodified lines | ||
| 1547 | 1547 | |
| 1548 | 1548 | static struct platform_driver abituguru_driver = { |
| 1549 | 1549 | .driver = { |
| 1550 | − .owner = THIS_MODULE, | |
| 1551 | 1550 | .name = ABIT_UGURU_NAME, |
| 1552 | 1551 | .pm = ABIT_UGURU_PM, |
| 1553 | 1552 | }, |
| @@ -1167,7 +1167,6 @@ static SIMPLE_DEV_PM_OPS(abituguru3_pm, abituguru3_suspend, abituguru3_resume); · 1166 unmodified lines | ||
| 1167 | 1167 | |
| 1168 | 1168 | static struct platform_driver abituguru3_driver = { |
| 1169 | 1169 | .driver = { |
| 1170 | − .owner = THIS_MODULE, | |
| 1171 | 1170 | .name = ABIT_UGURU3_NAME, |
| 1172 | 1171 | .pm = ABIT_UGURU3_PM |
| 1173 | 1172 | }, |
| @@ -474,7 +474,6 @@ static const struct of_device_id abx500_temp_match[] = { · 473 unmodified lines | ||
| 474 | 474 | |
| 475 | 475 | static struct platform_driver abx500_temp_driver = { |
| 476 | 476 | .driver = { |
| 477 | − .owner = THIS_MODULE, | |
| 478 | 477 | .name = "abx500-temp", |
| 479 | 478 | .of_match_table = of_match_ptr(abx500_temp_match), |
| 480 | 479 | }, |
| @@ -676,7 +676,6 @@ static struct platform_driver applesmc_driver = { · 675 unmodified lines | ||
| 676 | 676 | .probe = applesmc_probe, |
| 677 | 677 | .driver = { |
| 678 | 678 | .name = "applesmc", |
| 679 | − .owner = THIS_MODULE, | |
| 680 | 679 | .pm = &applesmc_pm_ops, |
| 681 | 680 | }, |
| 682 | 681 | }; |
| @@ -596,7 +596,6 @@ static int coretemp_remove(struct platform_device *pdev) · 595 unmodified lines | ||
| 596 | 596 | |
| 597 | 597 | static struct platform_driver coretemp_driver = { |
| 598 | 598 | .driver = { |
| 599 | − .owner = THIS_MODULE, | |
| 600 | 599 | .name = DRVNAME, |
| 601 | 600 | }, |
| 602 | 601 | .probe = coretemp_probe, |
| @@ -282,7 +282,6 @@ static struct platform_driver da9052_hwmon_driver = { · 281 unmodified lines | ||
| 282 | 282 | .probe = da9052_hwmon_probe, |
| 283 | 283 | .driver = { |
| 284 | 284 | .name = "da9052-hwmon", |
| 285 | − .owner = THIS_MODULE, | |
| 286 | 285 | }, |
| 287 | 286 | }; |
| 288 | 287 | |
| @@ -286,7 +286,6 @@ static struct platform_driver da9055_hwmon_driver = { · 285 unmodified lines | ||
| 286 | 286 | .probe = da9055_hwmon_probe, |
| 287 | 287 | .driver = { |
| 288 | 288 | .name = "da9055-hwmon", |
| 289 | − .owner = THIS_MODULE, | |
| 290 | 289 | }, |
| 291 | 290 | }; |
| 292 | 291 | |
| @@ -2732,7 +2732,6 @@ static int dme1737_isa_remove(struct platform_device *pdev) · 2731 unmodified lines | ||
| 2732 | 2732 | |
| 2733 | 2733 | static struct platform_driver dme1737_isa_driver = { |
| 2734 | 2734 | .driver = { |
| 2735 | − .owner = THIS_MODULE, | |
| 2736 | 2735 | .name = "dme1737", |
| 2737 | 2736 | }, |
| 2738 | 2737 | .probe = dme1737_isa_probe, |
| @@ -1503,7 +1503,6 @@ static int f71805f_remove(struct platform_device *pdev) · 1502 unmodified lines | ||
| 1503 | 1503 | |
| 1504 | 1504 | static struct platform_driver f71805f_driver = { |
| 1505 | 1505 | .driver = { |
| 1506 | − .owner = THIS_MODULE, | |
| 1507 | 1506 | .name = DRVNAME, |
| 1508 | 1507 | }, |
| 1509 | 1508 | .probe = f71805f_probe, |
| @@ -369,7 +369,6 @@ static int f71882fg_remove(struct platform_device *pdev); · 368 unmodified lines | ||
| 369 | 369 | |
| 370 | 370 | static struct platform_driver f71882fg_driver = { |
| 371 | 371 | .driver = { |
| 372 | − .owner = THIS_MODULE, | |
| 373 | 372 | .name = DRVNAME, |
| 374 | 373 | }, |
| 375 | 374 | .probe = f71882fg_probe, |
| @@ -581,7 +581,6 @@ static int i5k_amb_remove(struct platform_device *pdev) · 580 unmodified lines | ||
| 581 | 581 | |
| 582 | 582 | static struct platform_driver i5k_amb_driver = { |
| 583 | 583 | .driver = { |
| 584 | − .owner = THIS_MODULE, | |
| 585 | 584 | .name = DRVNAME, |
| 586 | 585 | }, |
| 587 | 586 | .probe = i5k_amb_probe, |
| @@ -313,7 +313,6 @@ static struct platform_driver ibmpowernv_driver = { · 312 unmodified lines | ||
| 313 | 313 | .probe = ibmpowernv_probe, |
| 314 | 314 | .id_table = opal_sensor_driver_ids, |
| 315 | 315 | .driver = { |
| 316 | − .owner = THIS_MODULE, | |
| 317 | 316 | .name = DRVNAME, |
| 318 | 317 | }, |
| 319 | 318 | }; |
| @@ -177,7 +177,6 @@ MODULE_DEVICE_TABLE(of, iio_hwmon_of_match); · 176 unmodified lines | ||
| 177 | 177 | static struct platform_driver __refdata iio_hwmon_driver = { |
| 178 | 178 | .driver = { |
| 179 | 179 | .name = "iio_hwmon", |
| 180 | − .owner = THIS_MODULE, | |
| 181 | 180 | .of_match_table = iio_hwmon_of_match, |
| 182 | 181 | }, |
| 183 | 182 | .probe = iio_hwmon_probe, |
| @@ -498,7 +498,6 @@ static void it87_init_device(struct platform_device *pdev); · 497 unmodified lines | ||
| 498 | 498 | |
| 499 | 499 | static struct platform_driver it87_driver = { |
| 500 | 500 | .driver = { |
| 501 | − .owner = THIS_MODULE, | |
| 502 | 501 | .name = DRVNAME, |
| 503 | 502 | }, |
| 504 | 503 | .probe = it87_probe, |
| @@ -172,7 +172,6 @@ static struct platform_driver jz4740_hwmon_driver = { · 171 unmodified lines | ||
| 172 | 172 | .remove = jz4740_hwmon_remove, |
| 173 | 173 | .driver = { |
| 174 | 174 | .name = "jz4740-hwmon", |
| 175 | − .owner = THIS_MODULE, | |
| 176 | 175 | }, |
| 177 | 176 | }; |
| 178 | 177 | |
| @@ -836,7 +836,6 @@ static int lm78_isa_probe(struct platform_device *pdev) · 835 unmodified lines | ||
| 836 | 836 | |
| 837 | 837 | static struct platform_driver lm78_isa_driver = { |
| 838 | 838 | .driver = { |
| 839 | − .owner = THIS_MODULE, | |
| 840 | 839 | .name = "lm78", |
| 841 | 840 | }, |
| 842 | 841 | .probe = lm78_isa_probe, |
| @@ -334,7 +334,6 @@ MODULE_DEVICE_TABLE(platform, max197_device_ids); · 333 unmodified lines | ||
| 334 | 334 | static struct platform_driver max197_driver = { |
| 335 | 335 | .driver = { |
| 336 | 336 | .name = "max197", |
| 337 | − .owner = THIS_MODULE, | |
| 338 | 337 | }, |
| 339 | 338 | .probe = max197_probe, |
| 340 | 339 | .remove = max197_remove, |
| @@ -267,7 +267,6 @@ MODULE_DEVICE_TABLE(platform, mc13783_adc_idtable); · 266 unmodified lines | ||
| 267 | 267 | static struct platform_driver mc13783_adc_driver = { |
| 268 | 268 | .remove = mc13783_adc_remove, |
| 269 | 269 | .driver = { |
| 270 | − .owner = THIS_MODULE, | |
| 271 | 270 | .name = DRIVER_NAME, |
| 272 | 271 | }, |
| 273 | 272 | .id_table = mc13783_adc_idtable, |
| @@ -219,7 +219,6 @@ static struct platform_driver menf21bmc_hwmon = { · 218 unmodified lines | ||
| 219 | 219 | .probe = menf21bmc_hwmon_probe, |
| 220 | 220 | .driver = { |
| 221 | 221 | .name = DRV_NAME, |
| 222 | − .owner = THIS_MODULE, | |
| 223 | 222 | }, |
| 224 | 223 | }; |
| 225 | 224 | |
| @@ -1282,7 +1282,6 @@ static const struct dev_pm_ops nct6683_dev_pm_ops = { · 1281 unmodified lines | ||
| 1282 | 1282 | |
| 1283 | 1283 | static struct platform_driver nct6683_driver = { |
| 1284 | 1284 | .driver = { |
| 1285 | − .owner = THIS_MODULE, | |
| 1286 | 1285 | .name = DRVNAME, |
| 1287 | 1286 | .pm = NCT6683_DEV_PM_OPS, |
| 1288 | 1287 | }, |
| @@ -4080,7 +4080,6 @@ static const struct dev_pm_ops nct6775_dev_pm_ops = { · 4079 unmodified lines | ||
| 4080 | 4080 | |
| 4081 | 4081 | static struct platform_driver nct6775_driver = { |
| 4082 | 4082 | .driver = { |
| 4083 | − .owner = THIS_MODULE, | |
| 4084 | 4083 | .name = DRVNAME, |
| 4085 | 4084 | .pm = NCT6775_DEV_PM_OPS, |
| 4086 | 4085 | }, |
| @@ -609,7 +609,6 @@ static int ntc_thermistor_remove(struct platform_device *pdev) · 608 unmodified lines | ||
| 609 | 609 | static struct platform_driver ntc_thermistor_driver = { |
| 610 | 610 | .driver = { |
| 611 | 611 | .name = "ntc-thermistor", |
| 612 | − .owner = THIS_MODULE, | |
| 613 | 612 | .of_match_table = of_match_ptr(ntc_match), |
| 614 | 613 | }, |
| 615 | 614 | .probe = ntc_thermistor_probe, |
| @@ -244,7 +244,6 @@ static struct pc87360_data *pc87360_update_device(struct device *dev); · 243 unmodified lines | ||
| 244 | 244 | |
| 245 | 245 | static struct platform_driver pc87360_driver = { |
| 246 | 246 | .driver = { |
| 247 | − .owner = THIS_MODULE, | |
| 248 | 247 | .name = "pc87360", |
| 249 | 248 | }, |
| 250 | 249 | .probe = pc87360_probe, |
| @@ -1153,7 +1153,6 @@ static int pc87427_remove(struct platform_device *pdev) · 1152 unmodified lines | ||
| 1153 | 1153 | |
| 1154 | 1154 | static struct platform_driver pc87427_driver = { |
| 1155 | 1155 | .driver = { |
| 1156 | − .owner = THIS_MODULE, | |
| 1157 | 1156 | .name = DRVNAME, |
| 1158 | 1157 | }, |
| 1159 | 1158 | .probe = pc87427_probe, |
| @@ -378,7 +378,6 @@ static int s3c_hwmon_remove(struct platform_device *dev) · 377 unmodified lines | ||
| 378 | 378 | static struct platform_driver s3c_hwmon_driver = { |
| 379 | 379 | .driver = { |
| 380 | 380 | .name = "s3c-hwmon", |
| 381 | − .owner = THIS_MODULE, | |
| 382 | 381 | }, |
| 383 | 382 | .probe = s3c_hwmon_probe, |
| 384 | 383 | .remove = s3c_hwmon_remove, |
| @@ -591,7 +591,6 @@ error: · 590 unmodified lines | ||
| 591 | 591 | |
| 592 | 592 | static struct platform_driver sch5627_driver = { |
| 593 | 593 | .driver = { |
| 594 | − .owner = THIS_MODULE, | |
| 595 | 594 | .name = DRVNAME, |
| 596 | 595 | }, |
| 597 | 596 | .probe = sch5627_probe, |
| @@ -521,7 +521,6 @@ error: · 520 unmodified lines | ||
| 521 | 521 | |
| 522 | 522 | static struct platform_driver sch5636_driver = { |
| 523 | 523 | .driver = { |
| 524 | − .owner = THIS_MODULE, | |
| 525 | 524 | .name = DRVNAME, |
| 526 | 525 | }, |
| 527 | 526 | .probe = sch5636_probe, |
| @@ -1087,7 +1087,6 @@ MODULE_DEVICE_TABLE(platform, sht15_device_ids); · 1086 unmodified lines | ||
| 1087 | 1087 | static struct platform_driver sht15_driver = { |
| 1088 | 1088 | .driver = { |
| 1089 | 1089 | .name = "sht15", |
| 1090 | − .owner = THIS_MODULE, | |
| 1091 | 1090 | }, |
| 1092 | 1091 | .probe = sht15_probe, |
| 1093 | 1092 | .remove = sht15_remove, |
| @@ -215,7 +215,6 @@ static void sis5595_init_device(struct sis5595_data *data); · 214 unmodified lines | ||
| 215 | 215 | |
| 216 | 216 | static struct platform_driver sis5595_driver = { |
| 217 | 217 | .driver = { |
| 218 | − .owner = THIS_MODULE, | |
| 219 | 218 | .name = "sis5595", |
| 220 | 219 | }, |
| 221 | 220 | .probe = sis5595_probe, |
| @@ -219,7 +219,6 @@ static int smsc47b397_probe(struct platform_device *pdev); · 218 unmodified lines | ||
| 219 | 219 | |
| 220 | 220 | static struct platform_driver smsc47b397_driver = { |
| 221 | 221 | .driver = { |
| 222 | − .owner = THIS_MODULE, | |
| 223 | 222 | .name = DRVNAME, |
| 224 | 223 | }, |
| 225 | 224 | .probe = smsc47b397_probe, |
| @@ -849,7 +849,6 @@ static int __exit smsc47m1_remove(struct platform_device *pdev) · 848 unmodified lines | ||
| 849 | 849 | |
| 850 | 850 | static struct platform_driver smsc47m1_driver = { |
| 851 | 851 | .driver = { |
| 852 | − .owner = THIS_MODULE, | |
| 853 | 852 | .name = DRVNAME, |
| 854 | 853 | }, |
| 855 | 854 | .remove = __exit_p(smsc47m1_remove), |
| @@ -107,7 +107,6 @@ static struct platform_driver twl4030_madc_hwmon_driver = { · 106 unmodified lines | ||
| 107 | 107 | .probe = twl4030_madc_hwmon_probe, |
| 108 | 108 | .driver = { |
| 109 | 109 | .name = "twl4030_madc_hwmon", |
| 110 | − .owner = THIS_MODULE, | |
| 111 | 110 | }, |
| 112 | 111 | }; |
| 113 | 112 | |
| @@ -314,7 +314,6 @@ MODULE_DEVICE_TABLE(of, env_match); · 313 unmodified lines | ||
| 314 | 314 | static struct platform_driver env_driver = { |
| 315 | 315 | .driver = { |
| 316 | 316 | .name = "ultra45_env", |
| 317 | − .owner = THIS_MODULE, | |
| 318 | 317 | .of_match_table = env_match, |
| 319 | 318 | }, |
| 320 | 319 | .probe = env_probe, |
| @@ -247,7 +247,6 @@ static struct platform_driver vexpress_hwmon_driver = { · 246 unmodified lines | ||
| 247 | 247 | .probe = vexpress_hwmon_probe, |
| 248 | 248 | .driver = { |
| 249 | 249 | .name = DRVNAME, |
| 250 | − .owner = THIS_MODULE, | |
| 251 | 250 | .of_match_table = vexpress_hwmon_of_match, |
| 252 | 251 | }, |
| 253 | 252 | }; |
| @@ -205,7 +205,6 @@ static int via_cputemp_remove(struct platform_device *pdev) · 204 unmodified lines | ||
| 205 | 205 | |
| 206 | 206 | static struct platform_driver via_cputemp_driver = { |
| 207 | 207 | .driver = { |
| 208 | − .owner = THIS_MODULE, | |
| 209 | 208 | .name = DRVNAME, |
| 210 | 209 | }, |
| 211 | 210 | .probe = via_cputemp_probe, |
| @@ -670,7 +670,6 @@ static const struct attribute_group via686a_group = { · 669 unmodified lines | ||
| 670 | 670 | |
| 671 | 671 | static struct platform_driver via686a_driver = { |
| 672 | 672 | .driver = { |
| 673 | − .owner = THIS_MODULE, | |
| 674 | 673 | .name = "via686a", |
| 675 | 674 | }, |
| 676 | 675 | .probe = via686a_probe, |
| @@ -1233,7 +1233,6 @@ static int vt1211_remove(struct platform_device *pdev) · 1232 unmodified lines | ||
| 1233 | 1233 | |
| 1234 | 1234 | static struct platform_driver vt1211_driver = { |
| 1235 | 1235 | .driver = { |
| 1236 | − .owner = THIS_MODULE, | |
| 1237 | 1236 | .name = DRVNAME, |
| 1238 | 1237 | }, |
| 1239 | 1238 | .probe = vt1211_probe, |
| @@ -759,7 +759,6 @@ static const struct attribute_group vt8231_group = { · 758 unmodified lines | ||
| 759 | 759 | |
| 760 | 760 | static struct platform_driver vt8231_driver = { |
| 761 | 761 | .driver = { |
| 762 | − .owner = THIS_MODULE, | |
| 763 | 762 | .name = "vt8231", |
| 764 | 763 | }, |
| 765 | 764 | .probe = vt8231_probe, |
| @@ -2705,7 +2705,6 @@ static const struct dev_pm_ops w83627ehf_dev_pm_ops = { · 2704 unmodified lines | ||
| 2705 | 2705 | |
| 2706 | 2706 | static struct platform_driver w83627ehf_driver = { |
| 2707 | 2707 | .driver = { |
| 2708 | − .owner = THIS_MODULE, | |
| 2709 | 2708 | .name = DRVNAME, |
| 2710 | 2709 | .pm = W83627EHF_DEV_PM_OPS, |
| 2711 | 2710 | }, |
| @@ -474,7 +474,6 @@ static const struct dev_pm_ops w83627hf_dev_pm_ops = { · 473 unmodified lines | ||
| 474 | 474 | |
| 475 | 475 | static struct platform_driver w83627hf_driver = { |
| 476 | 476 | .driver = { |
| 477 | − .owner = THIS_MODULE, | |
| 478 | 477 | .name = DRVNAME, |
| 479 | 478 | .pm = W83627HF_DEV_PM_OPS, |
| 480 | 479 | }, |
| @@ -1839,7 +1839,6 @@ w83781d_isa_remove(struct platform_device *pdev) · 1838 unmodified lines | ||
| 1839 | 1839 | |
| 1840 | 1840 | static struct platform_driver w83781d_isa_driver = { |
| 1841 | 1841 | .driver = { |
| 1842 | − .owner = THIS_MODULE, | |
| 1843 | 1842 | .name = "w83781d", |
| 1844 | 1843 | }, |
| 1845 | 1844 | .probe = w83781d_isa_probe, |
| @@ -154,7 +154,6 @@ static struct platform_driver wm831x_hwmon_driver = { · 153 unmodified lines | ||
| 154 | 154 | .probe = wm831x_hwmon_probe, |
| 155 | 155 | .driver = { |
| 156 | 156 | .name = "wm831x-hwmon", |
| 157 | − .owner = THIS_MODULE, | |
| 158 | 157 | }, |
| 159 | 158 | }; |
| 160 | 159 | |
| @@ -93,7 +93,6 @@ static struct platform_driver wm8350_hwmon_driver = { · 92 unmodified lines | ||
| 93 | 93 | .probe = wm8350_hwmon_probe, |
| 94 | 94 | .driver = { |
| 95 | 95 | .name = "wm8350-hwmon", |
| 96 | − .owner = THIS_MODULE, | |
| 97 | 96 | }, |
| 98 | 97 | }; |
| 99 | 98 | |
| @@ -179,7 +179,6 @@ static struct platform_driver omap_hwspinlock_driver = { · 178 unmodified lines | ||
| 179 | 179 | .remove = omap_hwspinlock_remove, |
| 180 | 180 | .driver = { |
| 181 | 181 | .name = "omap_hwspinlock", |
| 182 | − .owner = THIS_MODULE, | |
| 183 | 182 | }, |
| 184 | 183 | }; |
| 185 | 184 | |
| @@ -175,7 +175,6 @@ static struct platform_driver u8500_hsem_driver = { · 174 unmodified lines | ||
| 175 | 175 | .remove = u8500_hsem_remove, |
| 176 | 176 | .driver = { |
| 177 | 177 | .name = "u8500_hsem", |
| 178 | − .owner = THIS_MODULE, | |
| 179 | 178 | }, |
| 180 | 179 | }; |
| 181 | 180 | |
| @@ -880,7 +880,6 @@ static struct platform_driver at91_twi_driver = { · 879 unmodified lines | ||
| 880 | 880 | .id_table = at91_twi_devtypes, |
| 881 | 881 | .driver = { |
| 882 | 882 | .name = "at91_i2c", |
| 883 | − .owner = THIS_MODULE, | |
| 884 | 883 | .of_match_table = of_match_ptr(atmel_twi_dt_ids), |
| 885 | 884 | .pm = at91_twi_pm_ops, |
| 886 | 885 | }, |
| @@ -413,7 +413,6 @@ static const struct dev_pm_ops i2c_au1550_pmops = { · 412 unmodified lines | ||
| 413 | 413 | static struct platform_driver au1xpsc_smbus_driver = { |
| 414 | 414 | .driver = { |
| 415 | 415 | .name = "au1xpsc_smbus", |
| 416 | − .owner = THIS_MODULE, | |
| 417 | 416 | .pm = AU1XPSC_SMBUS_PMOPS, |
| 418 | 417 | }, |
| 419 | 418 | .probe = i2c_au1550_probe, |
| @@ -895,7 +895,6 @@ MODULE_DEVICE_TABLE(of, bcm_kona_i2c_of_match); · 894 unmodified lines | ||
| 895 | 895 | static struct platform_driver bcm_kona_i2c_driver = { |
| 896 | 896 | .driver = { |
| 897 | 897 | .name = "bcm-kona-i2c", |
| 898 | − .owner = THIS_MODULE, | |
| 899 | 898 | .of_match_table = bcm_kona_i2c_of_match, |
| 900 | 899 | }, |
| 901 | 900 | .probe = bcm_kona_i2c_probe, |
| @@ -313,7 +313,6 @@ static struct platform_driver bcm2835_i2c_driver = { · 312 unmodified lines | ||
| 313 | 313 | .remove = bcm2835_i2c_remove, |
| 314 | 314 | .driver = { |
| 315 | 315 | .name = "i2c-bcm2835", |
| 316 | − .owner = THIS_MODULE, | |
| 317 | 316 | .of_match_table = bcm2835_i2c_of_match, |
| 318 | 317 | }, |
| 319 | 318 | }; |
| @@ -717,7 +717,6 @@ static struct platform_driver i2c_bfin_twi_driver = { · 716 unmodified lines | ||
| 717 | 717 | .remove = i2c_bfin_twi_remove, |
| 718 | 718 | .driver = { |
| 719 | 719 | .name = "i2c-bfin-twi", |
| 720 | − .owner = THIS_MODULE, | |
| 721 | 720 | .pm = I2C_BFIN_TWI_PM_OPS, |
| 722 | 721 | }, |
| 723 | 722 | }; |
| @@ -901,7 +901,6 @@ MODULE_DEVICE_TABLE(of, cdns_i2c_of_match); · 900 unmodified lines | ||
| 901 | 901 | static struct platform_driver cdns_i2c_drv = { |
| 902 | 902 | .driver = { |
| 903 | 903 | .name = DRIVER_NAME, |
| 904 | − .owner = THIS_MODULE, | |
| 905 | 904 | .of_match_table = cdns_i2c_of_match, |
| 906 | 905 | .pm = &cdns_i2c_dev_pm_ops, |
| 907 | 906 | }, |
| @@ -287,7 +287,6 @@ static struct platform_driver cbus_i2c_driver = { · 286 unmodified lines | ||
| 287 | 287 | .probe = cbus_i2c_probe, |
| 288 | 288 | .remove = cbus_i2c_remove, |
| 289 | 289 | .driver = { |
| 290 | − .owner = THIS_MODULE, | |
| 291 | 290 | .name = "i2c-cbus-gpio", |
| 292 | 291 | .of_match_table = of_match_ptr(i2c_cbus_dt_ids), |
| 293 | 292 | }, |
| @@ -716,7 +716,6 @@ static struct platform_driver cpm_i2c_driver = { · 715 unmodified lines | ||
| 716 | 716 | .remove = cpm_i2c_remove, |
| 717 | 717 | .driver = { |
| 718 | 718 | .name = "fsl-i2c-cpm", |
| 719 | − .owner = THIS_MODULE, | |
| 720 | 719 | .of_match_table = cpm_i2c_match, |
| 721 | 720 | }, |
| 722 | 721 | }; |
| @@ -789,7 +789,6 @@ static struct platform_driver davinci_i2c_driver = { · 788 unmodified lines | ||
| 789 | 789 | .remove = davinci_i2c_remove, |
| 790 | 790 | .driver = { |
| 791 | 791 | .name = "i2c_davinci", |
| 792 | − .owner = THIS_MODULE, | |
| 793 | 792 | .pm = davinci_i2c_pm_ops, |
| 794 | 793 | .of_match_table = davinci_i2c_of_match, |
| 795 | 794 | }, |
| @@ -327,7 +327,6 @@ static struct platform_driver dw_i2c_driver = { · 326 unmodified lines | ||
| 327 | 327 | .remove = dw_i2c_remove, |
| 328 | 328 | .driver = { |
| 329 | 329 | .name = "i2c_designware", |
| 330 | − .owner = THIS_MODULE, | |
| 331 | 330 | .of_match_table = of_match_ptr(dw_i2c_of_match), |
| 332 | 331 | .acpi_match_table = ACPI_PTR(dw_i2c_acpi_match), |
| 333 | 332 | .pm = &dw_i2c_dev_pm_ops, |
| @@ -473,7 +473,6 @@ static struct platform_driver efm32_i2c_driver = { · 472 unmodified lines | ||
| 473 | 473 | |
| 474 | 474 | .driver = { |
| 475 | 475 | .name = DRIVER_NAME, |
| 476 | − .owner = THIS_MODULE, | |
| 477 | 476 | .of_match_table = efm32_i2c_dt_ids, |
| 478 | 477 | }, |
| 479 | 478 | }; |
| @@ -861,7 +861,6 @@ static struct platform_driver exynos5_i2c_driver = { · 860 unmodified lines | ||
| 861 | 861 | .probe = exynos5_i2c_probe, |
| 862 | 862 | .remove = exynos5_i2c_remove, |
| 863 | 863 | .driver = { |
| 864 | − .owner = THIS_MODULE, | |
| 865 | 864 | .name = "exynos5-hsi2c", |
| 866 | 865 | .pm = &exynos5_i2c_dev_pm_ops, |
| 867 | 866 | .of_match_table = exynos5_i2c_match, |
| @@ -260,7 +260,6 @@ MODULE_DEVICE_TABLE(of, i2c_gpio_dt_ids); · 259 unmodified lines | ||
| 260 | 260 | static struct platform_driver i2c_gpio_driver = { |
| 261 | 261 | .driver = { |
| 262 | 262 | .name = "i2c-gpio", |
| 263 | − .owner = THIS_MODULE, | |
| 264 | 263 | .of_match_table = of_match_ptr(i2c_gpio_dt_ids), |
| 265 | 264 | }, |
| 266 | 265 | .probe = i2c_gpio_probe, |
| @@ -456,7 +456,6 @@ static int highlander_i2c_remove(struct platform_device *pdev) · 455 unmodified lines | ||
| 456 | 456 | static struct platform_driver highlander_i2c_driver = { |
| 457 | 457 | .driver = { |
| 458 | 458 | .name = "i2c-highlander", |
| 459 | − .owner = THIS_MODULE, | |
| 460 | 459 | }, |
| 461 | 460 | |
| 462 | 461 | .probe = highlander_i2c_probe, |
| @@ -802,7 +802,6 @@ static const struct of_device_id ibm_iic_match[] = { · 801 unmodified lines | ||
| 802 | 802 | static struct platform_driver ibm_iic_driver = { |
| 803 | 803 | .driver = { |
| 804 | 804 | .name = "ibm-iic", |
| 805 | − .owner = THIS_MODULE, | |
| 806 | 805 | .of_match_table = ibm_iic_match, |
| 807 | 806 | }, |
| 808 | 807 | .probe = iic_probe, |
| @@ -1098,7 +1098,6 @@ static struct platform_driver i2c_imx_driver = { · 1097 unmodified lines | ||
| 1098 | 1098 | .remove = i2c_imx_remove, |
| 1099 | 1099 | .driver = { |
| 1100 | 1100 | .name = DRIVER_NAME, |
| 1101 | − .owner = THIS_MODULE, | |
| 1102 | 1101 | .of_match_table = i2c_imx_dt_ids, |
| 1103 | 1102 | }, |
| 1104 | 1103 | .id_table = imx_i2c_devtype, |
| @@ -516,7 +516,6 @@ static struct platform_driver iop3xx_i2c_driver = { · 515 unmodified lines | ||
| 516 | 516 | .probe = iop3xx_i2c_probe, |
| 517 | 517 | .remove = iop3xx_i2c_remove, |
| 518 | 518 | .driver = { |
| 519 | − .owner = THIS_MODULE, | |
| 520 | 519 | .name = "IOP3xx-I2C", |
| 521 | 520 | }, |
| 522 | 521 | }; |
| @@ -309,7 +309,6 @@ static int smbus_sch_remove(struct platform_device *pdev) · 308 unmodified lines | ||
| 309 | 309 | static struct platform_driver smbus_sch_driver = { |
| 310 | 310 | .driver = { |
| 311 | 311 | .name = "isch_smbus", |
| 312 | − .owner = THIS_MODULE, | |
| 313 | 312 | }, |
| 314 | 313 | .probe = smbus_sch_probe, |
| 315 | 314 | .remove = smbus_sch_remove, |
| @@ -394,7 +394,6 @@ static int kempld_i2c_resume(struct platform_device *pdev) · 393 unmodified lines | ||
| 394 | 394 | static struct platform_driver kempld_i2c_driver = { |
| 395 | 395 | .driver = { |
| 396 | 396 | .name = "kempld-i2c", |
| 397 | − .owner = THIS_MODULE, | |
| 398 | 397 | }, |
| 399 | 398 | .probe = kempld_i2c_probe, |
| 400 | 399 | .remove = kempld_i2c_remove, |
| @@ -813,7 +813,6 @@ static struct platform_driver mpc_i2c_driver = { · 812 unmodified lines | ||
| 813 | 813 | .probe = fsl_i2c_probe, |
| 814 | 814 | .remove = fsl_i2c_remove, |
| 815 | 815 | .driver = { |
| 816 | − .owner = THIS_MODULE, | |
| 817 | 816 | .name = DRV_NAME, |
| 818 | 817 | .of_match_table = mpc_i2c_of_match, |
| 819 | 818 | .pm = MPC_I2C_PM_OPS, |
| @@ -925,7 +925,6 @@ static struct platform_driver mv64xxx_i2c_driver = { · 924 unmodified lines | ||
| 925 | 925 | .probe = mv64xxx_i2c_probe, |
| 926 | 926 | .remove = mv64xxx_i2c_remove, |
| 927 | 927 | .driver = { |
| 928 | − .owner = THIS_MODULE, | |
| 929 | 928 | .name = MV64XXX_I2C_CTLR_NAME, |
| 930 | 929 | .of_match_table = mv64xxx_i2c_of_match_table, |
| 931 | 930 | }, |
| @@ -893,7 +893,6 @@ static int mxs_i2c_remove(struct platform_device *pdev) · 892 unmodified lines | ||
| 893 | 893 | static struct platform_driver mxs_i2c_driver = { |
| 894 | 894 | .driver = { |
| 895 | 895 | .name = DRIVER_NAME, |
| 896 | − .owner = THIS_MODULE, | |
| 897 | 896 | .of_match_table = mxs_i2c_dt_ids, |
| 898 | 897 | }, |
| 899 | 898 | .probe = mxs_i2c_probe, |
| @@ -480,7 +480,6 @@ static struct platform_driver ocores_i2c_driver = { · 479 unmodified lines | ||
| 480 | 480 | .probe = ocores_i2c_probe, |
| 481 | 481 | .remove = ocores_i2c_remove, |
| 482 | 482 | .driver = { |
| 483 | − .owner = THIS_MODULE, | |
| 484 | 483 | .name = "ocores-i2c", |
| 485 | 484 | .of_match_table = ocores_i2c_match, |
| 486 | 485 | .pm = OCORES_I2C_PM, |
| @@ -623,7 +623,6 @@ static struct platform_driver octeon_i2c_driver = { · 622 unmodified lines | ||
| 623 | 623 | .probe = octeon_i2c_probe, |
| 624 | 624 | .remove = octeon_i2c_remove, |
| 625 | 625 | .driver = { |
| 626 | − .owner = THIS_MODULE, | |
| 627 | 626 | .name = DRV_NAME, |
| 628 | 627 | .of_match_table = octeon_i2c_match, |
| 629 | 628 | }, |
| @@ -1453,7 +1453,6 @@ static struct platform_driver omap_i2c_driver = { · 1452 unmodified lines | ||
| 1453 | 1453 | .remove = omap_i2c_remove, |
| 1454 | 1454 | .driver = { |
| 1455 | 1455 | .name = "omap_i2c", |
| 1456 | − .owner = THIS_MODULE, | |
| 1457 | 1456 | .pm = OMAP_I2C_PM_OPS, |
| 1458 | 1457 | .of_match_table = of_match_ptr(omap_i2c_of_match), |
| 1459 | 1458 | }, |
| @@ -183,7 +183,6 @@ static int i2c_parport_remove(struct platform_device *pdev) · 182 unmodified lines | ||
| 183 | 183 | |
| 184 | 184 | static struct platform_driver i2c_parport_driver = { |
| 185 | 185 | .driver = { |
| 186 | − .owner = THIS_MODULE, | |
| 187 | 186 | .name = DRVNAME, |
| 188 | 187 | }, |
| 189 | 188 | .probe = i2c_parport_probe, |
| @@ -280,7 +280,6 @@ static struct platform_driver i2c_pca_pf_driver = { · 279 unmodified lines | ||
| 280 | 280 | .remove = i2c_pca_pf_remove, |
| 281 | 281 | .driver = { |
| 282 | 282 | .name = "i2c-pca-platform", |
| 283 | − .owner = THIS_MODULE, | |
| 284 | 283 | }, |
| 285 | 284 | }; |
| 286 | 285 | |
| @@ -624,7 +624,6 @@ static struct platform_driver pmcmsptwi_driver = { · 623 unmodified lines | ||
| 624 | 624 | .remove = pmcmsptwi_remove, |
| 625 | 625 | .driver = { |
| 626 | 626 | .name = DRV_NAME, |
| 627 | − .owner = THIS_MODULE, | |
| 628 | 627 | }, |
| 629 | 628 | }; |
| 630 | 629 | |
| @@ -751,7 +751,6 @@ MODULE_DEVICE_TABLE(of, i2c_pnx_of_match); · 750 unmodified lines | ||
| 751 | 751 | static struct platform_driver i2c_pnx_driver = { |
| 752 | 752 | .driver = { |
| 753 | 753 | .name = "pnx-i2c", |
| 754 | − .owner = THIS_MODULE, | |
| 755 | 754 | .of_match_table = of_match_ptr(i2c_pnx_of_match), |
| 756 | 755 | .pm = PNX_I2C_PM, |
| 757 | 756 | }, |
| @@ -270,7 +270,6 @@ static struct platform_driver puv3_i2c_driver = { · 269 unmodified lines | ||
| 270 | 270 | .remove = puv3_i2c_remove, |
| 271 | 271 | .driver = { |
| 272 | 272 | .name = "PKUnity-v3-I2C", |
| 273 | − .owner = THIS_MODULE, | |
| 274 | 273 | .pm = PUV3_I2C_PM, |
| 275 | 274 | } |
| 276 | 275 | }; |
| @@ -1333,7 +1333,6 @@ static struct platform_driver i2c_pxa_driver = { · 1332 unmodified lines | ||
| 1333 | 1333 | .remove = i2c_pxa_remove, |
| 1334 | 1334 | .driver = { |
| 1335 | 1335 | .name = "pxa2xx-i2c", |
| 1336 | − .owner = THIS_MODULE, | |
| 1337 | 1336 | .pm = I2C_PXA_DEV_PM_OPS, |
| 1338 | 1337 | .of_match_table = i2c_pxa_dt_ids, |
| 1339 | 1338 | }, |
| @@ -764,7 +764,6 @@ static struct platform_driver qup_i2c_driver = { · 763 unmodified lines | ||
| 764 | 764 | .remove = qup_i2c_remove, |
| 765 | 765 | .driver = { |
| 766 | 766 | .name = "i2c_qup", |
| 767 | − .owner = THIS_MODULE, | |
| 768 | 767 | .pm = &qup_i2c_qup_pm_ops, |
| 769 | 768 | .of_match_table = qup_i2c_dt_match, |
| 770 | 769 | }, |
| @@ -726,7 +726,6 @@ MODULE_DEVICE_TABLE(platform, rcar_i2c_id_table); · 725 unmodified lines | ||
| 726 | 726 | static struct platform_driver rcar_i2c_driver = { |
| 727 | 727 | .driver = { |
| 728 | 728 | .name = "i2c-rcar", |
| 729 | − .owner = THIS_MODULE, | |
| 730 | 729 | .of_match_table = rcar_i2c_dt_ids, |
| 731 | 730 | }, |
| 732 | 731 | .probe = rcar_i2c_probe, |
| @@ -414,7 +414,6 @@ static struct platform_driver riic_i2c_driver = { · 413 unmodified lines | ||
| 414 | 414 | .remove = riic_i2c_remove, |
| 415 | 415 | .driver = { |
| 416 | 416 | .name = "i2c-riic", |
| 417 | − .owner = THIS_MODULE, | |
| 418 | 417 | .of_match_table = riic_i2c_dt_ids, |
| 419 | 418 | }, |
| 420 | 419 | }; |
| @@ -980,7 +980,6 @@ static struct platform_driver rk3x_i2c_driver = { · 979 unmodified lines | ||
| 980 | 980 | .probe = rk3x_i2c_probe, |
| 981 | 981 | .remove = rk3x_i2c_remove, |
| 982 | 982 | .driver = { |
| 983 | − .owner = THIS_MODULE, | |
| 984 | 983 | .name = "rk3x-i2c", |
| 985 | 984 | .of_match_table = rk3x_i2c_match, |
| 986 | 985 | }, |
| @@ -1330,7 +1330,6 @@ static struct platform_driver s3c24xx_i2c_driver = { · 1329 unmodified lines | ||
| 1330 | 1330 | .remove = s3c24xx_i2c_remove, |
| 1331 | 1331 | .id_table = s3c24xx_driver_ids, |
| 1332 | 1332 | .driver = { |
| 1333 | − .owner = THIS_MODULE, | |
| 1334 | 1333 | .name = "s3c-i2c", |
| 1335 | 1334 | .pm = S3C24XX_DEV_PM_OPS, |
| 1336 | 1335 | .of_match_table = of_match_ptr(s3c24xx_i2c_match), |
| @@ -552,7 +552,6 @@ static int sh7760_i2c_remove(struct platform_device *pdev) · 551 unmodified lines | ||
| 552 | 552 | static struct platform_driver sh7760_i2c_drv = { |
| 553 | 553 | .driver = { |
| 554 | 554 | .name = SH7760_I2C_DEVNAME, |
| 555 | − .owner = THIS_MODULE, | |
| 556 | 555 | }, |
| 557 | 556 | .probe = sh7760_i2c_probe, |
| 558 | 557 | .remove = sh7760_i2c_remove, |
| @@ -973,7 +973,6 @@ static const struct dev_pm_ops sh_mobile_i2c_dev_pm_ops = { · 972 unmodified lines | ||
| 973 | 973 | static struct platform_driver sh_mobile_i2c_driver = { |
| 974 | 974 | .driver = { |
| 975 | 975 | .name = "i2c-sh_mobile", |
| 976 | − .owner = THIS_MODULE, | |
| 977 | 976 | .pm = &sh_mobile_i2c_dev_pm_ops, |
| 978 | 977 | .of_match_table = sh_mobile_i2c_dt_ids, |
| 979 | 978 | }, |
| @@ -154,7 +154,6 @@ static int simtec_i2c_remove(struct platform_device *dev) · 153 unmodified lines | ||
| 154 | 154 | static struct platform_driver simtec_i2c_driver = { |
| 155 | 155 | .driver = { |
| 156 | 156 | .name = "simtec-i2c", |
| 157 | − .owner = THIS_MODULE, | |
| 158 | 157 | }, |
| 159 | 158 | .probe = simtec_i2c_probe, |
| 160 | 159 | .remove = simtec_i2c_remove, |
| @@ -451,7 +451,6 @@ MODULE_DEVICE_TABLE(of, sirfsoc_i2c_of_match); · 450 unmodified lines | ||
| 451 | 451 | static struct platform_driver i2c_sirfsoc_driver = { |
| 452 | 452 | .driver = { |
| 453 | 453 | .name = "sirfsoc_i2c", |
| 454 | − .owner = THIS_MODULE, | |
| 455 | 454 | #ifdef CONFIG_PM |
| 456 | 455 | .pm = &i2c_sirfsoc_pm_ops, |
| 457 | 456 | #endif |
| @@ -863,7 +863,6 @@ MODULE_DEVICE_TABLE(of, st_i2c_match); · 862 unmodified lines | ||
| 863 | 863 | static struct platform_driver st_i2c_driver = { |
| 864 | 864 | .driver = { |
| 865 | 865 | .name = "st-i2c", |
| 866 | − .owner = THIS_MODULE, | |
| 867 | 866 | .of_match_table = st_i2c_match, |
| 868 | 867 | .pm = ST_I2C_PM, |
| 869 | 868 | }, |
| @@ -981,7 +981,6 @@ static const struct of_device_id stu300_dt_match[] = { · 980 unmodified lines | ||
| 981 | 981 | static struct platform_driver stu300_i2c_driver = { |
| 982 | 982 | .driver = { |
| 983 | 983 | .name = NAME, |
| 984 | − .owner = THIS_MODULE, | |
| 985 | 984 | .pm = STU300_I2C_PM, |
| 986 | 985 | .of_match_table = stu300_dt_match, |
| 987 | 986 | }, |
| @@ -332,7 +332,6 @@ static struct platform_driver p2wi_driver = { · 331 unmodified lines | ||
| 332 | 332 | .probe = p2wi_probe, |
| 333 | 333 | .remove = p2wi_remove, |
| 334 | 334 | .driver = { |
| 335 | − .owner = THIS_MODULE, | |
| 336 | 335 | .name = "i2c-sunxi-p2wi", |
| 337 | 336 | .of_match_table = p2wi_of_match_table, |
| 338 | 337 | }, |
| @@ -893,7 +893,6 @@ static struct platform_driver tegra_i2c_driver = { · 892 unmodified lines | ||
| 893 | 893 | .remove = tegra_i2c_remove, |
| 894 | 894 | .driver = { |
| 895 | 895 | .name = "tegra-i2c", |
| 896 | − .owner = THIS_MODULE, | |
| 897 | 896 | .of_match_table = tegra_i2c_of_match, |
| 898 | 897 | .pm = TEGRA_I2C_PM, |
| 899 | 898 | }, |
| @@ -138,7 +138,6 @@ static struct platform_driver i2c_versatile_driver = { · 137 unmodified lines | ||
| 138 | 138 | .remove = i2c_versatile_remove, |
| 139 | 139 | .driver = { |
| 140 | 140 | .name = "versatile-i2c", |
| 141 | − .owner = THIS_MODULE, | |
| 142 | 141 | .of_match_table = i2c_versatile_match, |
| 143 | 142 | }, |
| 144 | 143 | }; |
| @@ -462,7 +462,6 @@ static struct platform_driver wmt_i2c_driver = { · 461 unmodified lines | ||
| 462 | 462 | .remove = wmt_i2c_remove, |
| 463 | 463 | .driver = { |
| 464 | 464 | .name = "wmt-i2c", |
| 465 | − .owner = THIS_MODULE, | |
| 466 | 465 | .of_match_table = wmt_i2c_dt_ids, |
| 467 | 466 | }, |
| 468 | 467 | }; |
| @@ -815,7 +815,6 @@ static struct platform_driver xiic_i2c_driver = { · 814 unmodified lines | ||
| 815 | 815 | .probe = xiic_i2c_probe, |
| 816 | 816 | .remove = xiic_i2c_remove, |
| 817 | 817 | .driver = { |
| 818 | − .owner = THIS_MODULE, | |
| 819 | 818 | .name = DRIVER_NAME, |
| 820 | 819 | .of_match_table = of_match_ptr(xiic_of_match), |
| 821 | 820 | }, |
| @@ -263,7 +263,6 @@ static struct platform_driver xlr_i2c_driver = { · 262 unmodified lines | ||
| 263 | 263 | .remove = xlr_i2c_remove, |
| 264 | 264 | .driver = { |
| 265 | 265 | .name = "xlr-i2cbus", |
| 266 | − .owner = THIS_MODULE, | |
| 267 | 266 | }, |
| 268 | 267 | }; |
| 269 | 268 | |
| @@ -544,7 +544,6 @@ static int scx200_remove(struct platform_device *pdev) · 543 unmodified lines | ||
| 544 | 544 | static struct platform_driver scx200_pci_driver = { |
| 545 | 545 | .driver = { |
| 546 | 546 | .name = "cs5535-smb", |
| 547 | − .owner = THIS_MODULE, | |
| 548 | 547 | }, |
| 549 | 548 | .probe = scx200_probe, |
| 550 | 549 | .remove = scx200_remove, |
| @@ -235,7 +235,6 @@ static struct platform_driver i2c_arbitrator_driver = { · 234 unmodified lines | ||
| 235 | 235 | .probe = i2c_arbitrator_probe, |
| 236 | 236 | .remove = i2c_arbitrator_remove, |
| 237 | 237 | .driver = { |
| 238 | − .owner = THIS_MODULE, | |
| 239 | 238 | .name = "i2c-arb-gpio-challenge", |
| 240 | 239 | .of_match_table = i2c_arbitrator_of_match, |
| 241 | 240 | }, |
| @@ -280,7 +280,6 @@ static struct platform_driver i2c_mux_gpio_driver = { · 279 unmodified lines | ||
| 280 | 280 | .probe = i2c_mux_gpio_probe, |
| 281 | 281 | .remove = i2c_mux_gpio_remove, |
| 282 | 282 | .driver = { |
| 283 | − .owner = THIS_MODULE, | |
| 284 | 283 | .name = "i2c-mux-gpio", |
| 285 | 284 | .of_match_table = i2c_mux_gpio_of_match, |
| 286 | 285 | }, |
| @@ -264,7 +264,6 @@ MODULE_DEVICE_TABLE(of, i2c_mux_pinctrl_of_match); · 263 unmodified lines | ||
| 264 | 264 | static struct platform_driver i2c_mux_pinctrl_driver = { |
| 265 | 265 | .driver = { |
| 266 | 266 | .name = "i2c-mux-pinctrl", |
| 267 | − .owner = THIS_MODULE, | |
| 268 | 267 | .of_match_table = of_match_ptr(i2c_mux_pinctrl_of_match), |
| 269 | 268 | }, |
| 270 | 269 | .probe = i2c_mux_pinctrl_probe, |
| @@ -586,7 +586,6 @@ static int au_ide_remove(struct platform_device *dev) · 585 unmodified lines | ||
| 586 | 586 | static struct platform_driver au1200_ide_driver = { |
| 587 | 587 | .driver = { |
| 588 | 588 | .name = "au1200-ide", |
| 589 | − .owner = THIS_MODULE, | |
| 590 | 589 | }, |
| 591 | 590 | .probe = au_ide_probe, |
| 592 | 591 | .remove = au_ide_remove, |
| @@ -179,7 +179,6 @@ static struct platform_driver amiga_gayle_ide_driver = { · 178 unmodified lines | ||
| 179 | 179 | .remove = __exit_p(amiga_gayle_ide_remove), |
| 180 | 180 | .driver = { |
| 181 | 181 | .name = "amiga-gayle-ide", |
| 182 | − .owner = THIS_MODULE, | |
| 183 | 182 | }, |
| 184 | 183 | }; |
| 185 | 184 | |
| @@ -125,7 +125,6 @@ static int plat_ide_remove(struct platform_device *pdev) · 124 unmodified lines | ||
| 125 | 125 | static struct platform_driver platform_ide_driver = { |
| 126 | 126 | .driver = { |
| 127 | 127 | .name = "pata_platform", |
| 128 | − .owner = THIS_MODULE, | |
| 129 | 128 | }, |
| 130 | 129 | .probe = plat_ide_probe, |
| 131 | 130 | .remove = plat_ide_remove, |
| @@ -386,7 +386,6 @@ MODULE_ALIAS("platform:palm_bk3710"); · 385 unmodified lines | ||
| 386 | 386 | static struct platform_driver platform_bk_driver = { |
| 387 | 387 | .driver = { |
| 388 | 388 | .name = "palm_bk3710", |
| 389 | − .owner = THIS_MODULE, | |
| 390 | 389 | }, |
| 391 | 390 | }; |
| 392 | 391 | |
| @@ -198,7 +198,6 @@ static int __exit tx4938ide_remove(struct platform_device *pdev) · 197 unmodified lines | ||
| 198 | 198 | static struct platform_driver tx4938ide_driver = { |
| 199 | 199 | .driver = { |
| 200 | 200 | .name = "tx4938ide", |
| 201 | − .owner = THIS_MODULE, | |
| 202 | 201 | }, |
| 203 | 202 | .remove = __exit_p(tx4938ide_remove), |
| 204 | 203 | }; |
| @@ -618,7 +618,6 @@ static int tx4939ide_resume(struct platform_device *dev) · 617 unmodified lines | ||
| 618 | 618 | static struct platform_driver tx4939ide_driver = { |
| 619 | 619 | .driver = { |
| 620 | 620 | .name = MODNAME, |
| 621 | − .owner = THIS_MODULE, | |
| 622 | 621 | }, |
| 623 | 622 | .remove = __exit_p(tx4939ide_remove), |
| 624 | 623 | .resume = tx4939ide_resume, |
| @@ -307,7 +307,6 @@ static struct platform_driver rockchip_saradc_driver = { · 306 unmodified lines | ||
| 307 | 307 | .remove = rockchip_saradc_remove, |
| 308 | 308 | .driver = { |
| 309 | 309 | .name = "rockchip-saradc", |
| 310 | − .owner = THIS_MODULE, | |
| 311 | 310 | .of_match_table = rockchip_saradc_match, |
| 312 | 311 | .pm = &rockchip_saradc_pm_ops, |
| 313 | 312 | }, |
| @@ -184,7 +184,6 @@ static int adp5520_keys_remove(struct platform_device *pdev) · 183 unmodified lines | ||
| 184 | 184 | static struct platform_driver adp5520_keys_driver = { |
| 185 | 185 | .driver = { |
| 186 | 186 | .name = "adp5520-keys", |
| 187 | − .owner = THIS_MODULE, | |
| 188 | 187 | }, |
| 189 | 188 | .probe = adp5520_keys_probe, |
| 190 | 189 | .remove = adp5520_keys_remove, |
| @@ -255,7 +255,6 @@ static struct platform_driver amikbd_driver = { · 254 unmodified lines | ||
| 255 | 255 | .remove = __exit_p(amikbd_remove), |
| 256 | 256 | .driver = { |
| 257 | 257 | .name = "amiga-keyboard", |
| 258 | − .owner = THIS_MODULE, | |
| 259 | 258 | }, |
| 260 | 259 | }; |
| 261 | 260 | |
| @@ -385,7 +385,6 @@ static int bfin_kpad_resume(struct platform_device *pdev) · 384 unmodified lines | ||
| 385 | 385 | static struct platform_driver bfin_kpad_device_driver = { |
| 386 | 386 | .driver = { |
| 387 | 387 | .name = DRV_NAME, |
| 388 | − .owner = THIS_MODULE, | |
| 389 | 388 | }, |
| 390 | 389 | .probe = bfin_kpad_probe, |
| 391 | 390 | .remove = bfin_kpad_remove, |
| @@ -194,7 +194,6 @@ MODULE_DEVICE_TABLE(of, clps711x_keypad_of_match); · 193 unmodified lines | ||
| 194 | 194 | static struct platform_driver clps711x_keypad_driver = { |
| 195 | 195 | .driver = { |
| 196 | 196 | .name = "clps711x-keypad", |
| 197 | − .owner = THIS_MODULE, | |
| 198 | 197 | .of_match_table = clps711x_keypad_of_match, |
| 199 | 198 | }, |
| 200 | 199 | .probe = clps711x_keypad_probe, |
| @@ -322,7 +322,6 @@ static int davinci_ks_remove(struct platform_device *pdev) · 321 unmodified lines | ||
| 322 | 322 | static struct platform_driver davinci_ks_driver = { |
| 323 | 323 | .driver = { |
| 324 | 324 | .name = "davinci_keyscan", |
| 325 | − .owner = THIS_MODULE, | |
| 326 | 325 | }, |
| 327 | 326 | .remove = davinci_ks_remove, |
| 328 | 327 | }; |
| @@ -373,7 +373,6 @@ static int ep93xx_keypad_remove(struct platform_device *pdev) · 372 unmodified lines | ||
| 373 | 373 | static struct platform_driver ep93xx_keypad_driver = { |
| 374 | 374 | .driver = { |
| 375 | 375 | .name = "ep93xx-keypad", |
| 376 | − .owner = THIS_MODULE, | |
| 377 | 376 | .pm = &ep93xx_keypad_pm_ops, |
| 378 | 377 | }, |
| 379 | 378 | .probe = ep93xx_keypad_probe, |
| @@ -181,7 +181,6 @@ static int events_probe(struct platform_device *pdev) · 180 unmodified lines | ||
| 181 | 181 | static struct platform_driver events_driver = { |
| 182 | 182 | .probe = events_probe, |
| 183 | 183 | .driver = { |
| 184 | − .owner = THIS_MODULE, | |
| 185 | 184 | .name = "goldfish_events", |
| 186 | 185 | }, |
| 187 | 186 | }; |
| @@ -835,7 +835,6 @@ static struct platform_driver gpio_keys_device_driver = { · 834 unmodified lines | ||
| 835 | 835 | .remove = gpio_keys_remove, |
| 836 | 836 | .driver = { |
| 837 | 837 | .name = "gpio-keys", |
| 838 | − .owner = THIS_MODULE, | |
| 839 | 838 | .pm = &gpio_keys_pm_ops, |
| 840 | 839 | .of_match_table = of_match_ptr(gpio_keys_of_match), |
| 841 | 840 | } |
| @@ -297,7 +297,6 @@ static struct platform_driver gpio_keys_polled_driver = { · 296 unmodified lines | ||
| 297 | 297 | .probe = gpio_keys_polled_probe, |
| 298 | 298 | .driver = { |
| 299 | 299 | .name = DRV_NAME, |
| 300 | − .owner = THIS_MODULE, | |
| 301 | 300 | .of_match_table = gpio_keys_polled_of_match, |
| 302 | 301 | }, |
| 303 | 302 | }; |
| @@ -580,7 +580,6 @@ static SIMPLE_DEV_PM_OPS(imx_kbd_pm_ops, imx_kbd_suspend, imx_kbd_resume); · 579 unmodified lines | ||
| 580 | 580 | static struct platform_driver imx_keypad_driver = { |
| 581 | 581 | .driver = { |
| 582 | 582 | .name = "imx-keypad", |
| 583 | − .owner = THIS_MODULE, | |
| 584 | 583 | .pm = &imx_kbd_pm_ops, |
| 585 | 584 | .of_match_table = of_match_ptr(imx_keypad_of_match), |
| 586 | 585 | }, |
| @@ -237,7 +237,6 @@ static int jornada680kbd_probe(struct platform_device *pdev) · 236 unmodified lines | ||
| 237 | 237 | static struct platform_driver jornada680kbd_driver = { |
| 238 | 238 | .driver = { |
| 239 | 239 | .name = "jornada680_kbd", |
| 240 | − .owner = THIS_MODULE, | |
| 241 | 240 | }, |
| 242 | 241 | .probe = jornada680kbd_probe, |
| 243 | 242 | }; |
| @@ -167,7 +167,6 @@ MODULE_ALIAS("platform:jornada720_kbd"); · 166 unmodified lines | ||
| 167 | 167 | static struct platform_driver jornada720_kbd_driver = { |
| 168 | 168 | .driver = { |
| 169 | 169 | .name = "jornada720_kbd", |
| 170 | − .owner = THIS_MODULE, | |
| 171 | 170 | }, |
| 172 | 171 | .probe = jornada720_kbd_probe, |
| 173 | 172 | .remove = jornada720_kbd_remove, |
| @@ -381,7 +381,6 @@ static struct platform_driver lpc32xx_kscan_driver = { · 380 unmodified lines | ||
| 381 | 381 | .remove = lpc32xx_kscan_remove, |
| 382 | 382 | .driver = { |
| 383 | 383 | .name = DRV_NAME, |
| 384 | − .owner = THIS_MODULE, | |
| 385 | 384 | .pm = &lpc32xx_kscan_pm_ops, |
| 386 | 385 | .of_match_table = lpc32xx_kscan_match, |
| 387 | 386 | } |
| @@ -565,7 +565,6 @@ static struct platform_driver matrix_keypad_driver = { · 564 unmodified lines | ||
| 565 | 565 | .remove = matrix_keypad_remove, |
| 566 | 566 | .driver = { |
| 567 | 567 | .name = "matrix-keypad", |
| 568 | − .owner = THIS_MODULE, | |
| 569 | 568 | .pm = &matrix_keypad_pm_ops, |
| 570 | 569 | .of_match_table = of_match_ptr(matrix_keypad_dt_match), |
| 571 | 570 | }, |
| @@ -425,7 +425,6 @@ static SIMPLE_DEV_PM_OPS(ske_keypad_dev_pm_ops, · 424 unmodified lines | ||
| 425 | 425 | static struct platform_driver ske_keypad_driver = { |
| 426 | 426 | .driver = { |
| 427 | 427 | .name = "nmk-ske-keypad", |
| 428 | − .owner = THIS_MODULE, | |
| 429 | 428 | .pm = &ske_keypad_dev_pm_ops, |
| 430 | 429 | }, |
| 431 | 430 | .remove = ske_keypad_remove, |
| @@ -268,7 +268,6 @@ MODULE_DEVICE_TABLE(of, nspire_keypad_dt_match); · 267 unmodified lines | ||
| 268 | 268 | static struct platform_driver nspire_keypad_driver = { |
| 269 | 269 | .driver = { |
| 270 | 270 | .name = "nspire-keypad", |
| 271 | − .owner = THIS_MODULE, | |
| 272 | 271 | .of_match_table = nspire_keypad_dt_match, |
| 273 | 272 | }, |
| 274 | 273 | .probe = nspire_keypad_probe, |
| @@ -383,7 +383,6 @@ static struct platform_driver omap_kp_driver = { · 382 unmodified lines | ||
| 383 | 383 | .resume = omap_kp_resume, |
| 384 | 384 | .driver = { |
| 385 | 385 | .name = "omap-keypad", |
| 386 | − .owner = THIS_MODULE, | |
| 387 | 386 | }, |
| 388 | 387 | }; |
| 389 | 388 | module_platform_driver(omap_kp_driver); |
| @@ -460,7 +460,6 @@ static struct platform_driver omap4_keypad_driver = { · 459 unmodified lines | ||
| 460 | 460 | .remove = omap4_keypad_remove, |
| 461 | 461 | .driver = { |
| 462 | 462 | .name = "omap4-keypad", |
| 463 | − .owner = THIS_MODULE, | |
| 464 | 463 | .pm = &omap4_keypad_pm_ops, |
| 465 | 464 | .of_match_table = omap_keypad_dt_match, |
| 466 | 465 | }, |
| @@ -687,7 +687,6 @@ static struct platform_driver pmic8xxx_kp_driver = { · 686 unmodified lines | ||
| 687 | 687 | .probe = pmic8xxx_kp_probe, |
| 688 | 688 | .driver = { |
| 689 | 689 | .name = "pm8xxx-keypad", |
| 690 | − .owner = THIS_MODULE, | |
| 691 | 690 | .pm = &pm8xxx_kp_pm_ops, |
| 692 | 691 | .of_match_table = pm8xxx_match_table, |
| 693 | 692 | }, |
| @@ -881,7 +881,6 @@ static struct platform_driver pxa27x_keypad_driver = { · 880 unmodified lines | ||
| 881 | 881 | .driver = { |
| 882 | 882 | .name = "pxa27x-keypad", |
| 883 | 883 | .of_match_table = of_match_ptr(pxa27x_keypad_dt_match), |
| 884 | − .owner = THIS_MODULE, | |
| 885 | 884 | .pm = &pxa27x_keypad_pm_ops, |
| 886 | 885 | }, |
| 887 | 886 | }; |
| @@ -189,7 +189,6 @@ static int pxa930_rotary_remove(struct platform_device *pdev) · 188 unmodified lines | ||
| 189 | 189 | static struct platform_driver pxa930_rotary_driver = { |
| 190 | 190 | .driver = { |
| 191 | 191 | .name = "pxa930-rotary", |
| 192 | − .owner = THIS_MODULE, | |
| 193 | 192 | }, |
| 194 | 193 | .probe = pxa930_rotary_probe, |
| 195 | 194 | .remove = pxa930_rotary_remove, |
| @@ -602,7 +602,6 @@ static struct platform_driver samsung_keypad_driver = { · 601 unmodified lines | ||
| 602 | 602 | .remove = samsung_keypad_remove, |
| 603 | 603 | .driver = { |
| 604 | 604 | .name = "samsung-keypad", |
| 605 | − .owner = THIS_MODULE, | |
| 606 | 605 | .of_match_table = of_match_ptr(samsung_keypad_dt_match), |
| 607 | 606 | .pm = &samsung_keypad_pm_ops, |
| 608 | 607 | }, |
| @@ -385,7 +385,6 @@ static struct platform_driver spear_kbd_driver = { · 384 unmodified lines | ||
| 385 | 385 | .remove = spear_kbd_remove, |
| 386 | 386 | .driver = { |
| 387 | 387 | .name = "keyboard", |
| 388 | − .owner = THIS_MODULE, | |
| 389 | 388 | .pm = &spear_kbd_pm_ops, |
| 390 | 389 | .of_match_table = of_match_ptr(spear_kbd_id_table), |
| 391 | 390 | }, |
| @@ -505,7 +505,6 @@ static SIMPLE_DEV_PM_OPS(tc3589x_keypad_dev_pm_ops, · 504 unmodified lines | ||
| 505 | 505 | static struct platform_driver tc3589x_keypad_driver = { |
| 506 | 506 | .driver = { |
| 507 | 507 | .name = "tc3589x-keypad", |
| 508 | − .owner = THIS_MODULE, | |
| 509 | 508 | .pm = &tc3589x_keypad_dev_pm_ops, |
| 510 | 509 | }, |
| 511 | 510 | .probe = tc3589x_keypad_probe, |
| @@ -822,7 +822,6 @@ static struct platform_driver tegra_kbc_driver = { · 821 unmodified lines | ||
| 822 | 822 | .probe = tegra_kbc_probe, |
| 823 | 823 | .driver = { |
| 824 | 824 | .name = "tegra-kbc", |
| 825 | − .owner = THIS_MODULE, | |
| 826 | 825 | .pm = &tegra_kbc_pm_ops, |
| 827 | 826 | .of_match_table = tegra_kbc_of_match, |
| 828 | 827 | }, |
| @@ -459,7 +459,6 @@ static struct platform_driver twl4030_kp_driver = { · 458 unmodified lines | ||
| 459 | 459 | .probe = twl4030_kp_probe, |
| 460 | 460 | .driver = { |
| 461 | 461 | .name = "twl4030_keypad", |
| 462 | − .owner = THIS_MODULE, | |
| 463 | 462 | .of_match_table = of_match_ptr(twl4030_keypad_dt_match_table), |
| 464 | 463 | }, |
| 465 | 464 | }; |
| @@ -258,7 +258,6 @@ static struct platform_driver w90p910_keypad_driver = { · 257 unmodified lines | ||
| 258 | 258 | .remove = w90p910_keypad_remove, |
| 259 | 259 | .driver = { |
| 260 | 260 | .name = "nuc900-kpi", |
| 261 | − .owner = THIS_MODULE, | |
| 262 | 261 | }, |
| 263 | 262 | }; |
| 264 | 263 | module_platform_driver(w90p910_keypad_driver); |
| @@ -153,7 +153,6 @@ static int pm80x_onkey_remove(struct platform_device *pdev) · 152 unmodified lines | ||
| 153 | 153 | static struct platform_driver pm80x_onkey_driver = { |
| 154 | 154 | .driver = { |
| 155 | 155 | .name = "88pm80x-onkey", |
| 156 | − .owner = THIS_MODULE, | |
| 157 | 156 | .pm = &pm80x_onkey_pm_ops, |
| 158 | 157 | }, |
| 159 | 158 | .probe = pm80x_onkey_probe, |
| @@ -138,7 +138,6 @@ static SIMPLE_DEV_PM_OPS(pm860x_onkey_pm_ops, pm860x_onkey_suspend, pm860x_onkey · 137 unmodified lines | ||
| 138 | 138 | static struct platform_driver pm860x_onkey_driver = { |
| 139 | 139 | .driver = { |
| 140 | 140 | .name = "88pm860x-onkey", |
| 141 | − .owner = THIS_MODULE, | |
| 142 | 141 | .pm = &pm860x_onkey_pm_ops, |
| 143 | 142 | }, |
| 144 | 143 | .probe = pm860x_onkey_probe, |
| @@ -123,7 +123,6 @@ static const struct of_device_id ab8500_ponkey_match[] = { · 122 unmodified lines | ||
| 123 | 123 | static struct platform_driver ab8500_ponkey_driver = { |
| 124 | 124 | .driver = { |
| 125 | 125 | .name = "ab8500-poweron-key", |
| 126 | − .owner = THIS_MODULE, | |
| 127 | 126 | .of_match_table = of_match_ptr(ab8500_ponkey_match), |
| 128 | 127 | }, |
| 129 | 128 | .probe = ab8500_ponkey_probe, |
| @@ -225,7 +225,6 @@ static struct platform_driver arizona_haptics_driver = { · 224 unmodified lines | ||
| 225 | 225 | .remove = arizona_haptics_remove, |
| 226 | 226 | .driver = { |
| 227 | 227 | .name = "arizona-haptics", |
| 228 | − .owner = THIS_MODULE, | |
| 229 | 228 | }, |
| 230 | 229 | }; |
| 231 | 230 | module_platform_driver(arizona_haptics_driver); |
| @@ -256,7 +256,6 @@ static struct platform_driver bfin_rotary_device_driver = { · 255 unmodified lines | ||
| 256 | 256 | .remove = bfin_rotary_remove, |
| 257 | 257 | .driver = { |
| 258 | 258 | .name = "bfin-rotary", |
| 259 | − .owner = THIS_MODULE, | |
| 260 | 259 | #ifdef CONFIG_PM |
| 261 | 260 | .pm = &bfin_rotary_pm_ops, |
| 262 | 261 | #endif |
| @@ -157,7 +157,6 @@ static struct platform_driver cobalt_buttons_driver = { · 156 unmodified lines | ||
| 157 | 157 | .remove = cobalt_buttons_remove, |
| 158 | 158 | .driver = { |
| 159 | 159 | .name = "Cobalt buttons", |
| 160 | − .owner = THIS_MODULE, | |
| 161 | 160 | }, |
| 162 | 161 | }; |
| 163 | 162 | module_platform_driver(cobalt_buttons_driver); |
| @@ -149,7 +149,6 @@ static struct platform_driver da9052_onkey_driver = { · 148 unmodified lines | ||
| 149 | 149 | .remove = da9052_onkey_remove, |
| 150 | 150 | .driver = { |
| 151 | 151 | .name = "da9052-onkey", |
| 152 | − .owner = THIS_MODULE, | |
| 153 | 152 | }, |
| 154 | 153 | }; |
| 155 | 154 | module_platform_driver(da9052_onkey_driver); |
| @@ -157,7 +157,6 @@ static struct platform_driver da9055_onkey_driver = { · 156 unmodified lines | ||
| 157 | 157 | .remove = da9055_onkey_remove, |
| 158 | 158 | .driver = { |
| 159 | 159 | .name = "da9055-onkey", |
| 160 | − .owner = THIS_MODULE, | |
| 161 | 160 | }, |
| 162 | 161 | }; |
| 163 | 162 | |
| @@ -263,7 +263,6 @@ static struct platform_driver dm355evm_keys_driver = { · 262 unmodified lines | ||
| 263 | 263 | .probe = dm355evm_keys_probe, |
| 264 | 264 | .remove = dm355evm_keys_remove, |
| 265 | 265 | .driver = { |
| 266 | − .owner = THIS_MODULE, | |
| 267 | 266 | .name = "dm355evm_keys", |
| 268 | 267 | }, |
| 269 | 268 | }; |
| @@ -112,7 +112,6 @@ MODULE_DEVICE_TABLE(of, gpio_beeper_of_match); · 111 unmodified lines | ||
| 112 | 112 | static struct platform_driver gpio_beeper_platform_driver = { |
| 113 | 113 | .driver = { |
| 114 | 114 | .name = BEEPER_MODNAME, |
| 115 | − .owner = THIS_MODULE, | |
| 116 | 115 | .of_match_table = of_match_ptr(gpio_beeper_of_match), |
| 117 | 116 | }, |
| 118 | 117 | .probe = gpio_beeper_probe, |
| @@ -199,7 +199,6 @@ static struct platform_driver gpio_tilt_polled_driver = { · 198 unmodified lines | ||
| 199 | 199 | .remove = gpio_tilt_polled_remove, |
| 200 | 200 | .driver = { |
| 201 | 201 | .name = DRV_NAME, |
| 202 | − .owner = THIS_MODULE, | |
| 203 | 202 | }, |
| 204 | 203 | }; |
| 205 | 204 | |
| @@ -272,7 +272,6 @@ static int ideapad_remove(struct platform_device *pdev) · 271 unmodified lines | ||
| 272 | 272 | static struct platform_driver slidebar_drv = { |
| 273 | 273 | .driver = { |
| 274 | 274 | .name = "ideapad_slidebar", |
| 275 | − .owner = THIS_MODULE, | |
| 276 | 275 | }, |
| 277 | 276 | .remove = ideapad_remove, |
| 278 | 277 | }; |
| @@ -168,7 +168,6 @@ static void ixp4xx_spkr_shutdown(struct platform_device *dev) · 167 unmodified lines | ||
| 168 | 168 | static struct platform_driver ixp4xx_spkr_platform_driver = { |
| 169 | 169 | .driver = { |
| 170 | 170 | .name = "ixp4xx-beeper", |
| 171 | − .owner = THIS_MODULE, | |
| 172 | 171 | }, |
| 173 | 172 | .probe = ixp4xx_spkr_probe, |
| 174 | 173 | .remove = ixp4xx_spkr_remove, |
| @@ -100,7 +100,6 @@ static void m68kspkr_shutdown(struct platform_device *dev) · 99 unmodified lines | ||
| 100 | 100 | static struct platform_driver m68kspkr_platform_driver = { |
| 101 | 101 | .driver = { |
| 102 | 102 | .name = "m68kspkr", |
| 103 | − .owner = THIS_MODULE, | |
| 104 | 103 | }, |
| 105 | 104 | .probe = m68kspkr_probe, |
| 106 | 105 | .remove = m68kspkr_remove, |
| @@ -343,7 +343,6 @@ static SIMPLE_DEV_PM_OPS(max77693_haptic_pm_ops, · 342 unmodified lines | ||
| 343 | 343 | static struct platform_driver max77693_haptic_driver = { |
| 344 | 344 | .driver = { |
| 345 | 345 | .name = "max77693-haptic", |
| 346 | − .owner = THIS_MODULE, | |
| 347 | 346 | .pm = &max77693_haptic_pm_ops, |
| 348 | 347 | }, |
| 349 | 348 | .probe = max77693_haptic_probe, |
| @@ -168,7 +168,6 @@ static SIMPLE_DEV_PM_OPS(max8925_onkey_pm_ops, max8925_onkey_suspend, max8925_on · 167 unmodified lines | ||
| 168 | 168 | static struct platform_driver max8925_onkey_driver = { |
| 169 | 169 | .driver = { |
| 170 | 170 | .name = "max8925-onkey", |
| 171 | − .owner = THIS_MODULE, | |
| 172 | 171 | .pm = &max8925_onkey_pm_ops, |
| 173 | 172 | }, |
| 174 | 173 | .probe = max8925_onkey_probe, |
| @@ -401,7 +401,6 @@ MODULE_DEVICE_TABLE(i2c, max8997_haptic_id); · 400 unmodified lines | ||
| 401 | 401 | static struct platform_driver max8997_haptic_driver = { |
| 402 | 402 | .driver = { |
| 403 | 403 | .name = "max8997-haptic", |
| 404 | − .owner = THIS_MODULE, | |
| 405 | 404 | .pm = &max8997_haptic_pm_ops, |
| 406 | 405 | }, |
| 407 | 406 | .probe = max8997_haptic_probe, |
| @@ -258,7 +258,6 @@ static struct platform_driver mc13783_pwrbutton_driver = { · 257 unmodified lines | ||
| 258 | 258 | .remove = mc13783_pwrbutton_remove, |
| 259 | 259 | .driver = { |
| 260 | 260 | .name = "mc13783-pwrbutton", |
| 261 | − .owner = THIS_MODULE, | |
| 262 | 261 | }, |
| 263 | 262 | }; |
| 264 | 263 | |
| @@ -319,7 +319,6 @@ static struct platform_driver palmas_pwron_driver = { · 318 unmodified lines | ||
| 319 | 319 | .remove = palmas_pwron_remove, |
| 320 | 320 | .driver = { |
| 321 | 321 | .name = "palmas_pwrbutton", |
| 322 | − .owner = THIS_MODULE, | |
| 323 | 322 | .of_match_table = of_match_ptr(of_palmas_pwr_match), |
| 324 | 323 | .pm = &palmas_pwron_pm, |
| 325 | 324 | }, |
| @@ -121,7 +121,6 @@ static struct platform_driver pcap_keys_device_driver = { · 120 unmodified lines | ||
| 121 | 121 | .remove = pcap_keys_remove, |
| 122 | 122 | .driver = { |
| 123 | 123 | .name = "pcap-keys", |
| 124 | − .owner = THIS_MODULE, | |
| 125 | 124 | } |
| 126 | 125 | }; |
| 127 | 126 | module_platform_driver(pcap_keys_device_driver); |
| @@ -125,7 +125,6 @@ static const struct dev_pm_ops pcspkr_pm_ops = { · 124 unmodified lines | ||
| 125 | 125 | static struct platform_driver pcspkr_platform_driver = { |
| 126 | 126 | .driver = { |
| 127 | 127 | .name = "pcspkr", |
| 128 | − .owner = THIS_MODULE, | |
| 129 | 128 | .pm = &pcspkr_pm_ops, |
| 130 | 129 | }, |
| 131 | 130 | .probe = pcspkr_probe, |
| @@ -224,7 +224,6 @@ static struct platform_driver pm8xxx_vib_driver = { · 223 unmodified lines | ||
| 224 | 224 | .probe = pm8xxx_vib_probe, |
| 225 | 225 | .driver = { |
| 226 | 226 | .name = "pm8xxx-vib", |
| 227 | − .owner = THIS_MODULE, | |
| 228 | 227 | .pm = &pm8xxx_vib_pm_ops, |
| 229 | 228 | .of_match_table = pm8xxx_vib_id_table, |
| 230 | 229 | }, |
| @@ -195,7 +195,6 @@ static struct platform_driver pmic8xxx_pwrkey_driver = { · 194 unmodified lines | ||
| 195 | 195 | .remove = pmic8xxx_pwrkey_remove, |
| 196 | 196 | .driver = { |
| 197 | 197 | .name = "pm8xxx-pwrkey", |
| 198 | − .owner = THIS_MODULE, | |
| 199 | 198 | .pm = &pm8xxx_pwr_key_pm_ops, |
| 200 | 199 | .of_match_table = pm8xxx_pwr_key_id_table, |
| 201 | 200 | }, |
| @@ -187,7 +187,6 @@ static struct platform_driver pwm_beeper_driver = { · 186 unmodified lines | ||
| 187 | 187 | .remove = pwm_beeper_remove, |
| 188 | 188 | .driver = { |
| 189 | 189 | .name = "pwm-beeper", |
| 190 | − .owner = THIS_MODULE, | |
| 191 | 190 | .pm = PWM_BEEPER_PM_OPS, |
| 192 | 191 | .of_match_table = of_match_ptr(pwm_beeper_match), |
| 193 | 192 | }, |
| @@ -96,7 +96,6 @@ static struct platform_driver rb532_button_driver = { · 95 unmodified lines | ||
| 96 | 96 | .remove = rb532_button_remove, |
| 97 | 97 | .driver = { |
| 98 | 98 | .name = DRV_NAME, |
| 99 | − .owner = THIS_MODULE, | |
| 100 | 99 | }, |
| 101 | 100 | }; |
| 102 | 101 | module_platform_driver(rb532_button_driver); |
| @@ -85,7 +85,6 @@ static struct platform_driver retu_pwrbutton_driver = { · 84 unmodified lines | ||
| 85 | 85 | .remove = retu_pwrbutton_remove, |
| 86 | 86 | .driver = { |
| 87 | 87 | .name = "retu-pwrbutton", |
| 88 | − .owner = THIS_MODULE, | |
| 89 | 88 | }, |
| 90 | 89 | }; |
| 91 | 90 | module_platform_driver(retu_pwrbutton_driver); |
| @@ -325,7 +325,6 @@ static struct platform_driver rotary_encoder_driver = { · 324 unmodified lines | ||
| 325 | 325 | .remove = rotary_encoder_remove, |
| 326 | 326 | .driver = { |
| 327 | 327 | .name = DRV_NAME, |
| 328 | − .owner = THIS_MODULE, | |
| 329 | 328 | .of_match_table = of_match_ptr(rotary_encoder_of_match), |
| 330 | 329 | } |
| 331 | 330 | }; |
| @@ -157,7 +157,6 @@ static struct platform_driver sgi_buttons_driver = { · 156 unmodified lines | ||
| 157 | 157 | .remove = sgi_buttons_remove, |
| 158 | 158 | .driver = { |
| 159 | 159 | .name = "sgibtns", |
| 160 | − .owner = THIS_MODULE, | |
| 161 | 160 | }, |
| 162 | 161 | }; |
| 163 | 162 | module_platform_driver(sgi_buttons_driver); |
| @@ -205,7 +205,6 @@ static struct platform_driver sirfsoc_pwrc_driver = { · 204 unmodified lines | ||
| 205 | 205 | .remove = sirfsoc_pwrc_remove, |
| 206 | 206 | .driver = { |
| 207 | 207 | .name = "sirfsoc-pwrc", |
| 208 | − .owner = THIS_MODULE, | |
| 209 | 208 | .pm = &sirfsoc_pwrc_pm_ops, |
| 210 | 209 | .of_match_table = sirfsoc_pwrc_of_match, |
| 211 | 210 | } |
| @@ -214,7 +214,6 @@ static struct platform_driver soc_button_driver = { · 213 unmodified lines | ||
| 214 | 214 | .remove = soc_button_remove, |
| 215 | 215 | .driver = { |
| 216 | 216 | .name = KBUILD_MODNAME, |
| 217 | − .owner = THIS_MODULE, | |
| 218 | 217 | .acpi_match_table = ACPI_PTR(soc_button_acpi_match), |
| 219 | 218 | }, |
| 220 | 219 | }; |
| @@ -257,7 +257,6 @@ static const struct of_device_id bbc_beep_match[] = { · 256 unmodified lines | ||
| 257 | 257 | static struct platform_driver bbc_beep_driver = { |
| 258 | 258 | .driver = { |
| 259 | 259 | .name = "bbcbeep", |
| 260 | − .owner = THIS_MODULE, | |
| 261 | 260 | .of_match_table = bbc_beep_match, |
| 262 | 261 | }, |
| 263 | 262 | .probe = bbc_beep_probe, |
| @@ -337,7 +336,6 @@ static const struct of_device_id grover_beep_match[] = { · 73 unmodified lines | ||
| 337 | 336 | static struct platform_driver grover_beep_driver = { |
| 338 | 337 | .driver = { |
| 339 | 338 | .name = "groverbeep", |
| 340 | − .owner = THIS_MODULE, | |
| 341 | 339 | .of_match_table = grover_beep_match, |
| 342 | 340 | }, |
| 343 | 341 | .probe = grover_beep_probe, |
| @@ -102,7 +102,6 @@ static struct platform_driver twl4030_pwrbutton_driver = { · 101 unmodified lines | ||
| 102 | 102 | .probe = twl4030_pwrbutton_probe, |
| 103 | 103 | .driver = { |
| 104 | 104 | .name = "twl4030_pwrbutton", |
| 105 | − .owner = THIS_MODULE, | |
| 106 | 105 | .of_match_table = of_match_ptr(twl4030_pwrbutton_dt_match_table), |
| 107 | 106 | }, |
| 108 | 107 | }; |
| @@ -253,7 +253,6 @@ static struct platform_driver twl4030_vibra_driver = { · 252 unmodified lines | ||
| 253 | 253 | .probe = twl4030_vibra_probe, |
| 254 | 254 | .driver = { |
| 255 | 255 | .name = "twl4030-vibra", |
| 256 | − .owner = THIS_MODULE, | |
| 257 | 256 | .pm = &twl4030_vibra_pm_ops, |
| 258 | 257 | }, |
| 259 | 258 | }; |
| @@ -388,7 +388,6 @@ static struct platform_driver twl6040_vibra_driver = { · 387 unmodified lines | ||
| 388 | 388 | .probe = twl6040_vibra_probe, |
| 389 | 389 | .driver = { |
| 390 | 390 | .name = "twl6040-vibra", |
| 391 | − .owner = THIS_MODULE, | |
| 392 | 391 | .pm = &twl6040_vibra_pm_ops, |
| 393 | 392 | }, |
| 394 | 393 | }; |
| @@ -1347,7 +1347,6 @@ static const struct dev_pm_ops wistron_pm_ops = { · 1346 unmodified lines | ||
| 1347 | 1347 | static struct platform_driver wistron_driver = { |
| 1348 | 1348 | .driver = { |
| 1349 | 1349 | .name = "wistron-bios", |
| 1350 | − .owner = THIS_MODULE, | |
| 1351 | 1350 | #ifdef CONFIG_PM |
| 1352 | 1351 | .pm = &wistron_pm_ops, |
| 1353 | 1352 | #endif |
| @@ -138,7 +138,6 @@ static struct platform_driver wm831x_on_driver = { · 137 unmodified lines | ||
| 138 | 138 | .remove = wm831x_on_remove, |
| 139 | 139 | .driver = { |
| 140 | 140 | .name = "wm831x-on", |
| 141 | − .owner = THIS_MODULE, | |
| 142 | 141 | }, |
| 143 | 142 | }; |
| 144 | 143 | module_platform_driver(wm831x_on_driver); |
| @@ -141,7 +141,6 @@ static struct platform_driver amimouse_driver = { · 140 unmodified lines | ||
| 141 | 141 | .remove = __exit_p(amimouse_remove), |
| 142 | 142 | .driver = { |
| 143 | 143 | .name = "amiga-mouse", |
| 144 | − .owner = THIS_MODULE, | |
| 145 | 144 | }, |
| 146 | 145 | }; |
| 147 | 146 | |
| @@ -171,7 +171,6 @@ static struct platform_driver gpio_mouse_device_driver = { · 170 unmodified lines | ||
| 171 | 171 | .remove = gpio_mouse_remove, |
| 172 | 172 | .driver = { |
| 173 | 173 | .name = "gpio_mouse", |
| 174 | − .owner = THIS_MODULE, | |
| 175 | 174 | } |
| 176 | 175 | }; |
| 177 | 176 | module_platform_driver(gpio_mouse_device_driver); |
| @@ -355,7 +355,6 @@ static struct platform_driver navpoint_driver = { · 354 unmodified lines | ||
| 355 | 355 | .remove = navpoint_remove, |
| 356 | 356 | .driver = { |
| 357 | 357 | .name = "navpoint", |
| 358 | − .owner = THIS_MODULE, | |
| 359 | 358 | .pm = &navpoint_pm_ops, |
| 360 | 359 | }, |
| 361 | 360 | }; |
| @@ -189,7 +189,6 @@ static struct platform_driver altera_ps2_driver = { · 188 unmodified lines | ||
| 189 | 189 | .remove = altera_ps2_remove, |
| 190 | 190 | .driver = { |
| 191 | 191 | .name = DRV_NAME, |
| 192 | − .owner = THIS_MODULE, | |
| 193 | 192 | .of_match_table = of_match_ptr(altera_ps2_match), |
| 194 | 193 | }, |
| 195 | 194 | }; |
| @@ -214,7 +214,6 @@ MODULE_DEVICE_TABLE(of, apbps2_of_match); · 213 unmodified lines | ||
| 214 | 214 | static struct platform_driver apbps2_of_driver = { |
| 215 | 215 | .driver = { |
| 216 | 216 | .name = "grlib-apbps2", |
| 217 | − .owner = THIS_MODULE, | |
| 218 | 217 | .of_match_table = apbps2_of_match, |
| 219 | 218 | }, |
| 220 | 219 | .probe = apbps2_of_probe, |
| @@ -266,7 +266,6 @@ MODULE_DEVICE_TABLE(of, arc_ps2_match); · 265 unmodified lines | ||
| 266 | 266 | static struct platform_driver arc_ps2_driver = { |
| 267 | 267 | .driver = { |
| 268 | 268 | .name = "arc_ps2", |
| 269 | − .owner = THIS_MODULE, | |
| 270 | 269 | .of_match_table = of_match_ptr(arc_ps2_match), |
| 271 | 270 | }, |
| 272 | 271 | .probe = arc_ps2_probe, |
| @@ -352,7 +352,6 @@ static struct platform_driver psif_driver = { · 351 unmodified lines | ||
| 352 | 352 | .remove = __exit_p(psif_remove), |
| 353 | 353 | .driver = { |
| 354 | 354 | .name = "atmel_psif", |
| 355 | − .owner = THIS_MODULE, | |
| 356 | 355 | .pm = &psif_pm_ops, |
| 357 | 356 | }, |
| 358 | 357 | }; |
| @@ -209,7 +209,6 @@ static int ct82c710_remove(struct platform_device *dev) · 208 unmodified lines | ||
| 209 | 209 | static struct platform_driver ct82c710_driver = { |
| 210 | 210 | .driver = { |
| 211 | 211 | .name = "ct82c710", |
| 212 | − .owner = THIS_MODULE, | |
| 213 | 212 | }, |
| 214 | 213 | .probe = ct82c710_probe, |
| 215 | 214 | .remove = ct82c710_remove, |
| @@ -99,7 +99,6 @@ MODULE_DEVICE_TABLE(of, sparc_i8042_match); · 98 unmodified lines | ||
| 99 | 99 | static struct platform_driver sparc_i8042_driver = { |
| 100 | 100 | .driver = { |
| 101 | 101 | .name = "i8042", |
| 102 | − .owner = THIS_MODULE, | |
| 103 | 102 | .of_match_table = sparc_i8042_match, |
| 104 | 103 | }, |
| 105 | 104 | .probe = sparc_i8042_probe, |
| @@ -1463,7 +1463,6 @@ static int i8042_remove(struct platform_device *dev) · 1462 unmodified lines | ||
| 1463 | 1463 | static struct platform_driver i8042_driver = { |
| 1464 | 1464 | .driver = { |
| 1465 | 1465 | .name = "i8042", |
| 1466 | − .owner = THIS_MODULE, | |
| 1467 | 1466 | #ifdef CONFIG_PM |
| 1468 | 1467 | .pm = &i8042_pm_ops, |
| 1469 | 1468 | #endif |
| @@ -162,7 +162,6 @@ static int maceps2_remove(struct platform_device *dev) · 161 unmodified lines | ||
| 162 | 162 | static struct platform_driver maceps2_driver = { |
| 163 | 163 | .driver = { |
| 164 | 164 | .name = "maceps2", |
| 165 | − .owner = THIS_MODULE, | |
| 166 | 165 | }, |
| 167 | 166 | .probe = maceps2_probe, |
| 168 | 167 | .remove = maceps2_remove, |
| @@ -273,7 +273,6 @@ static struct platform_driver olpc_apsp_driver = { · 272 unmodified lines | ||
| 273 | 273 | .remove = olpc_apsp_remove, |
| 274 | 274 | .driver = { |
| 275 | 275 | .name = "olpc-apsp", |
| 276 | − .owner = THIS_MODULE, | |
| 277 | 276 | .of_match_table = olpc_apsp_dt_ids, |
| 278 | 277 | }, |
| 279 | 278 | }; |
| @@ -186,7 +186,6 @@ static int q40kbd_remove(struct platform_device *pdev) · 185 unmodified lines | ||
| 186 | 186 | static struct platform_driver q40kbd_driver = { |
| 187 | 187 | .driver = { |
| 188 | 188 | .name = "q40kbd", |
| 189 | − .owner = THIS_MODULE, | |
| 190 | 189 | }, |
| 191 | 190 | .remove = q40kbd_remove, |
| 192 | 191 | }; |
| @@ -168,7 +168,6 @@ static struct platform_driver rpckbd_driver = { · 167 unmodified lines | ||
| 168 | 168 | .remove = rpckbd_remove, |
| 169 | 169 | .driver = { |
| 170 | 170 | .name = "kart", |
| 171 | − .owner = THIS_MODULE, | |
| 172 | 171 | }, |
| 173 | 172 | }; |
| 174 | 173 | module_platform_driver(rpckbd_driver); |
| @@ -363,7 +363,6 @@ MODULE_DEVICE_TABLE(of, xps2_of_match); · 362 unmodified lines | ||
| 363 | 363 | static struct platform_driver xps2_of_driver = { |
| 364 | 364 | .driver = { |
| 365 | 365 | .name = DRIVER_NAME, |
| 366 | − .owner = THIS_MODULE, | |
| 367 | 366 | .of_match_table = xps2_of_match, |
| 368 | 367 | }, |
| 369 | 368 | .probe = xps2_of_probe, |
| @@ -292,7 +292,6 @@ static int pm860x_touch_probe(struct platform_device *pdev) · 291 unmodified lines | ||
| 292 | 292 | static struct platform_driver pm860x_touch_driver = { |
| 293 | 293 | .driver = { |
| 294 | 294 | .name = "88pm860x-touch", |
| 295 | − .owner = THIS_MODULE, | |
| 296 | 295 | }, |
| 297 | 296 | .probe = pm860x_touch_probe, |
| 298 | 297 | }; |
| @@ -425,7 +425,6 @@ static struct platform_driver atmel_wm97xx_driver = { · 424 unmodified lines | ||
| 425 | 425 | .remove = __exit_p(atmel_wm97xx_remove), |
| 426 | 426 | .driver = { |
| 427 | 427 | .name = "wm97xx-touch", |
| 428 | − .owner = THIS_MODULE, | |
| 429 | 428 | .pm = &atmel_wm97xx_pm_ops, |
| 430 | 429 | }, |
| 431 | 430 | }; |
| @@ -357,7 +357,6 @@ static int da9034_touch_probe(struct platform_device *pdev) · 356 unmodified lines | ||
| 357 | 357 | static struct platform_driver da9034_touch_driver = { |
| 358 | 358 | .driver = { |
| 359 | 359 | .name = "da9034-touch", |
| 360 | − .owner = THIS_MODULE, | |
| 361 | 360 | }, |
| 362 | 361 | .probe = da9034_touch_probe, |
| 363 | 362 | }; |
| @@ -337,7 +337,6 @@ static struct platform_driver da9052_tsi_driver = { · 336 unmodified lines | ||
| 337 | 337 | .remove = da9052_ts_remove, |
| 338 | 338 | .driver = { |
| 339 | 339 | .name = "da9052-tsi", |
| 340 | − .owner = THIS_MODULE, | |
| 341 | 340 | }, |
| 342 | 341 | }; |
| 343 | 342 | |
| @@ -644,7 +644,6 @@ static int mrstouch_probe(struct platform_device *pdev) · 643 unmodified lines | ||
| 644 | 644 | static struct platform_driver mrstouch_driver = { |
| 645 | 645 | .driver = { |
| 646 | 646 | .name = "pmic_touch", |
| 647 | − .owner = THIS_MODULE, | |
| 648 | 647 | }, |
| 649 | 648 | .probe = mrstouch_probe, |
| 650 | 649 | }; |
| @@ -148,7 +148,6 @@ static struct platform_driver jornada720_ts_driver = { · 147 unmodified lines | ||
| 148 | 148 | .probe = jornada720_ts_probe, |
| 149 | 149 | .driver = { |
| 150 | 150 | .name = "jornada_ts", |
| 151 | − .owner = THIS_MODULE, | |
| 152 | 151 | }, |
| 153 | 152 | }; |
| 154 | 153 | module_platform_driver(jornada720_ts_driver); |
| @@ -396,7 +396,6 @@ static struct platform_driver lpc32xx_ts_driver = { · 395 unmodified lines | ||
| 396 | 396 | .remove = lpc32xx_ts_remove, |
| 397 | 397 | .driver = { |
| 398 | 398 | .name = MOD_NAME, |
| 399 | − .owner = THIS_MODULE, | |
| 400 | 399 | .pm = LPC32XX_TS_PM_OPS, |
| 401 | 400 | .of_match_table = of_match_ptr(lpc32xx_tsc_of_match), |
| 402 | 401 | }, |
| @@ -243,7 +243,6 @@ static int mc13783_ts_remove(struct platform_device *pdev) · 242 unmodified lines | ||
| 243 | 243 | static struct platform_driver mc13783_ts_driver = { |
| 244 | 244 | .remove = mc13783_ts_remove, |
| 245 | 245 | .driver = { |
| 246 | − .owner = THIS_MODULE, | |
| 247 | 246 | .name = MC13783_TS_NAME, |
| 248 | 247 | }, |
| 249 | 248 | }; |
| @@ -247,7 +247,6 @@ static struct platform_driver pcap_ts_driver = { · 246 unmodified lines | ||
| 247 | 247 | .remove = pcap_ts_remove, |
| 248 | 248 | .driver = { |
| 249 | 249 | .name = "pcap-ts", |
| 250 | − .owner = THIS_MODULE, | |
| 251 | 250 | .pm = PCAP_TS_PM_OPS, |
| 252 | 251 | }, |
| 253 | 252 | }; |
| @@ -422,7 +422,6 @@ MODULE_DEVICE_TABLE(platform, s3cts_driver_ids); · 421 unmodified lines | ||
| 422 | 422 | static struct platform_driver s3c_ts_driver = { |
| 423 | 423 | .driver = { |
| 424 | 424 | .name = "samsung-ts", |
| 425 | − .owner = THIS_MODULE, | |
| 426 | 425 | #ifdef CONFIG_PM |
| 427 | 426 | .pm = &s3c_ts_pmops, |
| 428 | 427 | #endif |
| @@ -384,7 +384,6 @@ static int stmpe_ts_remove(struct platform_device *pdev) · 383 unmodified lines | ||
| 384 | 384 | static struct platform_driver stmpe_ts_driver = { |
| 385 | 385 | .driver = { |
| 386 | 386 | .name = STMPE_TS_NAME, |
| 387 | − .owner = THIS_MODULE, | |
| 388 | 387 | }, |
| 389 | 388 | .probe = stmpe_input_probe, |
| 390 | 389 | .remove = stmpe_ts_remove, |
| @@ -324,7 +324,6 @@ MODULE_DEVICE_TABLE(of, sun4i_ts_of_match); · 323 unmodified lines | ||
| 324 | 324 | |
| 325 | 325 | static struct platform_driver sun4i_ts_driver = { |
| 326 | 326 | .driver = { |
| 327 | − .owner = THIS_MODULE, | |
| 328 | 327 | .name = "sun4i-ts", |
| 329 | 328 | .of_match_table = of_match_ptr(sun4i_ts_of_match), |
| 330 | 329 | }, |
| @@ -518,7 +518,6 @@ static struct platform_driver ti_tsc_driver = { · 517 unmodified lines | ||
| 518 | 518 | .remove = titsc_remove, |
| 519 | 519 | .driver = { |
| 520 | 520 | .name = "TI-am335x-tsc", |
| 521 | − .owner = THIS_MODULE, | |
| 522 | 521 | .pm = TITSC_PM_OPS, |
| 523 | 522 | .of_match_table = ti_tsc_dt_ids, |
| 524 | 523 | }, |
| @@ -314,7 +314,6 @@ static int tps6507x_ts_remove(struct platform_device *pdev) · 313 unmodified lines | ||
| 314 | 314 | static struct platform_driver tps6507x_ts_driver = { |
| 315 | 315 | .driver = { |
| 316 | 316 | .name = "tps6507x-ts", |
| 317 | − .owner = THIS_MODULE, | |
| 318 | 317 | }, |
| 319 | 318 | .probe = tps6507x_ts_probe, |
| 320 | 319 | .remove = tps6507x_ts_remove, |
| @@ -444,7 +444,6 @@ static struct platform_driver ucb1400_ts_driver = { · 443 unmodified lines | ||
| 444 | 444 | .remove = ucb1400_ts_remove, |
| 445 | 445 | .driver = { |
| 446 | 446 | .name = "ucb1400_ts", |
| 447 | − .owner = THIS_MODULE, | |
| 448 | 447 | .pm = &ucb1400_ts_pm_ops, |
| 449 | 448 | }, |
| 450 | 449 | }; |
| @@ -326,7 +326,6 @@ static struct platform_driver w90x900ts_driver = { · 325 unmodified lines | ||
| 326 | 326 | .remove = w90x900ts_remove, |
| 327 | 327 | .driver = { |
| 328 | 328 | .name = "nuc900-ts", |
| 329 | − .owner = THIS_MODULE, | |
| 330 | 329 | }, |
| 331 | 330 | }; |
| 332 | 331 | module_platform_driver(w90x900ts_driver); |
| @@ -392,7 +392,6 @@ static int wm831x_ts_remove(struct platform_device *pdev) · 391 unmodified lines | ||
| 392 | 392 | static struct platform_driver wm831x_ts_driver = { |
| 393 | 393 | .driver = { |
| 394 | 394 | .name = "wm831x-touch", |
| 395 | − .owner = THIS_MODULE, | |
| 396 | 395 | }, |
| 397 | 396 | .probe = wm831x_ts_probe, |
| 398 | 397 | .remove = wm831x_ts_remove, |
| @@ -2136,7 +2136,6 @@ static int arm_smmu_device_remove(struct platform_device *pdev) · 2135 unmodified lines | ||
| 2136 | 2136 | |
| 2137 | 2137 | static struct platform_driver arm_smmu_driver = { |
| 2138 | 2138 | .driver = { |
| 2139 | − .owner = THIS_MODULE, | |
| 2140 | 2139 | .name = "arm-smmu", |
| 2141 | 2140 | .of_match_table = of_match_ptr(arm_smmu_of_match), |
| 2142 | 2141 | }, |
| @@ -684,7 +684,6 @@ static const struct of_device_id sysmmu_of_match[] __initconst = { · 683 unmodified lines | ||
| 684 | 684 | static struct platform_driver exynos_sysmmu_driver __refdata = { |
| 685 | 685 | .probe = exynos_sysmmu_probe, |
| 686 | 686 | .driver = { |
| 687 | − .owner = THIS_MODULE, | |
| 688 | 687 | .name = "exynos-sysmmu", |
| 689 | 688 | .of_match_table = sysmmu_of_match, |
| 690 | 689 | } |
| @@ -1227,7 +1227,6 @@ static const struct of_device_id fsl_of_pamu_ids[] = { · 1226 unmodified lines | ||
| 1227 | 1227 | static struct platform_driver fsl_of_pamu_driver = { |
| 1228 | 1228 | .driver = { |
| 1229 | 1229 | .name = "fsl-of-pamu", |
| 1230 | − .owner = THIS_MODULE, | |
| 1231 | 1230 | }, |
| 1232 | 1231 | .probe = fsl_pamu_probe, |
| 1233 | 1232 | }; |
| @@ -1222,7 +1222,6 @@ static int ipmmu_remove(struct platform_device *pdev) · 1221 unmodified lines | ||
| 1222 | 1222 | |
| 1223 | 1223 | static struct platform_driver ipmmu_driver = { |
| 1224 | 1224 | .driver = { |
| 1225 | − .owner = THIS_MODULE, | |
| 1226 | 1225 | .name = "ipmmu-vmsa", |
| 1227 | 1226 | }, |
| 1228 | 1227 | .probe = ipmmu_probe, |
| @@ -118,7 +118,6 @@ static int ipmmu_probe(struct platform_device *pdev) · 117 unmodified lines | ||
| 118 | 118 | static struct platform_driver ipmmu_driver = { |
| 119 | 119 | .probe = ipmmu_probe, |
| 120 | 120 | .driver = { |
| 121 | − .owner = THIS_MODULE, | |
| 122 | 121 | .name = "ipmmu", |
| 123 | 122 | }, |
| 124 | 123 | }; |
| @@ -425,7 +425,6 @@ static struct platform_driver tegra_gart_driver = { · 424 unmodified lines | ||
| 425 | 425 | .probe = tegra_gart_probe, |
| 426 | 426 | .remove = tegra_gart_remove, |
| 427 | 427 | .driver = { |
| 428 | − .owner = THIS_MODULE, | |
| 429 | 428 | .name = "tegra-gart", |
| 430 | 429 | .pm = &tegra_gart_pm_ops, |
| 431 | 430 | .of_match_table = tegra_gart_of_match, |
| @@ -218,7 +218,6 @@ static struct platform_driver keystone_irq_device_driver = { · 217 unmodified lines | ||
| 218 | 218 | .remove = keystone_irq_remove, |
| 219 | 219 | .driver = { |
| 220 | 220 | .name = "keystone_irq", |
| 221 | − .owner = THIS_MODULE, | |
| 222 | 221 | .of_match_table = of_match_ptr(keystone_irq_dt_ids), |
| 223 | 222 | } |
| 224 | 223 | }; |
| @@ -562,7 +562,6 @@ static struct platform_driver intc_irqpin_device_driver = { · 561 unmodified lines | ||
| 562 | 562 | .driver = { |
| 563 | 563 | .name = "renesas_intc_irqpin", |
| 564 | 564 | .of_match_table = intc_irqpin_dt_ids, |
| 565 | − .owner = THIS_MODULE, | |
| 566 | 565 | } |
| 567 | 566 | }; |
| 568 | 567 | |
| @@ -281,7 +281,6 @@ static struct platform_driver irqc_device_driver = { · 280 unmodified lines | ||
| 281 | 281 | .driver = { |
| 282 | 282 | .name = "renesas_irqc", |
| 283 | 283 | .of_match_table = irqc_dt_ids, |
| 284 | − .owner = THIS_MODULE, | |
| 285 | 284 | } |
| 286 | 285 | }; |
| 287 | 286 | |
| @@ -237,7 +237,6 @@ static int pm860x_led_remove(struct platform_device *pdev) · 236 unmodified lines | ||
| 237 | 237 | static struct platform_driver pm860x_led_driver = { |
| 238 | 238 | .driver = { |
| 239 | 239 | .name = "88pm860x-led", |
| 240 | − .owner = THIS_MODULE, | |
| 241 | 240 | }, |
| 242 | 241 | .probe = pm860x_led_probe, |
| 243 | 242 | .remove = pm860x_led_remove, |
| @@ -201,7 +201,6 @@ static int adp5520_led_remove(struct platform_device *pdev) · 200 unmodified lines | ||
| 201 | 201 | static struct platform_driver adp5520_led_driver = { |
| 202 | 202 | .driver = { |
| 203 | 203 | .name = "adp5520-led", |
| 204 | − .owner = THIS_MODULE, | |
| 205 | 204 | }, |
| 206 | 205 | .probe = adp5520_led_probe, |
| 207 | 206 | .remove = adp5520_led_remove, |
| @@ -168,7 +168,6 @@ static struct platform_driver asic3_led_driver = { · 167 unmodified lines | ||
| 168 | 168 | .remove = asic3_led_remove, |
| 169 | 169 | .driver = { |
| 170 | 170 | .name = "leds-asic3", |
| 171 | − .owner = THIS_MODULE, | |
| 172 | 171 | .pm = &asic3_led_pm_ops, |
| 173 | 172 | }, |
| 174 | 173 | }; |
| @@ -168,7 +168,6 @@ static struct platform_driver clevo_mail_led_driver = { · 167 unmodified lines | ||
| 168 | 168 | .remove = clevo_mail_led_remove, |
| 169 | 169 | .driver = { |
| 170 | 170 | .name = KBUILD_MODNAME, |
| 171 | − .owner = THIS_MODULE, | |
| 172 | 171 | }, |
| 173 | 172 | }; |
| 174 | 173 | |
| @@ -76,7 +76,6 @@ static struct platform_driver cobalt_qube_led_driver = { · 75 unmodified lines | ||
| 76 | 76 | .remove = cobalt_qube_led_remove, |
| 77 | 77 | .driver = { |
| 78 | 78 | .name = "cobalt-qube-leds", |
| 79 | − .owner = THIS_MODULE, | |
| 80 | 79 | }, |
| 81 | 80 | }; |
| 82 | 81 | |
| @@ -124,7 +124,6 @@ static struct platform_driver cobalt_raq_led_driver = { · 123 unmodified lines | ||
| 124 | 124 | .remove = cobalt_raq_led_remove, |
| 125 | 125 | .driver = { |
| 126 | 126 | .name = "cobalt-raq-leds", |
| 127 | − .owner = THIS_MODULE, | |
| 128 | 127 | }, |
| 129 | 128 | }; |
| 130 | 129 | |
| @@ -144,7 +144,6 @@ static int da903x_led_remove(struct platform_device *pdev) · 143 unmodified lines | ||
| 144 | 144 | static struct platform_driver da903x_led_driver = { |
| 145 | 145 | .driver = { |
| 146 | 146 | .name = "da903x-led", |
| 147 | − .owner = THIS_MODULE, | |
| 148 | 147 | }, |
| 149 | 148 | .probe = da903x_led_probe, |
| 150 | 149 | .remove = da903x_led_remove, |
| @@ -199,7 +199,6 @@ static int da9052_led_remove(struct platform_device *pdev) · 198 unmodified lines | ||
| 199 | 199 | static struct platform_driver da9052_led_driver = { |
| 200 | 200 | .driver = { |
| 201 | 201 | .name = "da9052-leds", |
| 202 | − .owner = THIS_MODULE, | |
| 203 | 202 | }, |
| 204 | 203 | .probe = da9052_led_probe, |
| 205 | 204 | .remove = da9052_led_remove, |
| @@ -291,7 +291,6 @@ static struct platform_driver gpio_led_driver = { · 290 unmodified lines | ||
| 291 | 291 | .remove = gpio_led_remove, |
| 292 | 292 | .driver = { |
| 293 | 293 | .name = "leds-gpio", |
| 294 | − .owner = THIS_MODULE, | |
| 295 | 294 | .of_match_table = of_gpio_leds_match, |
| 296 | 295 | }, |
| 297 | 296 | }; |
| @@ -83,7 +83,6 @@ static struct platform_driver hp6xxled_driver = { · 82 unmodified lines | ||
| 83 | 83 | .remove = hp6xxled_remove, |
| 84 | 84 | .driver = { |
| 85 | 85 | .name = "hp6xx-led", |
| 86 | − .owner = THIS_MODULE, | |
| 87 | 86 | }, |
| 88 | 87 | }; |
| 89 | 88 | |
| @@ -766,7 +766,6 @@ static void lm3533_led_shutdown(struct platform_device *pdev) · 765 unmodified lines | ||
| 766 | 766 | static struct platform_driver lm3533_led_driver = { |
| 767 | 767 | .driver = { |
| 768 | 768 | .name = "lm3533-leds", |
| 769 | − .owner = THIS_MODULE, | |
| 770 | 769 | }, |
| 771 | 770 | .probe = lm3533_led_probe, |
| 772 | 771 | .remove = lm3533_led_remove, |
| @@ -183,7 +183,6 @@ static struct platform_driver lp8788_led_driver = { · 182 unmodified lines | ||
| 183 | 183 | .remove = lp8788_led_remove, |
| 184 | 184 | .driver = { |
| 185 | 185 | .name = LP8788_DEV_KEYLED, |
| 186 | − .owner = THIS_MODULE, | |
| 187 | 186 | }, |
| 188 | 187 | }; |
| 189 | 188 | module_platform_driver(lp8788_led_driver); |
| @@ -184,7 +184,6 @@ static struct platform_driver lt3593_led_driver = { · 183 unmodified lines | ||
| 184 | 184 | .remove = lt3593_led_remove, |
| 185 | 185 | .driver = { |
| 186 | 186 | .name = "leds-lt3593", |
| 187 | − .owner = THIS_MODULE, | |
| 188 | 187 | }, |
| 189 | 188 | }; |
| 190 | 189 | |
| @@ -303,7 +303,6 @@ static int max8997_led_remove(struct platform_device *pdev) · 302 unmodified lines | ||
| 303 | 303 | static struct platform_driver max8997_led_driver = { |
| 304 | 304 | .driver = { |
| 305 | 305 | .name = "max8997-led", |
| 306 | − .owner = THIS_MODULE, | |
| 307 | 306 | }, |
| 308 | 307 | .probe = max8997_led_probe, |
| 309 | 308 | .remove = max8997_led_remove, |
| @@ -325,7 +325,6 @@ MODULE_DEVICE_TABLE(platform, mc13xxx_led_id_table); · 324 unmodified lines | ||
| 325 | 325 | static struct platform_driver mc13xxx_led_driver = { |
| 326 | 326 | .driver = { |
| 327 | 327 | .name = "mc13xxx-led", |
| 328 | − .owner = THIS_MODULE, | |
| 329 | 328 | }, |
| 330 | 329 | .remove = mc13xxx_led_remove, |
| 331 | 330 | .id_table = mc13xxx_led_id_table, |
| @@ -119,7 +119,6 @@ static struct platform_driver menf21bmc_led = { · 118 unmodified lines | ||
| 119 | 119 | .remove = menf21bmc_led_remove, |
| 120 | 120 | .driver = { |
| 121 | 121 | .name = "menf21bmc_led", |
| 122 | − .owner = THIS_MODULE, | |
| 123 | 122 | }, |
| 124 | 123 | }; |
| 125 | 124 | |
| @@ -53,7 +53,6 @@ static struct platform_driver net48xx_led_driver = { · 52 unmodified lines | ||
| 53 | 53 | .remove = net48xx_led_remove, |
| 54 | 54 | .driver = { |
| 55 | 55 | .name = DRVNAME, |
| 56 | − .owner = THIS_MODULE, | |
| 57 | 56 | }, |
| 58 | 57 | }; |
| 59 | 58 | |
| @@ -404,7 +404,6 @@ static struct platform_driver netxbig_led_driver = { · 403 unmodified lines | ||
| 404 | 404 | .remove = netxbig_led_remove, |
| 405 | 405 | .driver = { |
| 406 | 406 | .name = "leds-netxbig", |
| 407 | − .owner = THIS_MODULE, | |
| 408 | 407 | }, |
| 409 | 408 | }; |
| 410 | 409 | |
| @@ -380,7 +380,6 @@ static struct platform_driver ns2_led_driver = { · 379 unmodified lines | ||
| 380 | 380 | .remove = ns2_led_remove, |
| 381 | 381 | .driver = { |
| 382 | 382 | .name = "leds-ns2", |
| 383 | − .owner = THIS_MODULE, | |
| 384 | 383 | .of_match_table = of_match_ptr(of_ns2_leds_match), |
| 385 | 384 | }, |
| 386 | 385 | }; |
| @@ -158,7 +158,6 @@ static struct platform_driver ot200_led_driver = { · 157 unmodified lines | ||
| 158 | 158 | .remove = ot200_led_remove, |
| 159 | 159 | .driver = { |
| 160 | 160 | .name = "leds-ot200", |
| 161 | − .owner = THIS_MODULE, | |
| 162 | 161 | }, |
| 163 | 162 | }; |
| 164 | 163 | |
| @@ -232,7 +232,6 @@ static struct platform_driver led_pwm_driver = { · 231 unmodified lines | ||
| 232 | 232 | .remove = led_pwm_remove, |
| 233 | 233 | .driver = { |
| 234 | 234 | .name = "leds_pwm", |
| 235 | − .owner = THIS_MODULE, | |
| 236 | 235 | .of_match_table = of_pwm_leds_match, |
| 237 | 236 | }, |
| 238 | 237 | }; |
| @@ -53,7 +53,6 @@ static struct platform_driver rb532_led_driver = { · 52 unmodified lines | ||
| 53 | 53 | .remove = rb532_led_remove, |
| 54 | 54 | .driver = { |
| 55 | 55 | .name = "rb532-led", |
| 56 | − .owner = THIS_MODULE, | |
| 57 | 56 | }, |
| 58 | 57 | }; |
| 59 | 58 | |
| @@ -221,7 +221,6 @@ static int regulator_led_remove(struct platform_device *pdev) · 220 unmodified lines | ||
| 221 | 221 | static struct platform_driver regulator_led_driver = { |
| 222 | 222 | .driver = { |
| 223 | 223 | .name = "leds-regulator", |
| 224 | − .owner = THIS_MODULE, | |
| 225 | 224 | }, |
| 226 | 225 | .probe = regulator_led_probe, |
| 227 | 226 | .remove = regulator_led_remove, |
| @@ -116,7 +116,6 @@ static struct platform_driver s3c24xx_led_driver = { · 115 unmodified lines | ||
| 116 | 116 | .remove = s3c24xx_led_remove, |
| 117 | 117 | .driver = { |
| 118 | 118 | .name = "s3c24xx_led", |
| 119 | − .owner = THIS_MODULE, | |
| 120 | 119 | }, |
| 121 | 120 | }; |
| 122 | 121 | |
| @@ -223,7 +223,6 @@ static struct platform_driver sunfire_clockboard_led_driver = { · 222 unmodified lines | ||
| 223 | 223 | .remove = sunfire_led_generic_remove, |
| 224 | 224 | .driver = { |
| 225 | 225 | .name = "sunfire-clockboard-leds", |
| 226 | − .owner = THIS_MODULE, | |
| 227 | 226 | }, |
| 228 | 227 | }; |
| 229 | 228 | |
| @@ -232,7 +231,6 @@ static struct platform_driver sunfire_fhc_led_driver = { · 2 unmodified lines | ||
| 232 | 231 | .remove = sunfire_led_generic_remove, |
| 233 | 232 | .driver = { |
| 234 | 233 | .name = "sunfire-fhc-leds", |
| 235 | − .owner = THIS_MODULE, | |
| 236 | 234 | }, |
| 237 | 235 | }; |
| 238 | 236 | |
| @@ -312,7 +312,6 @@ static int wm831x_status_remove(struct platform_device *pdev) · 311 unmodified lines | ||
| 312 | 312 | static struct platform_driver wm831x_status_driver = { |
| 313 | 313 | .driver = { |
| 314 | 314 | .name = "wm831x-status", |
| 315 | − .owner = THIS_MODULE, | |
| 316 | 315 | }, |
| 317 | 316 | .probe = wm831x_status_probe, |
| 318 | 317 | .remove = wm831x_status_remove, |
| @@ -272,7 +272,6 @@ static int wm8350_led_remove(struct platform_device *pdev) · 271 unmodified lines | ||
| 272 | 272 | static struct platform_driver wm8350_led_driver = { |
| 273 | 273 | .driver = { |
| 274 | 274 | .name = "wm8350-led", |
| 275 | − .owner = THIS_MODULE, | |
| 276 | 275 | }, |
| 277 | 276 | .probe = wm8350_led_probe, |
| 278 | 277 | .remove = wm8350_led_remove, |
| @@ -111,7 +111,6 @@ static struct platform_driver wrap_led_driver = { · 110 unmodified lines | ||
| 111 | 111 | .remove = wrap_led_remove, |
| 112 | 112 | .driver = { |
| 113 | 113 | .name = DRVNAME, |
| 114 | − .owner = THIS_MODULE, | |
| 115 | 114 | }, |
| 116 | 115 | }; |
| 117 | 116 | |
| @@ -667,7 +667,6 @@ static struct platform_driver smu_of_platform_driver = · 666 unmodified lines | ||
| 667 | 667 | { |
| 668 | 668 | .driver = { |
| 669 | 669 | .name = "smu", |
| 670 | − .owner = THIS_MODULE, | |
| 671 | 670 | .of_match_table = smu_platform_match, |
| 672 | 671 | }, |
| 673 | 672 | .probe = smu_platform_probe, |
| @@ -2243,7 +2243,6 @@ static struct platform_driver fcu_of_platform_driver = · 2242 unmodified lines | ||
| 2243 | 2243 | { |
| 2244 | 2244 | .driver = { |
| 2245 | 2245 | .name = "temperature", |
| 2246 | − .owner = THIS_MODULE, | |
| 2247 | 2246 | .of_match_table = fcu_match, |
| 2248 | 2247 | }, |
| 2249 | 2248 | .probe = fcu_of_probe, |
| @@ -463,7 +463,6 @@ static const struct of_device_id therm_of_match[] = {{ · 462 unmodified lines | ||
| 463 | 463 | static struct platform_driver therm_of_driver = { |
| 464 | 464 | .driver = { |
| 465 | 465 | .name = "temperature", |
| 466 | − .owner = THIS_MODULE, | |
| 467 | 466 | .of_match_table = therm_of_match, |
| 468 | 467 | }, |
| 469 | 468 | .probe = therm_of_probe, |
| @@ -770,7 +770,6 @@ static struct platform_driver wf_smu_driver = { · 769 unmodified lines | ||
| 770 | 770 | .remove = wf_smu_remove, |
| 771 | 771 | .driver = { |
| 772 | 772 | .name = "windfarm", |
| 773 | − .owner = THIS_MODULE, | |
| 774 | 773 | }, |
| 775 | 774 | }; |
| 776 | 775 | |
| @@ -699,7 +699,6 @@ static struct platform_driver wf_smu_driver = { · 698 unmodified lines | ||
| 699 | 699 | .remove = wf_smu_remove, |
| 700 | 700 | .driver = { |
| 701 | 701 | .name = "windfarm", |
| 702 | − .owner = THIS_MODULE, | |
| 703 | 702 | }, |
| 704 | 703 | }; |
| 705 | 704 | |
| @@ -864,7 +864,6 @@ static struct platform_driver omap_mbox_driver = { · 863 unmodified lines | ||
| 864 | 864 | .remove = omap_mbox_remove, |
| 865 | 865 | .driver = { |
| 866 | 866 | .name = "omap-mailbox", |
| 867 | − .owner = THIS_MODULE, | |
| 868 | 867 | .of_match_table = of_match_ptr(omap_mailbox_of_match), |
| 869 | 868 | }, |
| 870 | 869 | }; |
| @@ -1120,7 +1120,6 @@ static int bcap_remove(struct platform_device *pdev) · 1119 unmodified lines | ||
| 1120 | 1120 | static struct platform_driver bcap_driver = { |
| 1121 | 1121 | .driver = { |
| 1122 | 1122 | .name = CAPTURE_DRV_NAME, |
| 1123 | − .owner = THIS_MODULE, | |
| 1124 | 1123 | }, |
| 1125 | 1124 | .probe = bcap_probe, |
| 1126 | 1125 | .remove = bcap_remove, |
| @@ -2225,7 +2225,6 @@ static struct platform_driver coda_driver = { · 2224 unmodified lines | ||
| 2225 | 2225 | .remove = coda_remove, |
| 2226 | 2226 | .driver = { |
| 2227 | 2227 | .name = CODA_NAME, |
| 2228 | − .owner = THIS_MODULE, | |
| 2229 | 2228 | .of_match_table = of_match_ptr(coda_dt_ids), |
| 2230 | 2229 | .pm = &coda_pm_ops, |
| 2231 | 2230 | }, |
| @@ -1030,7 +1030,6 @@ static int dm355_ccdc_remove(struct platform_device *pdev) · 1029 unmodified lines | ||
| 1030 | 1030 | static struct platform_driver dm355_ccdc_driver = { |
| 1031 | 1031 | .driver = { |
| 1032 | 1032 | .name = "dm355_ccdc", |
| 1033 | − .owner = THIS_MODULE, | |
| 1034 | 1033 | }, |
| 1035 | 1034 | .remove = dm355_ccdc_remove, |
| 1036 | 1035 | .probe = dm355_ccdc_probe, |
| @@ -1029,7 +1029,6 @@ static const struct dev_pm_ops dm644x_ccdc_pm_ops = { · 1028 unmodified lines | ||
| 1029 | 1029 | static struct platform_driver dm644x_ccdc_driver = { |
| 1030 | 1030 | .driver = { |
| 1031 | 1031 | .name = "dm644x_ccdc", |
| 1032 | − .owner = THIS_MODULE, | |
| 1033 | 1032 | .pm = &dm644x_ccdc_pm_ops, |
| 1034 | 1033 | }, |
| 1035 | 1034 | .remove = dm644x_ccdc_remove, |
| @@ -1134,7 +1134,6 @@ static int isif_remove(struct platform_device *pdev) · 1133 unmodified lines | ||
| 1134 | 1134 | static struct platform_driver isif_driver = { |
| 1135 | 1135 | .driver = { |
| 1136 | 1136 | .name = "isif", |
| 1137 | − .owner = THIS_MODULE, | |
| 1138 | 1137 | }, |
| 1139 | 1138 | .remove = isif_remove, |
| 1140 | 1139 | .probe = isif_probe, |
| @@ -876,7 +876,6 @@ static int vpbe_remove(struct platform_device *device) · 875 unmodified lines | ||
| 876 | 876 | static struct platform_driver vpbe_driver = { |
| 877 | 877 | .driver = { |
| 878 | 878 | .name = "vpbe_controller", |
| 879 | − .owner = THIS_MODULE, | |
| 880 | 879 | }, |
| 881 | 880 | .probe = vpbe_probe, |
| 882 | 881 | .remove = vpbe_remove, |
| @@ -1526,7 +1526,6 @@ static int vpbe_display_remove(struct platform_device *pdev) · 1525 unmodified lines | ||
| 1526 | 1526 | static struct platform_driver vpbe_display_driver = { |
| 1527 | 1527 | .driver = { |
| 1528 | 1528 | .name = VPBE_DISPLAY_DRIVER, |
| 1529 | − .owner = THIS_MODULE, | |
| 1530 | 1529 | .bus = &platform_bus_type, |
| 1531 | 1530 | }, |
| 1532 | 1531 | .probe = vpbe_display_probe, |
| @@ -1585,7 +1585,6 @@ static struct platform_driver osd_driver = { · 1584 unmodified lines | ||
| 1585 | 1585 | .remove = osd_remove, |
| 1586 | 1586 | .driver = { |
| 1587 | 1587 | .name = MODULE_NAME, |
| 1588 | − .owner = THIS_MODULE, | |
| 1589 | 1588 | }, |
| 1590 | 1589 | .id_table = vpbe_osd_devtype |
| 1591 | 1590 | }; |
| @@ -687,7 +687,6 @@ static struct platform_driver venc_driver = { · 686 unmodified lines | ||
| 687 | 687 | .remove = venc_remove, |
| 688 | 688 | .driver = { |
| 689 | 689 | .name = MODULE_NAME, |
| 690 | − .owner = THIS_MODULE, | |
| 691 | 690 | }, |
| 692 | 691 | .id_table = vpbe_venc_devtype |
| 693 | 692 | }; |
| @@ -2031,7 +2031,6 @@ static const struct dev_pm_ops vpfe_dev_pm_ops = { · 2030 unmodified lines | ||
| 2031 | 2031 | static struct platform_driver vpfe_driver = { |
| 2032 | 2032 | .driver = { |
| 2033 | 2033 | .name = CAPTURE_DRV_NAME, |
| 2034 | − .owner = THIS_MODULE, | |
| 2035 | 2034 | .pm = &vpfe_dev_pm_ops, |
| 2036 | 2035 | }, |
| 2037 | 2036 | .probe = vpfe_probe, |
| @@ -467,7 +467,6 @@ static const struct dev_pm_ops vpif_pm = { · 466 unmodified lines | ||
| 467 | 467 | static struct platform_driver vpif_driver = { |
| 468 | 468 | .driver = { |
| 469 | 469 | .name = "vpif", |
| 470 | − .owner = THIS_MODULE, | |
| 471 | 470 | .pm = vpif_pm_ops, |
| 472 | 471 | }, |
| 473 | 472 | .remove = vpif_remove, |
| @@ -1658,7 +1658,6 @@ static SIMPLE_DEV_PM_OPS(vpif_pm_ops, vpif_suspend, vpif_resume); · 1657 unmodified lines | ||
| 1658 | 1658 | static __refdata struct platform_driver vpif_driver = { |
| 1659 | 1659 | .driver = { |
| 1660 | 1660 | .name = VPIF_DRIVER_NAME, |
| 1661 | − .owner = THIS_MODULE, | |
| 1662 | 1661 | .pm = &vpif_pm_ops, |
| 1663 | 1662 | }, |
| 1664 | 1663 | .probe = vpif_probe, |
| @@ -1459,7 +1459,6 @@ static SIMPLE_DEV_PM_OPS(vpif_pm_ops, vpif_suspend, vpif_resume); · 1458 unmodified lines | ||
| 1459 | 1459 | static __refdata struct platform_driver vpif_driver = { |
| 1460 | 1460 | .driver = { |
| 1461 | 1461 | .name = VPIF_DRIVER_NAME, |
| 1462 | − .owner = THIS_MODULE, | |
| 1463 | 1462 | .pm = &vpif_pm_ops, |
| 1464 | 1463 | }, |
| 1465 | 1464 | .probe = vpif_probe, |
| @@ -504,7 +504,6 @@ static const struct dev_pm_ops vpss_pm_ops = { · 503 unmodified lines | ||
| 504 | 504 | static struct platform_driver vpss_driver = { |
| 505 | 505 | .driver = { |
| 506 | 506 | .name = "vpss", |
| 507 | − .owner = THIS_MODULE, | |
| 508 | 507 | .pm = &vpss_pm_ops, |
| 509 | 508 | }, |
| 510 | 509 | .remove = vpss_remove, |
| @@ -1256,7 +1256,6 @@ static struct platform_driver gsc_driver = { · 1255 unmodified lines | ||
| 1256 | 1256 | .id_table = gsc_driver_ids, |
| 1257 | 1257 | .driver = { |
| 1258 | 1258 | .name = GSC_MODULE_NAME, |
| 1259 | − .owner = THIS_MODULE, | |
| 1260 | 1259 | .pm = &gsc_pm_ops, |
| 1261 | 1260 | .of_match_table = exynos_gsc_match, |
| 1262 | 1261 | } |
| @@ -1294,7 +1294,6 @@ static struct platform_driver fimc_driver = { · 1293 unmodified lines | ||
| 1294 | 1294 | .driver = { |
| 1295 | 1295 | .of_match_table = fimc_of_match, |
| 1296 | 1296 | .name = FIMC_DRIVER_NAME, |
| 1297 | − .owner = THIS_MODULE, | |
| 1298 | 1297 | .pm = &fimc_pm_ops, |
| 1299 | 1298 | } |
| 1300 | 1299 | }; |
| @@ -133,7 +133,6 @@ static struct platform_driver fimc_is_i2c_driver = { · 132 unmodified lines | ||
| 133 | 133 | .driver = { |
| 134 | 134 | .of_match_table = fimc_is_i2c_of_match, |
| 135 | 135 | .name = "fimc-isp-i2c", |
| 136 | − .owner = THIS_MODULE, | |
| 137 | 136 | .pm = &fimc_is_i2c_pm_ops, |
| 138 | 137 | } |
| 139 | 138 | }; |
| @@ -960,7 +960,6 @@ static struct platform_driver fimc_is_driver = { · 959 unmodified lines | ||
| 960 | 960 | .driver = { |
| 961 | 961 | .of_match_table = fimc_is_of_match, |
| 962 | 962 | .name = FIMC_IS_DRV_NAME, |
| 963 | − .owner = THIS_MODULE, | |
| 964 | 963 | .pm = &fimc_is_pm_ops, |
| 965 | 964 | } |
| 966 | 965 | }; |
| @@ -1720,7 +1720,6 @@ static struct platform_driver fimc_lite_driver = { · 1719 unmodified lines | ||
| 1720 | 1720 | .driver = { |
| 1721 | 1721 | .of_match_table = flite_of_match, |
| 1722 | 1722 | .name = FIMC_LITE_DRV_NAME, |
| 1723 | − .owner = THIS_MODULE, | |
| 1724 | 1723 | .pm = &fimc_lite_pm_ops, |
| 1725 | 1724 | } |
| 1726 | 1725 | }; |
| @@ -1469,7 +1469,6 @@ static struct platform_driver fimc_md_driver = { · 1468 unmodified lines | ||
| 1469 | 1469 | .driver = { |
| 1470 | 1470 | .of_match_table = of_match_ptr(fimc_md_of_match), |
| 1471 | 1471 | .name = "s5p-fimc-md", |
| 1472 | − .owner = THIS_MODULE, | |
| 1473 | 1472 | } |
| 1474 | 1473 | }; |
| 1475 | 1474 | |
| @@ -1041,7 +1041,6 @@ static struct platform_driver s5pcsis_driver = { · 1040 unmodified lines | ||
| 1041 | 1041 | .driver = { |
| 1042 | 1042 | .of_match_table = s5pcsis_of_match, |
| 1043 | 1043 | .name = CSIS_DRIVER_NAME, |
| 1044 | − .owner = THIS_MODULE, | |
| 1045 | 1044 | .pm = &s5pcsis_pm_ops, |
| 1046 | 1045 | }, |
| 1047 | 1046 | }; |
| @@ -1681,7 +1681,6 @@ static struct platform_driver viu_of_platform_driver = { · 1680 unmodified lines | ||
| 1681 | 1681 | #endif |
| 1682 | 1682 | .driver = { |
| 1683 | 1683 | .name = DRV_NAME, |
| 1684 | − .owner = THIS_MODULE, | |
| 1685 | 1684 | .of_match_table = mpc512x_viu_of_match, |
| 1686 | 1685 | }, |
| 1687 | 1686 | }; |
| @@ -1101,7 +1101,6 @@ static struct platform_driver deinterlace_pdrv = { · 1100 unmodified lines | ||
| 1101 | 1101 | .remove = deinterlace_remove, |
| 1102 | 1102 | .driver = { |
| 1103 | 1103 | .name = MEM2MEM_NAME, |
| 1104 | − .owner = THIS_MODULE, | |
| 1105 | 1104 | }, |
| 1106 | 1105 | }; |
| 1107 | 1106 | module_platform_driver(deinterlace_pdrv); |
| @@ -512,7 +512,6 @@ static struct platform_driver mmpcam_driver = { · 511 unmodified lines | ||
| 512 | 512 | #endif |
| 513 | 513 | .driver = { |
| 514 | 514 | .name = "mmp-camera", |
| 515 | − .owner = THIS_MODULE | |
| 516 | 515 | } |
| 517 | 516 | }; |
| 518 | 517 | |
| @@ -1005,7 +1005,6 @@ static struct platform_driver emmaprp_pdrv = { · 1004 unmodified lines | ||
| 1005 | 1005 | .remove = emmaprp_remove, |
| 1006 | 1006 | .driver = { |
| 1007 | 1007 | .name = MEM2MEM_NAME, |
| 1008 | − .owner = THIS_MODULE, | |
| 1009 | 1008 | }, |
| 1010 | 1009 | }; |
| 1011 | 1010 | module_platform_driver(emmaprp_pdrv); |
| @@ -2380,7 +2380,6 @@ static struct platform_driver omap3isp_driver = { · 2379 unmodified lines | ||
| 2380 | 2380 | .remove = isp_remove, |
| 2381 | 2381 | .id_table = omap3isp_id_table, |
| 2382 | 2382 | .driver = { |
| 2383 | − .owner = THIS_MODULE, | |
| 2384 | 2383 | .name = "omap3isp", |
| 2385 | 2384 | .pm = &omap3isp_pm_ops, |
| 2386 | 2385 | }, |
| @@ -651,7 +651,6 @@ static struct platform_driver s3c_camif_driver = { · 650 unmodified lines | ||
| 651 | 651 | .id_table = s3c_camif_driver_ids, |
| 652 | 652 | .driver = { |
| 653 | 653 | .name = S3C_CAMIF_DRIVER_NAME, |
| 654 | − .owner = THIS_MODULE, | |
| 655 | 654 | .pm = &s3c_camif_pm_ops, |
| 656 | 655 | } |
| 657 | 656 | }; |
| @@ -806,7 +806,6 @@ static struct platform_driver g2d_pdrv = { · 805 unmodified lines | ||
| 806 | 806 | .id_table = g2d_driver_ids, |
| 807 | 807 | .driver = { |
| 808 | 808 | .name = G2D_NAME, |
| 809 | − .owner = THIS_MODULE, | |
| 810 | 809 | .of_match_table = exynos_g2d_match, |
| 811 | 810 | }, |
| 812 | 811 | }; |
| @@ -2763,7 +2763,6 @@ static struct platform_driver s5p_jpeg_driver = { · 2762 unmodified lines | ||
| 2763 | 2763 | .remove = s5p_jpeg_remove, |
| 2764 | 2764 | .driver = { |
| 2765 | 2765 | .of_match_table = of_match_ptr(samsung_jpeg_match), |
| 2766 | − .owner = THIS_MODULE, | |
| 2767 | 2766 | .name = S5P_JPEG_M2M_NAME, |
| 2768 | 2767 | .pm = &s5p_jpeg_pm_ops, |
| 2769 | 2768 | }, |
| @@ -1516,7 +1516,6 @@ static struct platform_driver s5p_mfc_driver = { · 1515 unmodified lines | ||
| 1516 | 1516 | .id_table = mfc_driver_ids, |
| 1517 | 1517 | .driver = { |
| 1518 | 1518 | .name = S5P_MFC_NAME, |
| 1519 | − .owner = THIS_MODULE, | |
| 1520 | 1519 | .pm = &s5p_mfc_pm_ops, |
| 1521 | 1520 | .of_match_table = exynos_mfc_match, |
| 1522 | 1521 | }, |
| @@ -1046,7 +1046,6 @@ static struct platform_driver hdmi_driver __refdata = { · 1045 unmodified lines | ||
| 1046 | 1046 | .id_table = hdmi_driver_types, |
| 1047 | 1047 | .driver = { |
| 1048 | 1048 | .name = "s5p-hdmi", |
| 1049 | − .owner = THIS_MODULE, | |
| 1050 | 1049 | .pm = &hdmi_pm_ops, |
| 1051 | 1050 | } |
| 1052 | 1051 | }; |
| @@ -487,7 +487,6 @@ static struct platform_driver mxr_driver __refdata = { · 486 unmodified lines | ||
| 487 | 487 | .remove = mxr_remove, |
| 488 | 488 | .driver = { |
| 489 | 489 | .name = MXR_DRIVER_NAME, |
| 490 | − .owner = THIS_MODULE, | |
| 491 | 490 | .pm = &mxr_pm_ops, |
| 492 | 491 | } |
| 493 | 492 | }; |
| @@ -482,7 +482,6 @@ static struct platform_driver sdo_driver __refdata = { · 481 unmodified lines | ||
| 482 | 482 | .remove = sdo_remove, |
| 483 | 483 | .driver = { |
| 484 | 484 | .name = "s5p-sdo", |
| 485 | − .owner = THIS_MODULE, | |
| 486 | 485 | .pm = &sdo_pm_ops, |
| 487 | 486 | } |
| 488 | 487 | }; |
| @@ -1235,7 +1235,6 @@ static struct platform_driver __refdata sh_veu_pdrv = { · 1234 unmodified lines | ||
| 1235 | 1235 | .remove = sh_veu_remove, |
| 1236 | 1236 | .driver = { |
| 1237 | 1237 | .name = "sh_veu", |
| 1238 | − .owner = THIS_MODULE, | |
| 1239 | 1238 | }, |
| 1240 | 1239 | }; |
| 1241 | 1240 | |
| @@ -1450,7 +1450,6 @@ static struct platform_driver __refdata sh_vou = { · 1449 unmodified lines | ||
| 1450 | 1450 | .remove = sh_vou_remove, |
| 1451 | 1451 | .driver = { |
| 1452 | 1452 | .name = "sh-vou", |
| 1453 | − .owner = THIS_MODULE, | |
| 1454 | 1453 | }, |
| 1455 | 1454 | }; |
| 1456 | 1455 | |
| @@ -1068,7 +1068,6 @@ static struct platform_driver atmel_isi_driver = { · 1067 unmodified lines | ||
| 1068 | 1068 | .remove = atmel_isi_remove, |
| 1069 | 1069 | .driver = { |
| 1070 | 1070 | .name = "atmel_isi", |
| 1071 | − .owner = THIS_MODULE, | |
| 1072 | 1071 | .of_match_table = of_match_ptr(atmel_isi_of_match), |
| 1073 | 1072 | }, |
| 1074 | 1073 | }; |
| @@ -1253,7 +1253,6 @@ static int mx3_camera_remove(struct platform_device *pdev) · 1252 unmodified lines | ||
| 1253 | 1253 | static struct platform_driver mx3_camera_driver = { |
| 1254 | 1254 | .driver = { |
| 1255 | 1255 | .name = MX3_CAM_DRV_NAME, |
| 1256 | − .owner = THIS_MODULE, | |
| 1257 | 1256 | }, |
| 1258 | 1257 | .probe = mx3_camera_probe, |
| 1259 | 1258 | .remove = mx3_camera_remove, |
| @@ -1543,7 +1543,6 @@ static struct platform_driver rcar_vin_driver = { · 1542 unmodified lines | ||
| 1543 | 1543 | .remove = rcar_vin_remove, |
| 1544 | 1544 | .driver = { |
| 1545 | 1545 | .name = DRV_NAME, |
| 1546 | − .owner = THIS_MODULE, | |
| 1547 | 1546 | .of_match_table = of_match_ptr(rcar_vin_of_table), |
| 1548 | 1547 | }, |
| 1549 | 1548 | .id_table = rcar_vin_id_table, |
| @@ -2009,7 +2009,6 @@ MODULE_DEVICE_TABLE(of, sh_mobile_ceu_of_match); · 2008 unmodified lines | ||
| 2009 | 2009 | static struct platform_driver sh_mobile_ceu_driver = { |
| 2010 | 2010 | .driver = { |
| 2011 | 2011 | .name = "sh_mobile_ceu", |
| 2012 | − .owner = THIS_MODULE, | |
| 2013 | 2012 | .pm = &sh_mobile_ceu_dev_pm_ops, |
| 2014 | 2013 | .of_match_table = sh_mobile_ceu_of_match, |
| 2015 | 2014 | }, |
| @@ -391,7 +391,6 @@ static struct platform_driver __refdata sh_csi2_pdrv = { · 390 unmodified lines | ||
| 391 | 391 | .probe = sh_csi2_probe, |
| 392 | 392 | .driver = { |
| 393 | 393 | .name = "sh-mobile-csi2", |
| 394 | − .owner = THIS_MODULE, | |
| 395 | 394 | }, |
| 396 | 395 | }; |
| 397 | 396 | |
| @@ -2236,7 +2236,6 @@ static struct platform_driver __refdata soc_camera_pdrv = { · 2235 unmodified lines | ||
| 2236 | 2236 | .remove = soc_camera_pdrv_remove, |
| 2237 | 2237 | .driver = { |
| 2238 | 2238 | .name = "soc-camera-pdrv", |
| 2239 | − .owner = THIS_MODULE, | |
| 2240 | 2239 | }, |
| 2241 | 2240 | }; |
| 2242 | 2241 | |
| @@ -180,7 +180,6 @@ static int soc_camera_platform_remove(struct platform_device *pdev) · 179 unmodified lines | ||
| 180 | 180 | static struct platform_driver soc_camera_platform_driver = { |
| 181 | 181 | .driver = { |
| 182 | 182 | .name = "soc_camera_platform", |
| 183 | − .owner = THIS_MODULE, | |
| 184 | 183 | }, |
| 185 | 184 | .probe = soc_camera_platform_probe, |
| 186 | 185 | .remove = soc_camera_platform_remove, |
| @@ -2376,7 +2376,6 @@ static struct platform_driver vpe_pdrv = { · 2375 unmodified lines | ||
| 2376 | 2376 | .remove = vpe_remove, |
| 2377 | 2377 | .driver = { |
| 2378 | 2378 | .name = VPE_MODULE_NAME, |
| 2379 | − .owner = THIS_MODULE, | |
| 2380 | 2379 | .of_match_table = vpe_of_match, |
| 2381 | 2380 | }, |
| 2382 | 2381 | }; |
| @@ -857,7 +857,6 @@ static int timblogiw_remove(struct platform_device *pdev) · 856 unmodified lines | ||
| 857 | 857 | static struct platform_driver timblogiw_platform_driver = { |
| 858 | 858 | .driver = { |
| 859 | 859 | .name = DRIVER_NAME, |
| 860 | − .owner = THIS_MODULE, | |
| 861 | 860 | }, |
| 862 | 861 | .probe = timblogiw_probe, |
| 863 | 862 | .remove = timblogiw_remove, |
| @@ -1060,7 +1060,6 @@ static struct platform_driver vim2m_pdrv = { · 1059 unmodified lines | ||
| 1060 | 1060 | .remove = vim2m_remove, |
| 1061 | 1061 | .driver = { |
| 1062 | 1062 | .name = MEM2MEM_NAME, |
| 1063 | − .owner = THIS_MODULE, | |
| 1064 | 1063 | }, |
| 1065 | 1064 | }; |
| 1066 | 1065 | |
| @@ -562,7 +562,6 @@ static struct platform_driver vsp1_platform_driver = { · 561 unmodified lines | ||
| 562 | 562 | .probe = vsp1_probe, |
| 563 | 563 | .remove = vsp1_remove, |
| 564 | 564 | .driver = { |
| 565 | − .owner = THIS_MODULE, | |
| 566 | 565 | .name = "vsp1", |
| 567 | 566 | .pm = &vsp1_pm_ops, |
| 568 | 567 | .of_match_table = vsp1_of_match, |
| @@ -1575,7 +1575,6 @@ MODULE_ALIAS("platform:si476x-radio"); · 1574 unmodified lines | ||
| 1575 | 1575 | static struct platform_driver si476x_radio_driver = { |
| 1576 | 1576 | .driver = { |
| 1577 | 1577 | .name = DRIVER_NAME, |
| 1578 | − .owner = THIS_MODULE, | |
| 1579 | 1578 | }, |
| 1580 | 1579 | .probe = si476x_radio_probe, |
| 1581 | 1580 | .remove = si476x_radio_remove, |
| @@ -174,7 +174,6 @@ static int timbradio_remove(struct platform_device *pdev) · 173 unmodified lines | ||
| 174 | 174 | static struct platform_driver timbradio_platform_driver = { |
| 175 | 175 | .driver = { |
| 176 | 176 | .name = DRIVER_NAME, |
| 177 | − .owner = THIS_MODULE, | |
| 178 | 177 | }, |
| 179 | 178 | .probe = timbradio_probe, |
| 180 | 179 | .remove = timbradio_remove, |
| @@ -2150,7 +2150,6 @@ static struct platform_driver wl1273_fm_radio_driver = { · 2149 unmodified lines | ||
| 2150 | 2150 | .remove = wl1273_fm_radio_remove, |
| 2151 | 2151 | .driver = { |
| 2152 | 2152 | .name = "wl1273_fm_radio", |
| 2153 | − .owner = THIS_MODULE, | |
| 2154 | 2153 | }, |
| 2155 | 2154 | }; |
| 2156 | 2155 | |
| @@ -220,7 +220,6 @@ static int radio_si4713_pdriver_remove(struct platform_device *pdev) · 219 unmodified lines | ||
| 220 | 220 | static struct platform_driver radio_si4713_pdriver = { |
| 221 | 221 | .driver = { |
| 222 | 222 | .name = "radio-si4713", |
| 223 | − .owner = THIS_MODULE, | |
| 224 | 223 | }, |
| 225 | 224 | .probe = radio_si4713_pdriver_probe, |
| 226 | 225 | .remove = radio_si4713_pdriver_remove, |
| @@ -240,7 +240,6 @@ static struct platform_driver gpio_ir_recv_driver = { · 239 unmodified lines | ||
| 240 | 240 | .remove = gpio_ir_recv_remove, |
| 241 | 241 | .driver = { |
| 242 | 242 | .name = GPIO_IR_DRIVER_NAME, |
| 243 | − .owner = THIS_MODULE, | |
| 244 | 243 | .of_match_table = of_match_ptr(gpio_ir_recv_of_match), |
| 245 | 244 | #ifdef CONFIG_PM |
| 246 | 245 | .pm = &gpio_ir_recv_pm_ops, |
| @@ -306,7 +306,6 @@ static struct platform_driver sunxi_ir_driver = { · 305 unmodified lines | ||
| 306 | 306 | .remove = sunxi_ir_remove, |
| 307 | 307 | .driver = { |
| 308 | 308 | .name = SUNXI_IR_DEV, |
| 309 | − .owner = THIS_MODULE, | |
| 310 | 309 | .of_match_table = sunxi_ir_match, |
| 311 | 310 | }, |
| 312 | 311 | }; |
| @@ -82,7 +82,6 @@ static struct platform_driver atmel_ramc_driver = { · 81 unmodified lines | ||
| 82 | 82 | .probe = atmel_ramc_probe, |
| 83 | 83 | .driver = { |
| 84 | 84 | .name = "atmel-ramc", |
| 85 | − .owner = THIS_MODULE, | |
| 86 | 85 | .of_match_table = atmel_ramc_of_match, |
| 87 | 86 | }, |
| 88 | 87 | }; |
| @@ -237,7 +237,6 @@ static int ccf_remove(struct platform_device *pdev) · 236 unmodified lines | ||
| 237 | 237 | static struct platform_driver ccf_driver = { |
| 238 | 238 | .driver = { |
| 239 | 239 | .name = KBUILD_MODNAME, |
| 240 | − .owner = THIS_MODULE, | |
| 241 | 240 | .of_match_table = ccf_matches, |
| 242 | 241 | }, |
| 243 | 242 | .probe = ccf_probe, |
| @@ -346,7 +346,6 @@ static struct platform_driver mvebu_devbus_driver = { · 345 unmodified lines | ||
| 346 | 346 | .probe = mvebu_devbus_probe, |
| 347 | 347 | .driver = { |
| 348 | 348 | .name = "mvebu-devbus", |
| 349 | − .owner = THIS_MODULE, | |
| 350 | 349 | .of_match_table = mvebu_devbus_of_match, |
| 351 | 350 | }, |
| 352 | 351 | }; |
| @@ -1987,7 +1987,6 @@ static struct platform_driver gpmc_driver = { · 1986 unmodified lines | ||
| 1987 | 1987 | .remove = gpmc_remove, |
| 1988 | 1988 | .driver = { |
| 1989 | 1989 | .name = DEVICE_NAME, |
| 1990 | − .owner = THIS_MODULE, | |
| 1991 | 1990 | .of_match_table = of_match_ptr(gpmc_dt_ids), |
| 1992 | 1991 | .pm = &gpmc_pm_ops, |
| 1993 | 1992 | }, |
| @@ -243,7 +243,6 @@ static struct platform_driver tegra20_mc_driver = { · 242 unmodified lines | ||
| 243 | 243 | .probe = tegra20_mc_probe, |
| 244 | 244 | .driver = { |
| 245 | 245 | .name = DRV_NAME, |
| 246 | − .owner = THIS_MODULE, | |
| 247 | 246 | .of_match_table = tegra20_mc_of_match, |
| 248 | 247 | }, |
| 249 | 248 | }; |
| @@ -413,7 +413,6 @@ static struct platform_driver aemif_driver = { · 412 unmodified lines | ||
| 413 | 413 | .remove = aemif_remove, |
| 414 | 414 | .driver = { |
| 415 | 415 | .name = KBUILD_MODNAME, |
| 416 | − .owner = THIS_MODULE, | |
| 417 | 416 | .of_match_table = of_match_ptr(aemif_of_match), |
| 418 | 417 | }, |
| 419 | 418 | }; |
| @@ -645,7 +645,6 @@ static struct platform_driver rtsx_pci_ms_driver = { · 644 unmodified lines | ||
| 645 | 645 | .suspend = rtsx_pci_ms_suspend, |
| 646 | 646 | .resume = rtsx_pci_ms_resume, |
| 647 | 647 | .driver = { |
| 648 | − .owner = THIS_MODULE, | |
| 649 | 648 | .name = DRV_NAME_RTSX_PCI_MS, |
| 650 | 649 | }, |
| 651 | 650 | }; |
| @@ -827,7 +827,6 @@ static struct platform_driver rtsx_usb_ms_driver = { · 826 unmodified lines | ||
| 827 | 827 | .remove = rtsx_usb_ms_drv_remove, |
| 828 | 828 | .id_table = rtsx_usb_ms_ids, |
| 829 | 829 | .driver = { |
| 830 | − .owner = THIS_MODULE, | |
| 831 | 830 | .name = "rtsx_usb_ms", |
| 832 | 831 | .pm = &rtsx_usb_ms_pm_ops, |
| 833 | 832 | }, |
| @@ -239,7 +239,6 @@ static int __exit ab3100_otp_remove(struct platform_device *pdev) · 238 unmodified lines | ||
| 239 | 239 | static struct platform_driver ab3100_otp_driver = { |
| 240 | 240 | .driver = { |
| 241 | 241 | .name = "ab3100-otp", |
| 242 | − .owner = THIS_MODULE, | |
| 243 | 242 | }, |
| 244 | 243 | .remove = __exit_p(ab3100_otp_remove), |
| 245 | 244 | }; |
| @@ -1848,7 +1848,6 @@ static const struct platform_device_id ab8500_id[] = { · 1847 unmodified lines | ||
| 1848 | 1848 | static struct platform_driver ab8500_core_driver = { |
| 1849 | 1849 | .driver = { |
| 1850 | 1850 | .name = "ab8500-core", |
| 1851 | − .owner = THIS_MODULE, | |
| 1852 | 1851 | }, |
| 1853 | 1852 | .probe = ab8500_probe, |
| 1854 | 1853 | .remove = ab8500_remove, |
| @@ -3263,7 +3263,6 @@ static int ab8500_debug_remove(struct platform_device *plf) · 3262 unmodified lines | ||
| 3263 | 3263 | static struct platform_driver ab8500_debug_driver = { |
| 3264 | 3264 | .driver = { |
| 3265 | 3265 | .name = "ab8500-debug", |
| 3266 | − .owner = THIS_MODULE, | |
| 3267 | 3266 | }, |
| 3268 | 3267 | .probe = ab8500_debug_probe, |
| 3269 | 3268 | .remove = ab8500_debug_remove |
| @@ -1044,7 +1044,6 @@ static struct platform_driver ab8500_gpadc_driver = { · 1043 unmodified lines | ||
| 1044 | 1044 | .remove = ab8500_gpadc_remove, |
| 1045 | 1045 | .driver = { |
| 1046 | 1046 | .name = "ab8500-gpadc", |
| 1047 | − .owner = THIS_MODULE, | |
| 1048 | 1047 | .pm = &ab8500_gpadc_pm_ops, |
| 1049 | 1048 | }, |
| 1050 | 1049 | }; |
| @@ -180,7 +180,6 @@ static int ab8500_sysctrl_remove(struct platform_device *pdev) · 179 unmodified lines | ||
| 180 | 180 | static struct platform_driver ab8500_sysctrl_driver = { |
| 181 | 181 | .driver = { |
| 182 | 182 | .name = "ab8500-sysctrl", |
| 183 | − .owner = THIS_MODULE, | |
| 184 | 183 | }, |
| 185 | 184 | .probe = ab8500_sysctrl_probe, |
| 186 | 185 | .remove = ab8500_sysctrl_remove, |
| @@ -143,7 +143,6 @@ static int davinci_vc_remove(struct platform_device *pdev) · 142 unmodified lines | ||
| 143 | 143 | static struct platform_driver davinci_vc_driver = { |
| 144 | 144 | .driver = { |
| 145 | 145 | .name = "davinci_voicecodec", |
| 146 | − .owner = THIS_MODULE, | |
| 147 | 146 | }, |
| 148 | 147 | .remove = davinci_vc_remove, |
| 149 | 148 | }; |
| @@ -3232,7 +3232,6 @@ static const struct of_device_id db8500_prcmu_match[] = { · 3231 unmodified lines | ||
| 3232 | 3232 | static struct platform_driver db8500_prcmu_driver = { |
| 3233 | 3233 | .driver = { |
| 3234 | 3234 | .name = "db8500-prcmu", |
| 3235 | − .owner = THIS_MODULE, | |
| 3236 | 3235 | .of_match_table = db8500_prcmu_match, |
| 3237 | 3236 | }, |
| 3238 | 3237 | .probe = db8500_prcmu_probe, |
| @@ -447,7 +447,6 @@ static struct platform_driver intel_msic_driver = { · 446 unmodified lines | ||
| 447 | 447 | .remove = intel_msic_remove, |
| 448 | 448 | .driver = { |
| 449 | 449 | .name = "intel_msic", |
| 450 | − .owner = THIS_MODULE, | |
| 451 | 450 | }, |
| 452 | 451 | }; |
| 453 | 452 | |
| @@ -324,7 +324,6 @@ static struct platform_driver jz4740_adc_driver = { · 323 unmodified lines | ||
| 324 | 324 | .remove = jz4740_adc_remove, |
| 325 | 325 | .driver = { |
| 326 | 326 | .name = "jz4740-adc", |
| 327 | − .owner = THIS_MODULE, | |
| 328 | 327 | }, |
| 329 | 328 | }; |
| 330 | 329 | |
| @@ -494,7 +494,6 @@ static int kempld_remove(struct platform_device *pdev) · 493 unmodified lines | ||
| 494 | 494 | static struct platform_driver kempld_driver = { |
| 495 | 495 | .driver = { |
| 496 | 496 | .name = "kempld", |
| 497 | − .owner = THIS_MODULE, | |
| 498 | 497 | }, |
| 499 | 498 | .probe = kempld_probe, |
| 500 | 499 | .remove = kempld_remove, |
| @@ -299,7 +299,6 @@ static struct platform_driver mcp_sa11x0_driver = { · 298 unmodified lines | ||
| 299 | 299 | .remove = mcp_sa11x0_remove, |
| 300 | 300 | .driver = { |
| 301 | 301 | .name = DRIVER_NAME, |
| 302 | − .owner = THIS_MODULE, | |
| 303 | 302 | .pm = &mcp_sa11x0_pm_ops, |
| 304 | 303 | }, |
| 305 | 304 | }; |
| @@ -882,7 +882,6 @@ MODULE_DEVICE_TABLE(of, usbhs_omap_dt_ids); · 881 unmodified lines | ||
| 882 | 882 | static struct platform_driver usbhs_omap_driver = { |
| 883 | 883 | .driver = { |
| 884 | 884 | .name = (char *)usbhs_driver_name, |
| 885 | − .owner = THIS_MODULE, | |
| 886 | 885 | .pm = &usbhsomap_dev_pm_ops, |
| 887 | 886 | .of_match_table = usbhs_omap_dt_ids, |
| 888 | 887 | }, |
| @@ -319,7 +319,6 @@ MODULE_DEVICE_TABLE(of, usbtll_omap_dt_ids); · 318 unmodified lines | ||
| 319 | 319 | static struct platform_driver usbtll_omap_driver = { |
| 320 | 320 | .driver = { |
| 321 | 321 | .name = (char *)usbtll_driver_name, |
| 322 | − .owner = THIS_MODULE, | |
| 323 | 322 | .of_match_table = usbtll_omap_dt_ids, |
| 324 | 323 | }, |
| 325 | 324 | .probe = usbtll_omap_probe, |
| @@ -374,7 +374,6 @@ static struct platform_driver pm8921_driver = { · 373 unmodified lines | ||
| 374 | 374 | .remove = pm8921_remove, |
| 375 | 375 | .driver = { |
| 376 | 376 | .name = "pm8921-core", |
| 377 | − .owner = THIS_MODULE, | |
| 378 | 377 | .of_match_table = pm8921_id_table, |
| 379 | 378 | }, |
| 380 | 379 | }; |
| @@ -1723,7 +1723,6 @@ static const struct of_device_id of_sm501_match_tbl[] = { · 1722 unmodified lines | ||
| 1723 | 1723 | static struct platform_driver sm501_plat_driver = { |
| 1724 | 1724 | .driver = { |
| 1725 | 1725 | .name = "sm501", |
| 1726 | − .owner = THIS_MODULE, | |
| 1727 | 1726 | .of_match_table = of_sm501_match_tbl, |
| 1728 | 1727 | }, |
| 1729 | 1728 | .probe = sm501_plat_probe, |
| @@ -327,7 +327,6 @@ static struct platform_driver ssbi_driver = { · 326 unmodified lines | ||
| 327 | 327 | .probe = ssbi_probe, |
| 328 | 328 | .driver = { |
| 329 | 329 | .name = "ssbi", |
| 330 | − .owner = THIS_MODULE, | |
| 331 | 330 | .of_match_table = ssbi_match_table, |
| 332 | 331 | }, |
| 333 | 332 | }; |
| @@ -368,7 +368,6 @@ static int sta2x11_scr_probe(struct platform_device *dev) · 367 unmodified lines | ||
| 368 | 368 | static struct platform_driver sta2x11_sctl_platform_driver = { |
| 369 | 369 | .driver = { |
| 370 | 370 | .name = STA2X11_MFD_SCTL_NAME, |
| 371 | − .owner = THIS_MODULE, | |
| 372 | 371 | }, |
| 373 | 372 | .probe = sta2x11_sctl_probe, |
| 374 | 373 | }; |
| @@ -382,7 +381,6 @@ static int __init sta2x11_sctl_init(void) · 7 unmodified lines | ||
| 382 | 381 | static struct platform_driver sta2x11_platform_driver = { |
| 383 | 382 | .driver = { |
| 384 | 383 | .name = STA2X11_MFD_APBREG_NAME, |
| 385 | − .owner = THIS_MODULE, | |
| 386 | 384 | }, |
| 387 | 385 | .probe = sta2x11_apbreg_probe, |
| 388 | 386 | }; |
| @@ -396,7 +394,6 @@ static int __init sta2x11_apbreg_init(void) · 7 unmodified lines | ||
| 396 | 394 | static struct platform_driver sta2x11_apb_soc_regs_platform_driver = { |
| 397 | 395 | .driver = { |
| 398 | 396 | .name = STA2X11_MFD_APB_SOC_REGS_NAME, |
| 399 | − .owner = THIS_MODULE, | |
| 400 | 397 | }, |
| 401 | 398 | .probe = sta2x11_apb_soc_regs_probe, |
| 402 | 399 | }; |
| @@ -410,7 +407,6 @@ static int __init sta2x11_apb_soc_regs_init(void) · 7 unmodified lines | ||
| 410 | 407 | static struct platform_driver sta2x11_scr_platform_driver = { |
| 411 | 408 | .driver = { |
| 412 | 409 | .name = STA2X11_MFD_SCR_NAME, |
| 413 | − .owner = THIS_MODULE, | |
| 414 | 410 | }, |
| 415 | 411 | .probe = sta2x11_scr_probe, |
| 416 | 412 | }; |
| @@ -152,7 +152,6 @@ static int sun6i_prcm_probe(struct platform_device *pdev) · 151 unmodified lines | ||
| 152 | 152 | static struct platform_driver sun6i_prcm_driver = { |
| 153 | 153 | .driver = { |
| 154 | 154 | .name = "sun6i-prcm", |
| 155 | − .owner = THIS_MODULE, | |
| 156 | 155 | .of_match_table = sun6i_prcm_dt_ids, |
| 157 | 156 | }, |
| 158 | 157 | .probe = sun6i_prcm_probe, |
| @@ -219,7 +219,6 @@ static const struct platform_device_id syscon_ids[] = { · 218 unmodified lines | ||
| 219 | 219 | static struct platform_driver syscon_driver = { |
| 220 | 220 | .driver = { |
| 221 | 221 | .name = "syscon", |
| 222 | − .owner = THIS_MODULE, | |
| 223 | 222 | }, |
| 224 | 223 | .probe = syscon_probe, |
| 225 | 224 | .id_table = syscon_ids, |
| @@ -431,7 +431,6 @@ static int t7l66xb_remove(struct platform_device *dev) · 430 unmodified lines | ||
| 431 | 431 | static struct platform_driver t7l66xb_platform_driver = { |
| 432 | 432 | .driver = { |
| 433 | 433 | .name = "t7l66xb", |
| 434 | − .owner = THIS_MODULE, | |
| 435 | 434 | }, |
| 436 | 435 | .suspend = t7l66xb_suspend, |
| 437 | 436 | .resume = t7l66xb_resume, |
| @@ -842,7 +842,6 @@ static struct platform_driver tc6393xb_driver = { · 841 unmodified lines | ||
| 842 | 842 | |
| 843 | 843 | .driver = { |
| 844 | 844 | .name = "tc6393xb", |
| 845 | − .owner = THIS_MODULE, | |
| 846 | 845 | }, |
| 847 | 846 | }; |
| 848 | 847 | |
| @@ -368,7 +368,6 @@ MODULE_DEVICE_TABLE(of, ti_tscadc_dt_ids); · 367 unmodified lines | ||
| 368 | 368 | static struct platform_driver ti_tscadc_driver = { |
| 369 | 369 | .driver = { |
| 370 | 370 | .name = "ti_am3359-tscadc", |
| 371 | − .owner = THIS_MODULE, | |
| 372 | 371 | .pm = TSCADC_PM_OPS, |
| 373 | 372 | .of_match_table = ti_tscadc_dt_ids, |
| 374 | 373 | }, |
| @@ -166,7 +166,6 @@ static int tps65911_comparator_remove(struct platform_device *pdev) · 165 unmodified lines | ||
| 166 | 166 | static struct platform_driver tps65911_comparator_driver = { |
| 167 | 167 | .driver = { |
| 168 | 168 | .name = "tps65911-comparator", |
| 169 | − .owner = THIS_MODULE, | |
| 170 | 169 | }, |
| 171 | 170 | .probe = tps65911_comparator_probe, |
| 172 | 171 | .remove = tps65911_comparator_remove, |
| @@ -283,7 +283,6 @@ MODULE_DEVICE_TABLE(of, twl4030_audio_of_match); · 282 unmodified lines | ||
| 283 | 283 | |
| 284 | 284 | static struct platform_driver twl4030_audio_driver = { |
| 285 | 285 | .driver = { |
| 286 | − .owner = THIS_MODULE, | |
| 287 | 286 | .name = "twl4030-audio", |
| 288 | 287 | .of_match_table = twl4030_audio_of_match, |
| 289 | 288 | }, |
| @@ -933,7 +933,6 @@ static int twl4030_power_remove(struct platform_device *pdev) · 932 unmodified lines | ||
| 933 | 933 | static struct platform_driver twl4030_power_driver = { |
| 934 | 934 | .driver = { |
| 935 | 935 | .name = "twl4030_power", |
| 936 | − .owner = THIS_MODULE, | |
| 937 | 936 | .of_match_table = of_match_ptr(twl4030_power_of_match), |
| 938 | 937 | }, |
| 939 | 938 | .probe = twl4030_power_probe, |
| @@ -375,7 +375,6 @@ static const struct of_device_id charlcd_match[] = { · 374 unmodified lines | ||
| 375 | 375 | static struct platform_driver charlcd_driver = { |
| 376 | 376 | .driver = { |
| 377 | 377 | .name = DRIVERNAME, |
| 378 | − .owner = THIS_MODULE, | |
| 379 | 378 | .pm = &charlcd_pm_ops, |
| 380 | 379 | .of_match_table = of_match_ptr(charlcd_match), |
| 381 | 380 | }, |
| @@ -220,7 +220,6 @@ static int ssc_remove(struct platform_device *pdev) · 219 unmodified lines | ||
| 220 | 220 | static struct platform_driver ssc_driver = { |
| 221 | 221 | .driver = { |
| 222 | 222 | .name = "ssc", |
| 223 | − .owner = THIS_MODULE, | |
| 224 | 223 | .of_match_table = of_match_ptr(atmel_ssc_dt_ids), |
| 225 | 224 | }, |
| 226 | 225 | .id_table = atmel_ssc_devtypes, |
| @@ -1091,7 +1091,6 @@ static struct platform_driver fpga_of_driver = { · 1090 unmodified lines | ||
| 1091 | 1091 | .driver = { |
| 1092 | 1092 | .name = drv_name, |
| 1093 | 1093 | .of_match_table = fpga_of_match, |
| 1094 | − .owner = THIS_MODULE, | |
| 1095 | 1094 | }, |
| 1096 | 1095 | }; |
| 1097 | 1096 | |
| @@ -1433,7 +1433,6 @@ static struct platform_driver data_of_driver = { · 1432 unmodified lines | ||
| 1433 | 1433 | .driver = { |
| 1434 | 1434 | .name = drv_name, |
| 1435 | 1435 | .of_match_table = data_of_match, |
| 1436 | − .owner = THIS_MODULE, | |
| 1437 | 1436 | }, |
| 1438 | 1437 | }; |
| 1439 | 1438 | |
| @@ -365,7 +365,6 @@ done: · 364 unmodified lines | ||
| 365 | 365 | static struct platform_driver cs5535_mfgpt_driver = { |
| 366 | 366 | .driver = { |
| 367 | 367 | .name = DRV_NAME, |
| 368 | − .owner = THIS_MODULE, | |
| 369 | 368 | }, |
| 370 | 369 | .probe = cs5535_mfgpt_probe, |
| 371 | 370 | }; |
| @@ -146,7 +146,6 @@ static struct platform_driver sunxi_sid_driver = { · 145 unmodified lines | ||
| 146 | 146 | .remove = sunxi_sid_remove, |
| 147 | 147 | .driver = { |
| 148 | 148 | .name = DRV_NAME, |
| 149 | − .owner = THIS_MODULE, | |
| 150 | 149 | .of_match_table = sunxi_sid_of_match, |
| 151 | 150 | }, |
| 152 | 151 | }; |
| @@ -255,7 +255,6 @@ static struct platform_driver __refdata mic_platform_driver = { · 254 unmodified lines | ||
| 255 | 255 | .shutdown = mic_platform_shutdown, |
| 256 | 256 | .driver = { |
| 257 | 257 | .name = mic_driver_name, |
| 258 | − .owner = THIS_MODULE, | |
| 259 | 258 | }, |
| 260 | 259 | }; |
| 261 | 260 | |
| @@ -858,7 +858,6 @@ static struct platform_driver kim_platform_driver = { · 857 unmodified lines | ||
| 858 | 858 | .resume = kim_resume, |
| 859 | 859 | .driver = { |
| 860 | 860 | .name = "kim", |
| 861 | − .owner = THIS_MODULE, | |
| 862 | 861 | }, |
| 863 | 862 | }; |
| 864 | 863 | |
| @@ -1206,7 +1206,6 @@ static struct platform_driver au1xmmc_driver = { · 1205 unmodified lines | ||
| 1206 | 1206 | .resume = au1xmmc_resume, |
| 1207 | 1207 | .driver = { |
| 1208 | 1208 | .name = DRIVER_NAME, |
| 1209 | − .owner = THIS_MODULE, | |
| 1210 | 1209 | }, |
| 1211 | 1210 | }; |
| 1212 | 1211 | |
| @@ -1466,7 +1466,6 @@ static const struct dev_pm_ops davinci_mmcsd_pm = { · 1465 unmodified lines | ||
| 1466 | 1466 | static struct platform_driver davinci_mmcsd_driver = { |
| 1467 | 1467 | .driver = { |
| 1468 | 1468 | .name = "davinci_mmc", |
| 1469 | − .owner = THIS_MODULE, | |
| 1470 | 1469 | .pm = davinci_mmcsd_pm_ops, |
| 1471 | 1470 | .of_match_table = davinci_mmc_dt_ids, |
| 1472 | 1471 | }, |
| @@ -463,7 +463,6 @@ static const struct dev_pm_ops sdhci_acpi_pm_ops = { · 462 unmodified lines | ||
| 463 | 463 | static struct platform_driver sdhci_acpi_driver = { |
| 464 | 464 | .driver = { |
| 465 | 465 | .name = "sdhci-acpi", |
| 466 | − .owner = THIS_MODULE, | |
| 467 | 466 | .acpi_match_table = sdhci_acpi_ids, |
| 468 | 467 | .pm = &sdhci_acpi_pm_ops, |
| 469 | 468 | }, |
| @@ -143,7 +143,6 @@ static const struct dev_pm_ops tmio_mmc_dev_pm_ops = { · 142 unmodified lines | ||
| 143 | 143 | static struct platform_driver tmio_mmc_driver = { |
| 144 | 144 | .driver = { |
| 145 | 145 | .name = "tmio-mmc", |
| 146 | − .owner = THIS_MODULE, | |
| 147 | 146 | .pm = &tmio_mmc_dev_pm_ops, |
| 148 | 147 | }, |
| 149 | 148 | .probe = tmio_mmc_probe, |
| @@ -1834,7 +1834,6 @@ static struct platform_driver usdhi6_driver = { · 1833 unmodified lines | ||
| 1834 | 1834 | .remove = usdhi6_remove, |
| 1835 | 1835 | .driver = { |
| 1836 | 1836 | .name = "usdhi6rol0", |
| 1837 | − .owner = THIS_MODULE, | |
| 1838 | 1837 | .of_match_table = usdhi6_of_match, |
| 1839 | 1838 | }, |
| 1840 | 1839 | }; |
| @@ -1914,7 +1914,6 @@ static struct platform_driver wbsd_driver = { · 1913 unmodified lines | ||
| 1914 | 1914 | .resume = wbsd_platform_resume, |
| 1915 | 1915 | .driver = { |
| 1916 | 1916 | .name = DRIVER_NAME, |
| 1917 | − .owner = THIS_MODULE, | |
| 1918 | 1917 | }, |
| 1919 | 1918 | }; |
| 1920 | 1919 | |
| @@ -991,7 +991,6 @@ static struct platform_driver wmt_mci_driver = { · 990 unmodified lines | ||
| 991 | 991 | .remove = wmt_mci_remove, |
| 992 | 992 | .driver = { |
| 993 | 993 | .name = DRIVER_NAME, |
| 994 | − .owner = THIS_MODULE, | |
| 995 | 994 | .pm = wmt_mci_pm_ops, |
| 996 | 995 | .of_match_table = wmt_mci_dt_ids, |
| 997 | 996 | }, |
| @@ -329,7 +329,6 @@ static struct platform_driver bcma_sflash_driver = { · 328 unmodified lines | ||
| 329 | 329 | .remove = bcm47xxsflash_bcma_remove, |
| 330 | 330 | .driver = { |
| 331 | 331 | .name = "bcma_sflash", |
| 332 | − .owner = THIS_MODULE, | |
| 333 | 332 | }, |
| 334 | 333 | }; |
| 335 | 334 | |
| @@ -2129,7 +2129,6 @@ static int __exit docg3_release(struct platform_device *pdev) · 2128 unmodified lines | ||
| 2129 | 2129 | static struct platform_driver g3_driver = { |
| 2130 | 2130 | .driver = { |
| 2131 | 2131 | .name = "docg3", |
| 2132 | − .owner = THIS_MODULE, | |
| 2133 | 2132 | }, |
| 2134 | 2133 | .suspend = docg3_suspend, |
| 2135 | 2134 | .resume = docg3_resume, |
| @@ -1079,7 +1079,6 @@ static struct platform_driver spear_smi_driver = { · 1078 unmodified lines | ||
| 1079 | 1079 | .driver = { |
| 1080 | 1080 | .name = "smi", |
| 1081 | 1081 | .bus = &platform_bus_type, |
| 1082 | − .owner = THIS_MODULE, | |
| 1083 | 1082 | .of_match_table = of_match_ptr(spear_smi_id_table), |
| 1084 | 1083 | .pm = &spear_smi_pm_ops, |
| 1085 | 1084 | }, |
| @@ -2069,7 +2069,6 @@ static struct platform_driver stfsm_driver = { · 2068 unmodified lines | ||
| 2069 | 2069 | .remove = stfsm_remove, |
| 2070 | 2070 | .driver = { |
| 2071 | 2071 | .name = "st-spi-fsm", |
| 2072 | − .owner = THIS_MODULE, | |
| 2073 | 2072 | .of_match_table = stfsm_match, |
| 2074 | 2073 | }, |
| 2075 | 2074 | }; |
| @@ -250,7 +250,6 @@ static struct platform_driver ixp4xx_flash_driver = { · 249 unmodified lines | ||
| 250 | 250 | .remove = ixp4xx_flash_remove, |
| 251 | 251 | .driver = { |
| 252 | 252 | .name = "IXP4XX-Flash", |
| 253 | − .owner = THIS_MODULE, | |
| 254 | 253 | }, |
| 255 | 254 | }; |
| 256 | 255 | |
| @@ -205,7 +205,6 @@ static struct platform_driver ltq_mtd_driver = { · 204 unmodified lines | ||
| 205 | 205 | .remove = ltq_mtd_remove, |
| 206 | 206 | .driver = { |
| 207 | 207 | .name = "ltq-nor", |
| 208 | − .owner = THIS_MODULE, | |
| 209 | 208 | .of_match_table = ltq_mtd_match, |
| 210 | 209 | }, |
| 211 | 210 | }; |
| @@ -217,7 +217,6 @@ static struct platform_driver physmap_flash_driver = { · 216 unmodified lines | ||
| 217 | 217 | .shutdown = physmap_flash_shutdown, |
| 218 | 218 | .driver = { |
| 219 | 219 | .name = "physmap-flash", |
| 220 | − .owner = THIS_MODULE, | |
| 221 | 220 | }, |
| 222 | 221 | }; |
| 223 | 222 | |
| @@ -354,7 +354,6 @@ MODULE_DEVICE_TABLE(of, of_flash_match); · 353 unmodified lines | ||
| 354 | 354 | static struct platform_driver of_flash_driver = { |
| 355 | 355 | .driver = { |
| 356 | 356 | .name = "of-flash", |
| 357 | − .owner = THIS_MODULE, | |
| 358 | 357 | .of_match_table = of_flash_match, |
| 359 | 358 | }, |
| 360 | 359 | .probe = of_flash_probe, |
| @@ -251,7 +251,6 @@ static struct platform_driver platram_driver = { · 250 unmodified lines | ||
| 251 | 251 | .remove = platram_remove, |
| 252 | 252 | .driver = { |
| 253 | 253 | .name = "mtd-ram", |
| 254 | − .owner = THIS_MODULE, | |
| 255 | 254 | }, |
| 256 | 255 | }; |
| 257 | 256 | |
| @@ -131,7 +131,6 @@ static void pxa2xx_flash_shutdown(struct platform_device *dev) · 130 unmodified lines | ||
| 131 | 131 | static struct platform_driver pxa2xx_flash_driver = { |
| 132 | 132 | .driver = { |
| 133 | 133 | .name = "pxa2xx-flash", |
| 134 | − .owner = THIS_MODULE, | |
| 135 | 134 | }, |
| 136 | 135 | .probe = pxa2xx_flash_probe, |
| 137 | 136 | .remove = pxa2xx_flash_remove, |
| @@ -127,7 +127,6 @@ static struct platform_driver rbtx4939_flash_driver = { · 126 unmodified lines | ||
| 127 | 127 | .shutdown = rbtx4939_flash_shutdown, |
| 128 | 128 | .driver = { |
| 129 | 129 | .name = "rbtx4939-flash", |
| 130 | − .owner = THIS_MODULE, | |
| 131 | 130 | }, |
| 132 | 131 | }; |
| 133 | 132 | |
| @@ -289,7 +289,6 @@ static struct platform_driver sa1100_mtd_driver = { · 288 unmodified lines | ||
| 289 | 289 | .remove = __exit_p(sa1100_mtd_remove), |
| 290 | 290 | .driver = { |
| 291 | 291 | .name = "sa1100-mtd", |
| 292 | − .owner = THIS_MODULE, | |
| 293 | 292 | }, |
| 294 | 293 | }; |
| 295 | 294 | |
| @@ -150,7 +150,6 @@ MODULE_DEVICE_TABLE(of, uflash_match); · 149 unmodified lines | ||
| 150 | 150 | static struct platform_driver uflash_driver = { |
| 151 | 151 | .driver = { |
| 152 | 152 | .name = DRIVER_NAME, |
| 153 | − .owner = THIS_MODULE, | |
| 154 | 153 | .of_match_table = uflash_match, |
| 155 | 154 | }, |
| 156 | 155 | .probe = uflash_probe, |
| @@ -290,7 +290,6 @@ static struct platform_driver ams_delta_nand_driver = { · 289 unmodified lines | ||
| 290 | 290 | .remove = ams_delta_cleanup, |
| 291 | 291 | .driver = { |
| 292 | 292 | .name = "ams-delta-nand", |
| 293 | − .owner = THIS_MODULE, | |
| 294 | 293 | }, |
| 295 | 294 | }; |
| 296 | 295 | |
| @@ -2312,7 +2312,6 @@ MODULE_DEVICE_TABLE(of, atmel_nand_nfc_match); · 2311 unmodified lines | ||
| 2312 | 2312 | static struct platform_driver atmel_nand_nfc_driver = { |
| 2313 | 2313 | .driver = { |
| 2314 | 2314 | .name = "atmel_nand_nfc", |
| 2315 | − .owner = THIS_MODULE, | |
| 2316 | 2315 | .of_match_table = of_match_ptr(atmel_nand_nfc_match), |
| 2317 | 2316 | }, |
| 2318 | 2317 | .probe = atmel_nand_nfc_probe, |
| @@ -2324,7 +2323,6 @@ static struct platform_driver atmel_nand_driver = { · 5 unmodified lines | ||
| 2324 | 2323 | .remove = atmel_nand_remove, |
| 2325 | 2324 | .driver = { |
| 2326 | 2325 | .name = "atmel_nand", |
| 2327 | − .owner = THIS_MODULE, | |
| 2328 | 2326 | .of_match_table = of_match_ptr(atmel_nand_dt_ids), |
| 2329 | 2327 | }, |
| 2330 | 2328 | }; |
| @@ -503,7 +503,6 @@ static int au1550nd_remove(struct platform_device *pdev) · 502 unmodified lines | ||
| 503 | 503 | static struct platform_driver au1550nd_driver = { |
| 504 | 504 | .driver = { |
| 505 | 505 | .name = "au1550-nand", |
| 506 | − .owner = THIS_MODULE, | |
| 507 | 506 | }, |
| 508 | 507 | .probe = au1550nd_probe, |
| 509 | 508 | .remove = au1550nd_remove, |
| @@ -73,7 +73,6 @@ static struct platform_driver bcm47xxnflash_driver = { · 72 unmodified lines | ||
| 73 | 73 | .remove = bcm47xxnflash_remove, |
| 74 | 74 | .driver = { |
| 75 | 75 | .name = "bcma_nflash", |
| 76 | − .owner = THIS_MODULE, | |
| 77 | 76 | }, |
| 78 | 77 | }; |
| 79 | 78 | |
| @@ -836,7 +836,6 @@ static struct platform_driver bf5xx_nand_driver = { · 835 unmodified lines | ||
| 836 | 836 | .remove = bf5xx_nand_remove, |
| 837 | 837 | .driver = { |
| 838 | 838 | .name = DRV_NAME, |
| 839 | − .owner = THIS_MODULE, | |
| 840 | 839 | }, |
| 841 | 840 | }; |
| 842 | 841 | |
| @@ -870,7 +870,6 @@ static struct platform_driver nand_davinci_driver = { · 869 unmodified lines | ||
| 870 | 870 | .remove = nand_davinci_remove, |
| 871 | 871 | .driver = { |
| 872 | 872 | .name = "davinci_nand", |
| 873 | − .owner = THIS_MODULE, | |
| 874 | 873 | .of_match_table = of_match_ptr(davinci_nand_of_match), |
| 875 | 874 | }, |
| 876 | 875 | }; |
| @@ -120,7 +120,6 @@ static struct platform_driver denali_dt_driver = { · 119 unmodified lines | ||
| 120 | 120 | .remove = denali_dt_remove, |
| 121 | 121 | .driver = { |
| 122 | 122 | .name = "denali-nand-dt", |
| 123 | − .owner = THIS_MODULE, | |
| 124 | 123 | .of_match_table = denali_nand_dt_ids, |
| 125 | 124 | }, |
| 126 | 125 | }; |
| @@ -1380,7 +1380,6 @@ static int __exit cleanup_docg4(struct platform_device *pdev) · 1379 unmodified lines | ||
| 1380 | 1380 | static struct platform_driver docg4_driver = { |
| 1381 | 1381 | .driver = { |
| 1382 | 1382 | .name = "docg4", |
| 1383 | − .owner = THIS_MODULE, | |
| 1384 | 1383 | }, |
| 1385 | 1384 | .suspend = docg4_suspend, |
| 1386 | 1385 | .resume = docg4_resume, |
| @@ -950,7 +950,6 @@ static const struct of_device_id fsl_elbc_nand_match[] = { · 949 unmodified lines | ||
| 950 | 950 | static struct platform_driver fsl_elbc_nand_driver = { |
| 951 | 951 | .driver = { |
| 952 | 952 | .name = "fsl,elbc-fcm-nand", |
| 953 | − .owner = THIS_MODULE, | |
| 954 | 953 | .of_match_table = fsl_elbc_nand_match, |
| 955 | 954 | }, |
| 956 | 955 | .probe = fsl_elbc_nand_probe, |
| @@ -1167,7 +1167,6 @@ static const struct of_device_id fsl_ifc_nand_match[] = { · 1166 unmodified lines | ||
| 1167 | 1167 | static struct platform_driver fsl_ifc_nand_driver = { |
| 1168 | 1168 | .driver = { |
| 1169 | 1169 | .name = "fsl,ifc-nand", |
| 1170 | − .owner = THIS_MODULE, | |
| 1171 | 1170 | .of_match_table = fsl_ifc_nand_match, |
| 1172 | 1171 | }, |
| 1173 | 1172 | .probe = fsl_ifc_nand_probe, |
| @@ -347,7 +347,6 @@ MODULE_DEVICE_TABLE(of, of_fun_match); · 346 unmodified lines | ||
| 347 | 347 | static struct platform_driver of_fun_driver = { |
| 348 | 348 | .driver = { |
| 349 | 349 | .name = "fsl,upm-nand", |
| 350 | − .owner = THIS_MODULE, | |
| 351 | 350 | .of_match_table = of_fun_match, |
| 352 | 351 | }, |
| 353 | 352 | .probe = fun_probe, |
| @@ -1224,7 +1224,6 @@ MODULE_DEVICE_TABLE(of, fsmc_nand_id_table); · 1223 unmodified lines | ||
| 1224 | 1224 | static struct platform_driver fsmc_nand_driver = { |
| 1225 | 1225 | .remove = fsmc_nand_remove, |
| 1226 | 1226 | .driver = { |
| 1227 | − .owner = THIS_MODULE, | |
| 1228 | 1227 | .name = "fsmc-nand", |
| 1229 | 1228 | .of_match_table = of_match_ptr(fsmc_nand_id_table), |
| 1230 | 1229 | .pm = &fsmc_nand_pm_ops, |
| @@ -308,7 +308,6 @@ static struct platform_driver gpio_nand_driver = { · 307 unmodified lines | ||
| 308 | 308 | .remove = gpio_nand_remove, |
| 309 | 309 | .driver = { |
| 310 | 310 | .name = "gpio-nand", |
| 311 | − .owner = THIS_MODULE, | |
| 312 | 311 | .of_match_table = of_match_ptr(gpio_nand_id_table), |
| 313 | 312 | }, |
| 314 | 313 | }; |
| @@ -577,7 +577,6 @@ static struct platform_driver jz_nand_driver = { · 576 unmodified lines | ||
| 577 | 577 | .remove = jz_nand_remove, |
| 578 | 578 | .driver = { |
| 579 | 579 | .name = "jz4740-nand", |
| 580 | − .owner = THIS_MODULE, | |
| 581 | 580 | }, |
| 582 | 581 | }; |
| 583 | 582 | |
| @@ -878,7 +878,6 @@ static struct platform_driver lpc32xx_nand_driver = { · 877 unmodified lines | ||
| 878 | 878 | .suspend = lpc32xx_nand_suspend, |
| 879 | 879 | .driver = { |
| 880 | 880 | .name = DRV_NAME, |
| 881 | − .owner = THIS_MODULE, | |
| 882 | 881 | .of_match_table = lpc32xx_nand_match, |
| 883 | 882 | }, |
| 884 | 883 | }; |
| @@ -999,7 +999,6 @@ static struct platform_driver lpc32xx_nand_driver = { · 998 unmodified lines | ||
| 999 | 999 | .suspend = lpc32xx_nand_suspend, |
| 1000 | 1000 | .driver = { |
| 1001 | 1001 | .name = LPC32XX_MODNAME, |
| 1002 | − .owner = THIS_MODULE, | |
| 1003 | 1002 | .of_match_table = lpc32xx_nand_match, |
| 1004 | 1003 | }, |
| 1005 | 1004 | }; |
| @@ -847,7 +847,6 @@ static struct platform_driver mpc5121_nfc_driver = { · 846 unmodified lines | ||
| 847 | 847 | .remove = mpc5121_nfc_remove, |
| 848 | 848 | .driver = { |
| 849 | 849 | .name = DRV_NAME, |
| 850 | − .owner = THIS_MODULE, | |
| 851 | 850 | .of_match_table = mpc5121_nfc_match, |
| 852 | 851 | }, |
| 853 | 852 | }; |
| @@ -1600,7 +1600,6 @@ static int mxcnd_remove(struct platform_device *pdev) · 1599 unmodified lines | ||
| 1600 | 1600 | static struct platform_driver mxcnd_driver = { |
| 1601 | 1601 | .driver = { |
| 1602 | 1602 | .name = DRIVER_NAME, |
| 1603 | − .owner = THIS_MODULE, | |
| 1604 | 1603 | .of_match_table = of_match_ptr(mxcnd_dt_ids), |
| 1605 | 1604 | }, |
| 1606 | 1605 | .id_table = mxcnd_devtype, |
| @@ -277,7 +277,6 @@ MODULE_DEVICE_TABLE(of, ndfc_match); · 276 unmodified lines | ||
| 277 | 277 | static struct platform_driver ndfc_driver = { |
| 278 | 278 | .driver = { |
| 279 | 279 | .name = "ndfc", |
| 280 | − .owner = THIS_MODULE, | |
| 281 | 280 | .of_match_table = ndfc_match, |
| 282 | 281 | }, |
| 283 | 282 | .probe = ndfc_probe, |
| @@ -300,7 +300,6 @@ static struct platform_driver nuc900_nand_driver = { · 299 unmodified lines | ||
| 300 | 300 | .remove = nuc900_nand_remove, |
| 301 | 301 | .driver = { |
| 302 | 302 | .name = "nuc900-fmi", |
| 303 | − .owner = THIS_MODULE, | |
| 304 | 303 | }, |
| 305 | 304 | }; |
| 306 | 305 | |
| @@ -2095,7 +2095,6 @@ static struct platform_driver omap_nand_driver = { · 2094 unmodified lines | ||
| 2095 | 2095 | .remove = omap_nand_remove, |
| 2096 | 2096 | .driver = { |
| 2097 | 2097 | .name = DRIVER_NAME, |
| 2098 | − .owner = THIS_MODULE, | |
| 2099 | 2098 | }, |
| 2100 | 2099 | }; |
| 2101 | 2100 | |
| @@ -563,7 +563,6 @@ MODULE_DEVICE_TABLE(of, elm_of_match); · 562 unmodified lines | ||
| 563 | 563 | static struct platform_driver elm_driver = { |
| 564 | 564 | .driver = { |
| 565 | 565 | .name = DRIVER_NAME, |
| 566 | − .owner = THIS_MODULE, | |
| 567 | 566 | .of_match_table = of_match_ptr(elm_of_match), |
| 568 | 567 | .pm = &elm_pm_ops, |
| 569 | 568 | }, |
| @@ -224,7 +224,6 @@ static struct platform_driver orion_nand_driver = { · 223 unmodified lines | ||
| 224 | 224 | .remove = orion_nand_remove, |
| 225 | 225 | .driver = { |
| 226 | 226 | .name = "orion_nand", |
| 227 | − .owner = THIS_MODULE, | |
| 228 | 227 | .of_match_table = of_match_ptr(orion_nand_of_match_table), |
| 229 | 228 | }, |
| 230 | 229 | }; |
| @@ -223,7 +223,6 @@ static struct platform_driver pasemi_nand_driver = · 222 unmodified lines | ||
| 223 | 223 | { |
| 224 | 224 | .driver = { |
| 225 | 225 | .name = driver_name, |
| 226 | − .owner = THIS_MODULE, | |
| 227 | 226 | .of_match_table = pasemi_nand_match, |
| 228 | 227 | }, |
| 229 | 228 | .probe = pasemi_nand_probe, |
| @@ -138,7 +138,6 @@ static struct platform_driver plat_nand_driver = { · 137 unmodified lines | ||
| 138 | 138 | .remove = plat_nand_remove, |
| 139 | 139 | .driver = { |
| 140 | 140 | .name = "gen_nand", |
| 141 | − .owner = THIS_MODULE, | |
| 142 | 141 | .of_match_table = plat_nand_match, |
| 143 | 142 | }, |
| 144 | 143 | }; |
| @@ -1135,7 +1135,6 @@ static struct platform_driver s3c24xx_nand_driver = { · 1134 unmodified lines | ||
| 1135 | 1135 | .id_table = s3c24xx_driver_ids, |
| 1136 | 1136 | .driver = { |
| 1137 | 1137 | .name = "s3c24xx-nand", |
| 1138 | − .owner = THIS_MODULE, | |
| 1139 | 1138 | }, |
| 1140 | 1139 | }; |
| 1141 | 1140 | |
| @@ -1190,7 +1190,6 @@ static struct platform_driver flctl_driver = { · 1189 unmodified lines | ||
| 1190 | 1190 | .remove = flctl_remove, |
| 1191 | 1191 | .driver = { |
| 1192 | 1192 | .name = "sh_flctl", |
| 1193 | − .owner = THIS_MODULE, | |
| 1194 | 1193 | .of_match_table = of_match_ptr(of_flctl_match), |
| 1195 | 1194 | }, |
| 1196 | 1195 | }; |
| @@ -220,7 +220,6 @@ static int sharpsl_nand_remove(struct platform_device *pdev) · 219 unmodified lines | ||
| 220 | 220 | static struct platform_driver sharpsl_nand_driver = { |
| 221 | 221 | .driver = { |
| 222 | 222 | .name = "sharpsl-nand", |
| 223 | − .owner = THIS_MODULE, | |
| 224 | 223 | }, |
| 225 | 224 | .probe = sharpsl_nand_probe, |
| 226 | 225 | .remove = sharpsl_nand_remove, |
| @@ -240,7 +240,6 @@ MODULE_DEVICE_TABLE(of, socrates_nand_match); · 239 unmodified lines | ||
| 240 | 240 | static struct platform_driver socrates_nand_driver = { |
| 241 | 241 | .driver = { |
| 242 | 242 | .name = "socrates_nand", |
| 243 | − .owner = THIS_MODULE, | |
| 244 | 243 | .of_match_table = socrates_nand_match, |
| 245 | 244 | }, |
| 246 | 245 | .probe = socrates_nand_probe, |
| @@ -417,7 +417,6 @@ static struct platform_driver txx9ndfmc_driver = { · 416 unmodified lines | ||
| 417 | 417 | .resume = txx9ndfmc_resume, |
| 418 | 418 | .driver = { |
| 419 | 419 | .name = "txx9ndfmc", |
| 420 | − .owner = THIS_MODULE, | |
| 421 | 420 | }, |
| 422 | 421 | }; |
| 423 | 422 | |
| @@ -106,7 +106,6 @@ static int generic_onenand_remove(struct platform_device *pdev) · 105 unmodified lines | ||
| 106 | 106 | static struct platform_driver generic_onenand_driver = { |
| 107 | 107 | .driver = { |
| 108 | 108 | .name = DRIVER_NAME, |
| 109 | − .owner = THIS_MODULE, | |
| 110 | 109 | }, |
| 111 | 110 | .probe = generic_onenand_probe, |
| 112 | 111 | .remove = generic_onenand_remove, |
| @@ -804,7 +804,6 @@ static struct platform_driver omap2_onenand_driver = { · 803 unmodified lines | ||
| 804 | 804 | .shutdown = omap2_onenand_shutdown, |
| 805 | 805 | .driver = { |
| 806 | 806 | .name = DRIVER_NAME, |
| 807 | − .owner = THIS_MODULE, | |
| 808 | 807 | }, |
| 809 | 808 | }; |
| 810 | 809 | |
| @@ -991,7 +991,6 @@ static struct platform_driver fsl_qspi_driver = { · 990 unmodified lines | ||
| 991 | 991 | .driver = { |
| 992 | 992 | .name = "fsl-quadspi", |
| 993 | 993 | .bus = &platform_bus_type, |
| 994 | − .owner = THIS_MODULE, | |
| 995 | 994 | .of_match_table = fsl_qspi_dt_ids, |
| 996 | 995 | }, |
| 997 | 996 | .probe = fsl_qspi_probe, |
| @@ -1428,7 +1428,6 @@ static struct platform_driver at91_can_driver = { · 1427 unmodified lines | ||
| 1428 | 1428 | .remove = at91_can_remove, |
| 1429 | 1429 | .driver = { |
| 1430 | 1430 | .name = KBUILD_MODNAME, |
| 1431 | − .owner = THIS_MODULE, | |
| 1432 | 1431 | .of_match_table = of_match_ptr(at91_can_dt_ids), |
| 1433 | 1432 | }, |
| 1434 | 1433 | .id_table = at91_can_id_table, |
| @@ -680,7 +680,6 @@ static struct platform_driver bfin_can_driver = { · 679 unmodified lines | ||
| 680 | 680 | .resume = bfin_can_resume, |
| 681 | 681 | .driver = { |
| 682 | 682 | .name = DRV_NAME, |
| 683 | − .owner = THIS_MODULE, | |
| 684 | 683 | }, |
| 685 | 684 | }; |
| 686 | 685 | |
| @@ -471,7 +471,6 @@ static int c_can_resume(struct platform_device *pdev) · 470 unmodified lines | ||
| 471 | 471 | static struct platform_driver c_can_plat_driver = { |
| 472 | 472 | .driver = { |
| 473 | 473 | .name = KBUILD_MODNAME, |
| 474 | − .owner = THIS_MODULE, | |
| 475 | 474 | .of_match_table = c_can_of_table, |
| 476 | 475 | }, |
| 477 | 476 | .probe = c_can_plat_probe, |
| @@ -318,7 +318,6 @@ static struct platform_driver cc770_isa_driver = { · 317 unmodified lines | ||
| 318 | 318 | .remove = cc770_isa_remove, |
| 319 | 319 | .driver = { |
| 320 | 320 | .name = KBUILD_MODNAME, |
| 321 | − .owner = THIS_MODULE, | |
| 322 | 321 | }, |
| 323 | 322 | }; |
| 324 | 323 | |
| @@ -264,7 +264,6 @@ MODULE_DEVICE_TABLE(of, cc770_platform_table); · 263 unmodified lines | ||
| 264 | 264 | static struct platform_driver cc770_platform_driver = { |
| 265 | 265 | .driver = { |
| 266 | 266 | .name = DRV_NAME, |
| 267 | − .owner = THIS_MODULE, | |
| 268 | 267 | .of_match_table = cc770_platform_table, |
| 269 | 268 | }, |
| 270 | 269 | .probe = cc770_platform_probe, |
| @@ -1302,7 +1302,6 @@ static SIMPLE_DEV_PM_OPS(flexcan_pm_ops, flexcan_suspend, flexcan_resume); · 1301 unmodified lines | ||
| 1302 | 1302 | static struct platform_driver flexcan_driver = { |
| 1303 | 1303 | .driver = { |
| 1304 | 1304 | .name = DRV_NAME, |
| 1305 | − .owner = THIS_MODULE, | |
| 1306 | 1305 | .pm = &flexcan_pm_ops, |
| 1307 | 1306 | .of_match_table = flexcan_of_match, |
| 1308 | 1307 | }, |
| @@ -1738,7 +1738,6 @@ MODULE_DEVICE_TABLE(of, grcan_match); · 1737 unmodified lines | ||
| 1738 | 1738 | static struct platform_driver grcan_driver = { |
| 1739 | 1739 | .driver = { |
| 1740 | 1740 | .name = DRV_NAME, |
| 1741 | − .owner = THIS_MODULE, | |
| 1742 | 1741 | .of_match_table = grcan_match, |
| 1743 | 1742 | }, |
| 1744 | 1743 | .probe = grcan_probe, |
| @@ -1910,7 +1910,6 @@ static int ican3_remove(struct platform_device *pdev) · 1909 unmodified lines | ||
| 1910 | 1910 | static struct platform_driver ican3_driver = { |
| 1911 | 1911 | .driver = { |
| 1912 | 1912 | .name = DRV_NAME, |
| 1913 | − .owner = THIS_MODULE, | |
| 1914 | 1913 | }, |
| 1915 | 1914 | .probe = ican3_probe, |
| 1916 | 1915 | .remove = ican3_remove, |
| @@ -441,7 +441,6 @@ MODULE_DEVICE_TABLE(of, mpc5xxx_can_table); · 440 unmodified lines | ||
| 441 | 441 | static struct platform_driver mpc5xxx_can_driver = { |
| 442 | 442 | .driver = { |
| 443 | 443 | .name = "mpc5xxx_can", |
| 444 | − .owner = THIS_MODULE, | |
| 445 | 444 | .of_match_table = mpc5xxx_can_table, |
| 446 | 445 | }, |
| 447 | 446 | .probe = mpc5xxx_can_probe, |
| @@ -907,7 +907,6 @@ MODULE_DEVICE_TABLE(of, rcar_can_of_table); · 906 unmodified lines | ||
| 907 | 907 | static struct platform_driver rcar_can_driver = { |
| 908 | 908 | .driver = { |
| 909 | 909 | .name = RCAR_CAN_DRV_NAME, |
| 910 | − .owner = THIS_MODULE, | |
| 911 | 910 | .of_match_table = of_match_ptr(rcar_can_of_table), |
| 912 | 911 | .pm = &rcar_can_pm_ops, |
| 913 | 912 | }, |
| @@ -259,7 +259,6 @@ static struct platform_driver sja1000_isa_driver = { · 258 unmodified lines | ||
| 259 | 259 | .remove = sja1000_isa_remove, |
| 260 | 260 | .driver = { |
| 261 | 261 | .name = DRV_NAME, |
| 262 | − .owner = THIS_MODULE, | |
| 263 | 262 | }, |
| 264 | 263 | }; |
| 265 | 264 | |
| @@ -253,7 +253,6 @@ static struct platform_driver sp_driver = { · 252 unmodified lines | ||
| 253 | 253 | .remove = sp_remove, |
| 254 | 254 | .driver = { |
| 255 | 255 | .name = DRV_NAME, |
| 256 | − .owner = THIS_MODULE, | |
| 257 | 256 | .of_match_table = sp_of_table, |
| 258 | 257 | }, |
| 259 | 258 | }; |
| @@ -856,7 +856,6 @@ platform_resource_failed: · 855 unmodified lines | ||
| 856 | 856 | static struct platform_driver softing_driver = { |
| 857 | 857 | .driver = { |
| 858 | 858 | .name = "softing", |
| 859 | − .owner = THIS_MODULE, | |
| 860 | 859 | }, |
| 861 | 860 | .probe = softing_pdev_probe, |
| 862 | 861 | .remove = softing_pdev_remove, |
| @@ -1039,7 +1039,6 @@ static int ti_hecc_resume(struct platform_device *pdev) · 1038 unmodified lines | ||
| 1039 | 1039 | static struct platform_driver ti_hecc_driver = { |
| 1040 | 1040 | .driver = { |
| 1041 | 1041 | .name = DRV_NAME, |
| 1042 | − .owner = THIS_MODULE, | |
| 1043 | 1042 | }, |
| 1044 | 1043 | .probe = ti_hecc_probe, |
| 1045 | 1044 | .remove = ti_hecc_remove, |
| @@ -1196,7 +1196,6 @@ static struct platform_driver xcan_driver = { · 1195 unmodified lines | ||
| 1196 | 1196 | .probe = xcan_probe, |
| 1197 | 1197 | .remove = xcan_remove, |
| 1198 | 1198 | .driver = { |
| 1199 | − .owner = THIS_MODULE, | |
| 1200 | 1199 | .name = DRIVER_NAME, |
| 1201 | 1200 | .pm = &xcan_dev_pm_ops, |
| 1202 | 1201 | .of_match_table = xcan_of_match, |
| @@ -1000,7 +1000,6 @@ static int ax_resume(struct platform_device *pdev) · 999 unmodified lines | ||
| 1000 | 1000 | static struct platform_driver axdrv = { |
| 1001 | 1001 | .driver = { |
| 1002 | 1002 | .name = "ax88796", |
| 1003 | − .owner = THIS_MODULE, | |
| 1004 | 1003 | }, |
| 1005 | 1004 | .probe = ax_probe, |
| 1006 | 1005 | .remove = ax_remove, |
| @@ -467,7 +467,6 @@ static int mcf8390_remove(struct platform_device *pdev) · 466 unmodified lines | ||
| 467 | 467 | static struct platform_driver mcf8390_drv = { |
| 468 | 468 | .driver = { |
| 469 | 469 | .name = "mcf8390", |
| 470 | − .owner = THIS_MODULE, | |
| 471 | 470 | }, |
| 472 | 471 | .probe = mcf8390_probe, |
| 473 | 472 | .remove = mcf8390_remove, |
| @@ -920,7 +920,6 @@ static struct platform_driver ne_driver = { · 919 unmodified lines | ||
| 920 | 920 | .resume = ne_drv_resume, |
| 921 | 921 | .driver = { |
| 922 | 922 | .name = DRV_NAME, |
| 923 | − .owner = THIS_MODULE, | |
| 924 | 923 | }, |
| 925 | 924 | }; |
| 926 | 925 | |
| @@ -1901,7 +1901,6 @@ static struct platform_driver bfin_mii_bus_driver = { · 1900 unmodified lines | ||
| 1901 | 1901 | .remove = bfin_mii_bus_remove, |
| 1902 | 1902 | .driver = { |
| 1903 | 1903 | .name = "bfin_mii_bus", |
| 1904 | − .owner = THIS_MODULE, | |
| 1905 | 1904 | }, |
| 1906 | 1905 | }; |
| 1907 | 1906 | |
| @@ -1912,7 +1911,6 @@ static struct platform_driver bfin_mac_driver = { · 4 unmodified lines | ||
| 1912 | 1911 | .suspend = bfin_mac_suspend, |
| 1913 | 1912 | .driver = { |
| 1914 | 1913 | .name = KBUILD_MODNAME, |
| 1915 | − .owner = THIS_MODULE, | |
| 1916 | 1914 | }, |
| 1917 | 1915 | }; |
| 1918 | 1916 | |
| @@ -1603,7 +1603,6 @@ MODULE_DEVICE_TABLE(of, greth_of_match); · 1602 unmodified lines | ||
| 1603 | 1603 | static struct platform_driver greth_of_driver = { |
| 1604 | 1604 | .driver = { |
| 1605 | 1605 | .name = "grlib-greth", |
| 1606 | − .owner = THIS_MODULE, | |
| 1607 | 1606 | .of_match_table = greth_of_match, |
| 1608 | 1607 | }, |
| 1609 | 1608 | .probe = greth_of_probe, |
| @@ -1587,7 +1587,6 @@ static struct platform_driver altera_tse_driver = { · 1586 unmodified lines | ||
| 1587 | 1587 | .resume = NULL, |
| 1588 | 1588 | .driver = { |
| 1589 | 1589 | .name = ALTERA_TSE_RESOURCE_NAME, |
| 1590 | − .owner = THIS_MODULE, | |
| 1591 | 1590 | .of_match_table = altera_tse_ids, |
| 1592 | 1591 | }, |
| 1593 | 1592 | }; |
| @@ -1461,7 +1461,6 @@ static struct platform_driver au1000_eth_driver = { · 1460 unmodified lines | ||
| 1461 | 1461 | .remove = au1000_remove, |
| 1462 | 1462 | .driver = { |
| 1463 | 1463 | .name = "au1000-eth", |
| 1464 | − .owner = THIS_MODULE, | |
| 1465 | 1464 | }, |
| 1466 | 1465 | }; |
| 1467 | 1466 | |
| @@ -1524,7 +1524,6 @@ MODULE_DEVICE_TABLE(of, sunlance_sbus_match); · 1523 unmodified lines | ||
| 1524 | 1524 | static struct platform_driver sunlance_sbus_driver = { |
| 1525 | 1525 | .driver = { |
| 1526 | 1526 | .name = "sunlance", |
| 1527 | − .owner = THIS_MODULE, | |
| 1528 | 1527 | .of_match_table = sunlance_sbus_match, |
| 1529 | 1528 | }, |
| 1530 | 1529 | .probe = sunlance_sbus_probe, |
| @@ -768,7 +768,6 @@ static struct platform_driver mac_mace_driver = { · 767 unmodified lines | ||
| 768 | 768 | .remove = mac_mace_device_remove, |
| 769 | 769 | .driver = { |
| 770 | 770 | .name = mac_mace_string, |
| 771 | − .owner = THIS_MODULE, | |
| 772 | 771 | }, |
| 773 | 772 | }; |
| 774 | 773 | |
| @@ -1994,7 +1994,6 @@ static struct platform_driver bcm_sysport_driver = { · 1993 unmodified lines | ||
| 1994 | 1994 | .remove = bcm_sysport_remove, |
| 1995 | 1995 | .driver = { |
| 1996 | 1996 | .name = "brcm-systemport", |
| 1997 | − .owner = THIS_MODULE, | |
| 1998 | 1997 | .of_match_table = bcm_sysport_of_match, |
| 1999 | 1998 | .pm = &bcm_sysport_pm_ops, |
| 2000 | 1999 | }, |
| @@ -2889,7 +2889,6 @@ static struct platform_driver bcmgenet_driver = { · 2888 unmodified lines | ||
| 2889 | 2889 | .remove = bcmgenet_remove, |
| 2890 | 2890 | .driver = { |
| 2891 | 2891 | .name = "bcmgenet", |
| 2892 | − .owner = THIS_MODULE, | |
| 2893 | 2892 | .of_match_table = bcmgenet_match, |
| 2894 | 2893 | .pm = &bcmgenet_pm_ops, |
| 2895 | 2894 | }, |
| @@ -2664,7 +2664,6 @@ static struct platform_driver sbmac_driver = { · 2663 unmodified lines | ||
| 2664 | 2664 | .remove = __exit_p(sbmac_remove), |
| 2665 | 2665 | .driver = { |
| 2666 | 2666 | .name = sbmac_string, |
| 2667 | − .owner = THIS_MODULE, | |
| 2668 | 2667 | }, |
| 2669 | 2668 | }; |
| 2670 | 2669 | |
| @@ -469,7 +469,6 @@ static struct platform_driver at91ether_driver = { · 468 unmodified lines | ||
| 469 | 469 | .resume = at91ether_resume, |
| 470 | 470 | .driver = { |
| 471 | 471 | .name = "at91_ether", |
| 472 | − .owner = THIS_MODULE, | |
| 473 | 472 | .of_match_table = of_match_ptr(at91ether_dt_ids), |
| 474 | 473 | }, |
| 475 | 474 | }; |
| @@ -2459,7 +2459,6 @@ static struct platform_driver macb_driver = { · 2458 unmodified lines | ||
| 2459 | 2459 | .remove = __exit_p(macb_remove), |
| 2460 | 2460 | .driver = { |
| 2461 | 2461 | .name = "macb", |
| 2462 | − .owner = THIS_MODULE, | |
| 2463 | 2462 | .of_match_table = of_match_ptr(macb_dt_ids), |
| 2464 | 2463 | .pm = &macb_pm_ops, |
| 2465 | 2464 | }, |
| @@ -1897,7 +1897,6 @@ static int cs89x0_platform_remove(struct platform_device *pdev) · 1896 unmodified lines | ||
| 1897 | 1897 | static struct platform_driver cs89x0_driver = { |
| 1898 | 1898 | .driver = { |
| 1899 | 1899 | .name = DRV_NAME, |
| 1900 | − .owner = THIS_MODULE, | |
| 1901 | 1900 | }, |
| 1902 | 1901 | .remove = cs89x0_platform_remove, |
| 1903 | 1902 | }; |
| @@ -881,7 +881,6 @@ static struct platform_driver ep93xx_eth_driver = { · 880 unmodified lines | ||
| 881 | 881 | .remove = ep93xx_eth_remove, |
| 882 | 882 | .driver = { |
| 883 | 883 | .name = "ep93xx-eth", |
| 884 | − .owner = THIS_MODULE, | |
| 885 | 884 | }, |
| 886 | 885 | }; |
| 887 | 886 | |
| @@ -1749,7 +1749,6 @@ MODULE_DEVICE_TABLE(of, dm9000_of_matches); · 1748 unmodified lines | ||
| 1749 | 1749 | static struct platform_driver dm9000_driver = { |
| 1750 | 1750 | .driver = { |
| 1751 | 1751 | .name = "dm9000", |
| 1752 | − .owner = THIS_MODULE, | |
| 1753 | 1752 | .pm = &dm9000_drv_pm_ops, |
| 1754 | 1753 | .of_match_table = of_match_ptr(dm9000_of_matches), |
| 1755 | 1754 | }, |
| @@ -1312,7 +1312,6 @@ static struct platform_driver ethoc_driver = { · 1311 unmodified lines | ||
| 1312 | 1312 | .resume = ethoc_resume, |
| 1313 | 1313 | .driver = { |
| 1314 | 1314 | .name = "ethoc", |
| 1315 | − .owner = THIS_MODULE, | |
| 1316 | 1315 | .of_match_table = ethoc_match, |
| 1317 | 1316 | }, |
| 1318 | 1317 | }; |
| @@ -1335,7 +1335,6 @@ static struct platform_driver ftgmac100_driver = { · 1334 unmodified lines | ||
| 1335 | 1335 | .remove = __exit_p(ftgmac100_remove), |
| 1336 | 1336 | .driver = { |
| 1337 | 1337 | .name = DRV_NAME, |
| 1338 | − .owner = THIS_MODULE, | |
| 1339 | 1338 | }, |
| 1340 | 1339 | }; |
| 1341 | 1340 | |
| @@ -1177,7 +1177,6 @@ static struct platform_driver ftmac100_driver = { · 1176 unmodified lines | ||
| 1177 | 1177 | .remove = __exit_p(ftmac100_remove), |
| 1178 | 1178 | .driver = { |
| 1179 | 1179 | .name = DRV_NAME, |
| 1180 | − .owner = THIS_MODULE, | |
| 1181 | 1180 | }, |
| 1182 | 1181 | }; |
| 1183 | 1182 | |
| @@ -3386,7 +3386,6 @@ static SIMPLE_DEV_PM_OPS(fec_pm_ops, fec_suspend, fec_resume); · 3385 unmodified lines | ||
| 3386 | 3386 | static struct platform_driver fec_driver = { |
| 3387 | 3387 | .driver = { |
| 3388 | 3388 | .name = DRIVER_NAME, |
| 3389 | − .owner = THIS_MODULE, | |
| 3390 | 3389 | .pm = &fec_pm_ops, |
| 3391 | 3390 | .of_match_table = fec_dt_ids, |
| 3392 | 3391 | }, |
| @@ -1069,7 +1069,6 @@ MODULE_DEVICE_TABLE(of, mpc52xx_fec_match); · 1068 unmodified lines | ||
| 1069 | 1069 | static struct platform_driver mpc52xx_fec_driver = { |
| 1070 | 1070 | .driver = { |
| 1071 | 1071 | .name = DRIVER_NAME, |
| 1072 | − .owner = THIS_MODULE, | |
| 1073 | 1072 | .of_match_table = mpc52xx_fec_match, |
| 1074 | 1073 | }, |
| 1075 | 1074 | .probe = mpc52xx_fec_probe, |
| @@ -1087,7 +1087,6 @@ MODULE_DEVICE_TABLE(of, fs_enet_match); · 1086 unmodified lines | ||
| 1087 | 1087 | |
| 1088 | 1088 | static struct platform_driver fs_enet_driver = { |
| 1089 | 1089 | .driver = { |
| 1090 | − .owner = THIS_MODULE, | |
| 1091 | 1090 | .name = "fs_enet", |
| 1092 | 1091 | .of_match_table = fs_enet_match, |
| 1093 | 1092 | }, |
| @@ -224,7 +224,6 @@ MODULE_DEVICE_TABLE(of, fs_enet_mdio_bb_match); · 223 unmodified lines | ||
| 224 | 224 | static struct platform_driver fs_enet_bb_mdio_driver = { |
| 225 | 225 | .driver = { |
| 226 | 226 | .name = "fsl-bb-mdio", |
| 227 | − .owner = THIS_MODULE, | |
| 228 | 227 | .of_match_table = fs_enet_mdio_bb_match, |
| 229 | 228 | }, |
| 230 | 229 | .probe = fs_enet_mdio_probe, |
| @@ -225,7 +225,6 @@ MODULE_DEVICE_TABLE(of, fs_enet_mdio_fec_match); · 224 unmodified lines | ||
| 225 | 225 | static struct platform_driver fs_enet_fec_mdio_driver = { |
| 226 | 226 | .driver = { |
| 227 | 227 | .name = "fsl-fec-mdio", |
| 228 | − .owner = THIS_MODULE, | |
| 229 | 228 | .of_match_table = fs_enet_mdio_fec_match, |
| 230 | 229 | }, |
| 231 | 230 | .probe = fs_enet_mdio_probe, |
| @@ -488,7 +488,6 @@ static int fsl_pq_mdio_remove(struct platform_device *pdev) · 487 unmodified lines | ||
| 488 | 488 | static struct platform_driver fsl_pq_mdio_driver = { |
| 489 | 489 | .driver = { |
| 490 | 490 | .name = "fsl-pq_mdio", |
| 491 | − .owner = THIS_MODULE, | |
| 492 | 491 | .of_match_table = fsl_pq_mdio_match, |
| 493 | 492 | }, |
| 494 | 493 | .probe = fsl_pq_mdio_probe, |
| @@ -3561,7 +3561,6 @@ MODULE_DEVICE_TABLE(of, gfar_match); · 3560 unmodified lines | ||
| 3561 | 3561 | static struct platform_driver gfar_driver = { |
| 3562 | 3562 | .driver = { |
| 3563 | 3563 | .name = "fsl-gianfar", |
| 3564 | − .owner = THIS_MODULE, | |
| 3565 | 3564 | .pm = GFAR_PM_OPS, |
| 3566 | 3565 | .of_match_table = gfar_match, |
| 3567 | 3566 | }, |
| @@ -563,7 +563,6 @@ static struct platform_driver gianfar_ptp_driver = { · 562 unmodified lines | ||
| 563 | 563 | .driver = { |
| 564 | 564 | .name = "gianfar_ptp", |
| 565 | 565 | .of_match_table = match_table, |
| 566 | − .owner = THIS_MODULE, | |
| 567 | 566 | }, |
| 568 | 567 | .probe = gianfar_ptp_probe, |
| 569 | 568 | .remove = gianfar_ptp_remove, |
| @@ -3943,7 +3943,6 @@ MODULE_DEVICE_TABLE(of, ucc_geth_match); · 3942 unmodified lines | ||
| 3943 | 3943 | static struct platform_driver ucc_geth_driver = { |
| 3944 | 3944 | .driver = { |
| 3945 | 3945 | .name = DRV_NAME, |
| 3946 | − .owner = THIS_MODULE, | |
| 3947 | 3946 | .of_match_table = ucc_geth_match, |
| 3948 | 3947 | }, |
| 3949 | 3948 | .probe = ucc_geth_probe, |
| @@ -165,7 +165,6 @@ static struct platform_driver sni_82596_driver = { · 164 unmodified lines | ||
| 165 | 165 | .remove = sni_82596_driver_remove, |
| 166 | 166 | .driver = { |
| 167 | 167 | .name = sni_82596_string, |
| 168 | − .owner = THIS_MODULE, | |
| 169 | 168 | }, |
| 170 | 169 | }; |
| 171 | 170 | |
| @@ -3002,7 +3002,6 @@ MODULE_DEVICE_TABLE(of, emac_match); · 3001 unmodified lines | ||
| 3002 | 3002 | static struct platform_driver emac_driver = { |
| 3003 | 3003 | .driver = { |
| 3004 | 3004 | .name = "emac", |
| 3005 | − .owner = THIS_MODULE, | |
| 3006 | 3005 | .of_match_table = emac_match, |
| 3007 | 3006 | }, |
| 3008 | 3007 | .probe = emac_probe, |
| @@ -776,7 +776,6 @@ static struct of_device_id mal_platform_match[] = · 775 unmodified lines | ||
| 776 | 776 | static struct platform_driver mal_of_driver = { |
| 777 | 777 | .driver = { |
| 778 | 778 | .name = "mcmal", |
| 779 | − .owner = THIS_MODULE, | |
| 780 | 779 | .of_match_table = mal_platform_match, |
| 781 | 780 | }, |
| 782 | 781 | .probe = mal_probe, |
| @@ -319,7 +319,6 @@ static struct of_device_id rgmii_match[] = · 318 unmodified lines | ||
| 319 | 319 | static struct platform_driver rgmii_driver = { |
| 320 | 320 | .driver = { |
| 321 | 321 | .name = "emac-rgmii", |
| 322 | − .owner = THIS_MODULE, | |
| 323 | 322 | .of_match_table = rgmii_match, |
| 324 | 323 | }, |
| 325 | 324 | .probe = rgmii_probe, |
| @@ -163,7 +163,6 @@ static struct of_device_id tah_match[] = · 162 unmodified lines | ||
| 163 | 163 | static struct platform_driver tah_driver = { |
| 164 | 164 | .driver = { |
| 165 | 165 | .name = "emac-tah", |
| 166 | − .owner = THIS_MODULE, | |
| 167 | 166 | .of_match_table = tah_match, |
| 168 | 167 | }, |
| 169 | 168 | .probe = tah_probe, |
| @@ -310,7 +310,6 @@ static struct of_device_id zmii_match[] = · 309 unmodified lines | ||
| 310 | 310 | static struct platform_driver zmii_driver = { |
| 311 | 311 | .driver = { |
| 312 | 312 | .name = "emac-zmii", |
| 313 | − .owner = THIS_MODULE, | |
| 314 | 313 | .of_match_table = zmii_match, |
| 315 | 314 | }, |
| 316 | 315 | .probe = zmii_probe, |
| @@ -789,7 +789,6 @@ static struct platform_driver ltq_mii_driver = { · 788 unmodified lines | ||
| 789 | 789 | .remove = ltq_etop_remove, |
| 790 | 790 | .driver = { |
| 791 | 791 | .name = "ltq_etop", |
| 792 | − .owner = THIS_MODULE, | |
| 793 | 792 | }, |
| 794 | 793 | }; |
| 795 | 794 | |
| @@ -2839,7 +2839,6 @@ static struct platform_driver mv643xx_eth_shared_driver = { · 2838 unmodified lines | ||
| 2839 | 2839 | .remove = mv643xx_eth_shared_remove, |
| 2840 | 2840 | .driver = { |
| 2841 | 2841 | .name = MV643XX_ETH_SHARED_NAME, |
| 2842 | − .owner = THIS_MODULE, | |
| 2843 | 2842 | .of_match_table = of_match_ptr(mv643xx_eth_shared_ids), |
| 2844 | 2843 | }, |
| 2845 | 2844 | }; |
| @@ -3188,7 +3187,6 @@ static struct platform_driver mv643xx_eth_driver = { · 342 unmodified lines | ||
| 3188 | 3187 | .shutdown = mv643xx_eth_shutdown, |
| 3189 | 3188 | .driver = { |
| 3190 | 3189 | .name = MV643XX_ETH_NAME, |
| 3191 | − .owner = THIS_MODULE, | |
| 3192 | 3190 | }, |
| 3193 | 3191 | }; |
| 3194 | 3192 | |
| @@ -1612,7 +1612,6 @@ ks8695_drv_remove(struct platform_device *pdev) · 1611 unmodified lines | ||
| 1612 | 1612 | static struct platform_driver ks8695_driver = { |
| 1613 | 1613 | .driver = { |
| 1614 | 1614 | .name = MODULENAME, |
| 1615 | − .owner = THIS_MODULE, | |
| 1616 | 1615 | }, |
| 1617 | 1616 | .probe = ks8695_probe, |
| 1618 | 1617 | .remove = ks8695_drv_remove, |
| @@ -1255,7 +1255,6 @@ static int ks8842_remove(struct platform_device *pdev) · 1254 unmodified lines | ||
| 1255 | 1255 | static struct platform_driver ks8842_platform_driver = { |
| 1256 | 1256 | .driver = { |
| 1257 | 1257 | .name = DRV_NAME, |
| 1258 | − .owner = THIS_MODULE, | |
| 1259 | 1258 | }, |
| 1260 | 1259 | .probe = ks8842_probe, |
| 1261 | 1260 | .remove = ks8842_remove, |
| @@ -1679,7 +1679,6 @@ static int ks8851_remove(struct platform_device *pdev) · 1678 unmodified lines | ||
| 1679 | 1679 | static struct platform_driver ks8851_platform_driver = { |
| 1680 | 1680 | .driver = { |
| 1681 | 1681 | .name = DRV_NAME, |
| 1682 | − .owner = THIS_MODULE, | |
| 1683 | 1682 | .of_match_table = of_match_ptr(ks8851_ml_dt_ids), |
| 1684 | 1683 | }, |
| 1685 | 1684 | .probe = ks8851_probe, |
| @@ -559,7 +559,6 @@ static struct platform_driver moxart_mac_driver = { · 558 unmodified lines | ||
| 559 | 559 | .remove = moxart_remove, |
| 560 | 560 | .driver = { |
| 561 | 561 | .name = "moxart-ethernet", |
| 562 | − .owner = THIS_MODULE, | |
| 563 | 562 | .of_match_table = moxart_mac_match, |
| 564 | 563 | }, |
| 565 | 564 | }; |
| @@ -287,7 +287,6 @@ static struct platform_driver jazz_sonic_driver = { · 286 unmodified lines | ||
| 287 | 287 | .remove = jazz_sonic_device_remove, |
| 288 | 288 | .driver = { |
| 289 | 289 | .name = jazz_sonic_string, |
| 290 | − .owner = THIS_MODULE, | |
| 291 | 290 | }, |
| 292 | 291 | }; |
| 293 | 292 | |
| @@ -630,7 +630,6 @@ static struct platform_driver mac_sonic_driver = { · 629 unmodified lines | ||
| 630 | 630 | .remove = mac_sonic_device_remove, |
| 631 | 631 | .driver = { |
| 632 | 632 | .name = mac_sonic_string, |
| 633 | − .owner = THIS_MODULE, | |
| 634 | 633 | }, |
| 635 | 634 | }; |
| 636 | 635 | |
| @@ -457,7 +457,6 @@ static struct platform_driver netx_eth_driver = { · 456 unmodified lines | ||
| 457 | 457 | .resume = netx_eth_drv_resume, |
| 458 | 458 | .driver = { |
| 459 | 459 | .name = CARDNAME, |
| 460 | − .owner = THIS_MODULE, | |
| 461 | 460 | }, |
| 462 | 461 | }; |
| 463 | 462 | |
| @@ -1081,7 +1081,6 @@ static struct platform_driver w90p910_ether_driver = { · 1080 unmodified lines | ||
| 1081 | 1081 | .remove = w90p910_ether_remove, |
| 1082 | 1082 | .driver = { |
| 1083 | 1083 | .name = "nuc900-emc", |
| 1084 | − .owner = THIS_MODULE, | |
| 1085 | 1084 | }, |
| 1086 | 1085 | }; |
| 1087 | 1086 | |
| @@ -1568,7 +1568,6 @@ MODULE_DEVICE_TABLE(of, octeon_mgmt_match); · 1567 unmodified lines | ||
| 1568 | 1568 | static struct platform_driver octeon_mgmt_driver = { |
| 1569 | 1569 | .driver = { |
| 1570 | 1570 | .name = "octeon_mgmt", |
| 1571 | − .owner = THIS_MODULE, | |
| 1572 | 1571 | .of_match_table = octeon_mgmt_match, |
| 1573 | 1572 | }, |
| 1574 | 1573 | .probe = octeon_mgmt_probe, |
| @@ -1048,7 +1048,6 @@ static struct platform_driver s6gmac_driver = { · 1047 unmodified lines | ||
| 1048 | 1048 | .remove = s6gmac_remove, |
| 1049 | 1049 | .driver = { |
| 1050 | 1050 | .name = "s6gmac", |
| 1051 | − .owner = THIS_MODULE, | |
| 1052 | 1051 | }, |
| 1053 | 1052 | }; |
| 1054 | 1053 | |
| @@ -233,7 +233,6 @@ static struct platform_driver sxgbe_platform_driver = { · 232 unmodified lines | ||
| 233 | 233 | .remove = sxgbe_platform_remove, |
| 234 | 234 | .driver = { |
| 235 | 235 | .name = SXGBE_RESOURCE_NAME, |
| 236 | − .owner = THIS_MODULE, | |
| 237 | 236 | .pm = &sxgbe_platform_pm_ops, |
| 238 | 237 | .of_match_table = of_match_ptr(sxgbe_dt_ids), |
| 239 | 238 | }, |
| @@ -826,7 +826,6 @@ static struct platform_driver sgiseeq_driver = { · 825 unmodified lines | ||
| 826 | 826 | .remove = __exit_p(sgiseeq_remove), |
| 827 | 827 | .driver = { |
| 828 | 828 | .name = "sgiseeq", |
| 829 | − .owner = THIS_MODULE, | |
| 830 | 829 | } |
| 831 | 830 | }; |
| 832 | 831 | |
| @@ -870,7 +870,6 @@ static struct platform_driver meth_driver = { · 869 unmodified lines | ||
| 870 | 870 | .remove = __exit_p(meth_remove), |
| 871 | 871 | .driver = { |
| 872 | 872 | .name = "meth", |
| 873 | − .owner = THIS_MODULE, | |
| 874 | 873 | } |
| 875 | 874 | }; |
| 876 | 875 | |
| @@ -2173,7 +2173,6 @@ static struct platform_driver smc911x_driver = { · 2172 unmodified lines | ||
| 2173 | 2173 | .resume = smc911x_drv_resume, |
| 2174 | 2174 | .driver = { |
| 2175 | 2175 | .name = CARDNAME, |
| 2176 | − .owner = THIS_MODULE, | |
| 2177 | 2176 | }, |
| 2178 | 2177 | }; |
| 2179 | 2178 | |
| @@ -2472,7 +2472,6 @@ static struct platform_driver smc_driver = { · 2471 unmodified lines | ||
| 2472 | 2472 | .remove = smc_drv_remove, |
| 2473 | 2473 | .driver = { |
| 2474 | 2474 | .name = CARDNAME, |
| 2475 | − .owner = THIS_MODULE, | |
| 2476 | 2475 | .pm = &smc_drv_pm_ops, |
| 2477 | 2476 | .of_match_table = of_match_ptr(smc91x_match), |
| 2478 | 2477 | }, |
| @@ -2659,7 +2659,6 @@ static struct platform_driver smsc911x_driver = { · 2658 unmodified lines | ||
| 2659 | 2659 | .remove = smsc911x_drv_remove, |
| 2660 | 2660 | .driver = { |
| 2661 | 2661 | .name = SMSC_CHIPNAME, |
| 2662 | − .owner = THIS_MODULE, | |
| 2663 | 2662 | .pm = SMSC911X_PM_OPS, |
| 2664 | 2663 | .of_match_table = of_match_ptr(smsc911x_dt_ids), |
| 2665 | 2664 | }, |
| @@ -10180,7 +10180,6 @@ MODULE_DEVICE_TABLE(of, niu_match); · 10179 unmodified lines | ||
| 10180 | 10180 | static struct platform_driver niu_of_driver = { |
| 10181 | 10181 | .driver = { |
| 10182 | 10182 | .name = "niu", |
| 10183 | − .owner = THIS_MODULE, | |
| 10184 | 10183 | .of_match_table = niu_match, |
| 10185 | 10184 | }, |
| 10186 | 10185 | .probe = niu_of_probe, |
| @@ -1273,7 +1273,6 @@ MODULE_DEVICE_TABLE(of, bigmac_sbus_match); · 1272 unmodified lines | ||
| 1273 | 1273 | static struct platform_driver bigmac_sbus_driver = { |
| 1274 | 1274 | .driver = { |
| 1275 | 1275 | .name = "sunbmac", |
| 1276 | − .owner = THIS_MODULE, | |
| 1277 | 1276 | .of_match_table = bigmac_sbus_match, |
| 1278 | 1277 | }, |
| 1279 | 1278 | .probe = bigmac_sbus_probe, |
| @@ -3323,7 +3323,6 @@ MODULE_DEVICE_TABLE(of, hme_sbus_match); · 3322 unmodified lines | ||
| 3323 | 3323 | static struct platform_driver hme_sbus_driver = { |
| 3324 | 3324 | .driver = { |
| 3325 | 3325 | .name = "hme", |
| 3326 | − .owner = THIS_MODULE, | |
| 3327 | 3326 | .of_match_table = hme_sbus_match, |
| 3328 | 3327 | }, |
| 3329 | 3328 | .probe = hme_sbus_probe, |
| @@ -963,7 +963,6 @@ MODULE_DEVICE_TABLE(of, qec_sbus_match); · 962 unmodified lines | ||
| 963 | 963 | static struct platform_driver qec_sbus_driver = { |
| 964 | 964 | .driver = { |
| 965 | 965 | .name = "qec", |
| 966 | − .owner = THIS_MODULE, | |
| 967 | 966 | .of_match_table = qec_sbus_match, |
| 968 | 967 | }, |
| 969 | 968 | .probe = qec_sbus_probe, |
| @@ -161,7 +161,6 @@ static struct platform_driver tsi_eth_driver = { · 160 unmodified lines | ||
| 161 | 161 | .remove = tsi108_ether_remove, |
| 162 | 162 | .driver = { |
| 163 | 163 | .name = "tsi-ethernet", |
| 164 | − .owner = THIS_MODULE, | |
| 165 | 164 | }, |
| 166 | 165 | }; |
| 167 | 166 | |
| @@ -2508,7 +2508,6 @@ static struct platform_driver rhine_driver_platform = { · 2507 unmodified lines | ||
| 2508 | 2508 | .remove = rhine_remove_one_platform, |
| 2509 | 2509 | .driver = { |
| 2510 | 2510 | .name = DRV_NAME, |
| 2511 | − .owner = THIS_MODULE, | |
| 2512 | 2511 | .of_match_table = rhine_of_tbl, |
| 2513 | 2512 | .pm = RHINE_PM_OPS, |
| 2514 | 2513 | } |
| @@ -3281,7 +3281,6 @@ static struct platform_driver velocity_platform_driver = { · 3280 unmodified lines | ||
| 3281 | 3281 | .remove = velocity_platform_remove, |
| 3282 | 3282 | .driver = { |
| 3283 | 3283 | .name = "via-velocity", |
| 3284 | − .owner = THIS_MODULE, | |
| 3285 | 3284 | .of_match_table = velocity_of_ids, |
| 3286 | 3285 | .pm = &velocity_pm_ops, |
| 3287 | 3286 | }, |
| @@ -788,7 +788,6 @@ static SIMPLE_DEV_PM_OPS(w5100_pm_ops, w5100_suspend, w5100_resume); · 787 unmodified lines | ||
| 788 | 788 | static struct platform_driver w5100_driver = { |
| 789 | 789 | .driver = { |
| 790 | 790 | .name = DRV_NAME, |
| 791 | − .owner = THIS_MODULE, | |
| 792 | 791 | .pm = &w5100_pm_ops, |
| 793 | 792 | }, |
| 794 | 793 | .probe = w5100_probe, |
| @@ -700,7 +700,6 @@ static SIMPLE_DEV_PM_OPS(w5300_pm_ops, w5300_suspend, w5300_resume); · 699 unmodified lines | ||
| 700 | 700 | static struct platform_driver w5300_driver = { |
| 701 | 701 | .driver = { |
| 702 | 702 | .name = DRV_NAME, |
| 703 | − .owner = THIS_MODULE, | |
| 704 | 703 | .pm = &w5300_pm_ops, |
| 705 | 704 | }, |
| 706 | 705 | .probe = w5300_probe, |
| @@ -261,7 +261,6 @@ static struct platform_driver ieee802154fake_driver = { · 260 unmodified lines | ||
| 261 | 261 | .remove = fakelb_remove, |
| 262 | 262 | .driver = { |
| 263 | 263 | .name = "ieee802154fakelb", |
| 264 | − .owner = THIS_MODULE, | |
| 265 | 264 | }, |
| 266 | 265 | }; |
| 267 | 266 | |
| @@ -61,7 +61,6 @@ static struct platform_driver ali_ircc_driver = { · 60 unmodified lines | ||
| 61 | 61 | .resume = ali_ircc_resume, |
| 62 | 62 | .driver = { |
| 63 | 63 | .name = ALI_IRCC_DRIVER_NAME, |
| 64 | − .owner = THIS_MODULE, | |
| 65 | 64 | }, |
| 66 | 65 | }; |
| 67 | 66 | |
| @@ -989,7 +989,6 @@ static int au1k_irda_remove(struct platform_device *pdev) · 988 unmodified lines | ||
| 989 | 989 | static struct platform_driver au1k_irda_driver = { |
| 990 | 990 | .driver = { |
| 991 | 991 | .name = "au1000-irda", |
| 992 | − .owner = THIS_MODULE, | |
| 993 | 992 | }, |
| 994 | 993 | .probe = au1k_irda_probe, |
| 995 | 994 | .remove = au1k_irda_remove, |
| @@ -966,7 +966,6 @@ static int pxa_irda_remove(struct platform_device *_dev) · 965 unmodified lines | ||
| 966 | 966 | static struct platform_driver pxa_ir_driver = { |
| 967 | 967 | .driver = { |
| 968 | 968 | .name = "pxa2xx-ir", |
| 969 | − .owner = THIS_MODULE, | |
| 970 | 969 | }, |
| 971 | 970 | .probe = pxa_irda_probe, |
| 972 | 971 | .remove = pxa_irda_remove, |
| @@ -1114,7 +1114,6 @@ static struct platform_driver sa1100ir_driver = { · 1113 unmodified lines | ||
| 1114 | 1114 | .resume = sa1100_irda_resume, |
| 1115 | 1115 | .driver = { |
| 1116 | 1116 | .name = "sa11x0-ir", |
| 1117 | − .owner = THIS_MODULE, | |
| 1118 | 1117 | }, |
| 1119 | 1118 | }; |
| 1120 | 1119 | |
| @@ -199,7 +199,6 @@ static struct of_device_id unimac_mdio_ids[] = { · 198 unmodified lines | ||
| 199 | 199 | static struct platform_driver unimac_mdio_driver = { |
| 200 | 200 | .driver = { |
| 201 | 201 | .name = "unimac-mdio", |
| 202 | − .owner = THIS_MODULE, | |
| 203 | 202 | .of_match_table = unimac_mdio_ids, |
| 204 | 203 | }, |
| 205 | 204 | .probe = unimac_mdio_probe, |
| @@ -259,7 +259,6 @@ static struct platform_driver mdio_gpio_driver = { · 258 unmodified lines | ||
| 259 | 259 | .remove = mdio_gpio_remove, |
| 260 | 260 | .driver = { |
| 261 | 261 | .name = "mdio-gpio", |
| 262 | − .owner = THIS_MODULE, | |
| 263 | 262 | .of_match_table = mdio_gpio_of_match, |
| 264 | 263 | }, |
| 265 | 264 | }; |
| @@ -114,7 +114,6 @@ MODULE_DEVICE_TABLE(of, mdio_mux_gpio_match); · 113 unmodified lines | ||
| 114 | 114 | static struct platform_driver mdio_mux_gpio_driver = { |
| 115 | 115 | .driver = { |
| 116 | 116 | .name = "mdio-mux-gpio", |
| 117 | − .owner = THIS_MODULE, | |
| 118 | 117 | .of_match_table = mdio_mux_gpio_match, |
| 119 | 118 | }, |
| 120 | 119 | .probe = mdio_mux_gpio_probe, |
| @@ -156,7 +156,6 @@ MODULE_DEVICE_TABLE(of, mdio_mux_mmioreg_match); · 155 unmodified lines | ||
| 156 | 156 | static struct platform_driver mdio_mux_mmioreg_driver = { |
| 157 | 157 | .driver = { |
| 158 | 158 | .name = "mdio-mux-mmioreg", |
| 159 | − .owner = THIS_MODULE, | |
| 160 | 159 | .of_match_table = mdio_mux_mmioreg_match, |
| 161 | 160 | }, |
| 162 | 161 | .probe = mdio_mux_mmioreg_probe, |
| @@ -263,7 +263,6 @@ MODULE_DEVICE_TABLE(of, octeon_mdiobus_match); · 262 unmodified lines | ||
| 263 | 263 | static struct platform_driver octeon_mdiobus_driver = { |
| 264 | 264 | .driver = { |
| 265 | 265 | .name = "mdio-octeon", |
| 266 | − .owner = THIS_MODULE, | |
| 267 | 266 | .of_match_table = octeon_mdiobus_match, |
| 268 | 267 | }, |
| 269 | 268 | .probe = octeon_mdiobus_probe, |
| @@ -175,7 +175,6 @@ static struct platform_driver ath_ahb_driver = { · 174 unmodified lines | ||
| 175 | 175 | .remove = ath_ahb_remove, |
| 176 | 176 | .driver = { |
| 177 | 177 | .name = "ath9k", |
| 178 | − .owner = THIS_MODULE, | |
| 179 | 178 | }, |
| 180 | 179 | .id_table = ath9k_platform_id_table, |
| 181 | 180 | }; |
| @@ -401,22 +401,14 @@ static const struct file_operations fops_antenna_diversity = { · 400 unmodified lines | ||
| 401 | 401 | .llseek = default_llseek, |
| 402 | 402 | }; |
| 403 | 403 | |
| 404 | −static ssize_t read_file_dma(struct file *file, char __user *user_buf, | |
| 405 | − size_t count, loff_t *ppos) | |
| 404 | +static int read_file_dma(struct seq_file *file, void *data) | |
| 406 | 405 | { |
| 407 | − struct ath_softc *sc = file->private_data; | |
| 406 | + struct ath_softc *sc = file->private; | |
| 408 | 407 | struct ath_hw *ah = sc->sc_ah; |
| 409 | − char *buf; | |
| 410 | − int retval; | |
| 411 | − unsigned int len = 0; | |
| 412 | 408 | u32 val[ATH9K_NUM_DMA_DEBUG_REGS]; |
| 413 | 409 | int i, qcuOffset = 0, dcuOffset = 0; |
| 414 | 410 | u32 *qcuBase = &val[0], *dcuBase = &val[4]; |
| 415 | 411 | |
| 416 | − buf = kmalloc(DMA_BUF_LEN, GFP_KERNEL); | |
| 417 | − if (!buf) | |
| 418 | − return -ENOMEM; | |
| 419 | − | |
| 420 | 412 | ath9k_ps_wakeup(sc); |
| 421 | 413 | |
| 422 | 414 | REG_WRITE_D(ah, AR_MACMISC, |
| @@ -424,21 +416,18 @@ static ssize_t read_file_dma(struct file *file, char __user *user_buf, · 1 unmodified line | ||
| 424 | 416 | (AR_MACMISC_MISC_OBS_BUS_1 << |
| 425 | 417 | AR_MACMISC_MISC_OBS_BUS_MSB_S))); |
| 426 | 418 | |
| 427 | − len += scnprintf(buf + len, DMA_BUF_LEN - len, | |
| 428 | − "Raw DMA Debug values:\n"); | |
| 419 | + seq_puts(file, "Raw DMA Debug values:\n"); | |
| 429 | 420 | |
| 430 | 421 | for (i = 0; i < ATH9K_NUM_DMA_DEBUG_REGS; i++) { |
| 431 | 422 | if (i % 4 == 0) |
| 432 | − len += scnprintf(buf + len, DMA_BUF_LEN - len, "\n"); | |
| 423 | + seq_puts(file, "\n"); | |
| 433 | 424 | |
| 434 | 425 | val[i] = REG_READ_D(ah, AR_DMADBG_0 + (i * sizeof(u32))); |
| 435 | − len += scnprintf(buf + len, DMA_BUF_LEN - len, "%d: %08x ", | |
| 436 | − i, val[i]); | |
| 426 | + seq_printf(file, "%d: %08x ", i, val[i]); | |
| 437 | 427 | } |
| 438 | 428 | |
| 439 | − len += scnprintf(buf + len, DMA_BUF_LEN - len, "\n\n"); | |
| 440 | − len += scnprintf(buf + len, DMA_BUF_LEN - len, | |
| 441 | − "Num QCU: chain_st fsp_ok fsp_st DCU: chain_st\n"); | |
| 429 | + seq_puts(file, "\n\n"); | |
| 430 | + seq_puts(file, "Num QCU: chain_st fsp_ok fsp_st DCU: chain_st\n"); | |
| 442 | 431 | |
| 443 | 432 | for (i = 0; i < ATH9K_NUM_QUEUES; i++, qcuOffset += 4, dcuOffset += 5) { |
| 444 | 433 | if (i == 8) { |
| @@ -451,55 +440,47 @@ static ssize_t read_file_dma(struct file *file, char __user *user_buf, · 6 unmodified lines | ||
| 451 | 440 | dcuBase++; |
| 452 | 441 | } |
| 453 | 442 | |
| 454 | − len += scnprintf(buf + len, DMA_BUF_LEN - len, | |
| 455 | − "%2d %2x %1x %2x %2x\n", | |
| 456 | − i, (*qcuBase & (0x7 << qcuOffset)) >> qcuOffset, | |
| 457 | − (*qcuBase & (0x8 << qcuOffset)) >> (qcuOffset + 3), | |
| 458 | − (val[2] & (0x7 << (i * 3))) >> (i * 3), | |
| 459 | − (*dcuBase & (0x1f << dcuOffset)) >> dcuOffset); | |
| 443 | + seq_printf(file, "%2d %2x %1x %2x %2x\n", | |
| 444 | + i, (*qcuBase & (0x7 << qcuOffset)) >> qcuOffset, | |
| 445 | + (*qcuBase & (0x8 << qcuOffset)) >> (qcuOffset + 3), | |
| 446 | + (val[2] & (0x7 << (i * 3))) >> (i * 3), | |
| 447 | + (*dcuBase & (0x1f << dcuOffset)) >> dcuOffset); | |
| 460 | 448 | } |
| 461 | 449 | |
| 462 | − len += scnprintf(buf + len, DMA_BUF_LEN - len, "\n"); | |
| 463 | − | |
| 464 | − len += scnprintf(buf + len, DMA_BUF_LEN - len, | |
| 465 | − "qcu_stitch state: %2x qcu_fetch state: %2x\n", | |
| 466 | − (val[3] & 0x003c0000) >> 18, (val[3] & 0x03c00000) >> 22); | |
| 467 | − len += scnprintf(buf + len, DMA_BUF_LEN - len, | |
| 468 | − "qcu_complete state: %2x dcu_complete state: %2x\n", | |
| 469 | − (val[3] & 0x1c000000) >> 26, (val[6] & 0x3)); | |
| 470 | − len += scnprintf(buf + len, DMA_BUF_LEN - len, | |
| 471 | − "dcu_arb state: %2x dcu_fp state: %2x\n", | |
| 472 | − (val[5] & 0x06000000) >> 25, (val[5] & 0x38000000) >> 27); | |
| 473 | − len += scnprintf(buf + len, DMA_BUF_LEN - len, | |
| 474 | − "chan_idle_dur: %3d chan_idle_dur_valid: %1d\n", | |
| 475 | − (val[6] & 0x000003fc) >> 2, (val[6] & 0x00000400) >> 10); | |
| 476 | − len += scnprintf(buf + len, DMA_BUF_LEN - len, | |
| 477 | − "txfifo_valid_0: %1d txfifo_valid_1: %1d\n", | |
| 478 | − (val[6] & 0x00000800) >> 11, (val[6] & 0x00001000) >> 12); | |
| 479 | − len += scnprintf(buf + len, DMA_BUF_LEN - len, | |
| 480 | − "txfifo_dcu_num_0: %2d txfifo_dcu_num_1: %2d\n", | |
| 481 | − (val[6] & 0x0001e000) >> 13, (val[6] & 0x001e0000) >> 17); | |
| 482 | − | |
| 483 | − len += scnprintf(buf + len, DMA_BUF_LEN - len, "pcu observe: 0x%x\n", | |
| 484 | − REG_READ_D(ah, AR_OBS_BUS_1)); | |
| 485 | − len += scnprintf(buf + len, DMA_BUF_LEN - len, | |
| 486 | − "AR_CR: 0x%x\n", REG_READ_D(ah, AR_CR)); | |
| 450 | + seq_puts(file, "\n"); | |
| 451 | + | |
| 452 | + seq_printf(file, "qcu_stitch state: %2x qcu_fetch state: %2x\n", | |
| 453 | + (val[3] & 0x003c0000) >> 18, (val[3] & 0x03c00000) >> 22); | |
| 454 | + seq_printf(file, "qcu_complete state: %2x dcu_complete state: %2x\n", | |
| 455 | + (val[3] & 0x1c000000) >> 26, (val[6] & 0x3)); | |
| 456 | + seq_printf(file, "dcu_arb state: %2x dcu_fp state: %2x\n", | |
| 457 | + (val[5] & 0x06000000) >> 25, (val[5] & 0x38000000) >> 27); | |
| 458 | + seq_printf(file, "chan_idle_dur: %3d chan_idle_dur_valid: %1d\n", | |
| 459 | + (val[6] & 0x000003fc) >> 2, (val[6] & 0x00000400) >> 10); | |
| 460 | + seq_printf(file, "txfifo_valid_0: %1d txfifo_valid_1: %1d\n", | |
| 461 | + (val[6] & 0x00000800) >> 11, (val[6] & 0x00001000) >> 12); | |
| 462 | + seq_printf(file, "txfifo_dcu_num_0: %2d txfifo_dcu_num_1: %2d\n", | |
| 463 | + (val[6] & 0x0001e000) >> 13, (val[6] & 0x001e0000) >> 17); | |
| 464 | + | |
| 465 | + seq_printf(file, "pcu observe: 0x%x\n", REG_READ_D(ah, AR_OBS_BUS_1)); | |
| 466 | + seq_printf(file, "AR_CR: 0x%x\n", REG_READ_D(ah, AR_CR)); | |
| 487 | 467 | |
| 488 | 468 | ath9k_ps_restore(sc); |
| 489 | 469 | |
| 490 | − if (len > DMA_BUF_LEN) | |
| 491 | − len = DMA_BUF_LEN; | |
| 470 | + return 0; | |
| 471 | +} | |
| 492 | 472 | |
| 493 | − retval = simple_read_from_buffer(user_buf, count, ppos, buf, len); | |
| 494 | − kfree(buf); | |
| 495 | − return retval; | |
| 473 | +static int open_file_dma(struct inode *inode, struct file *f) | |
| 474 | +{ | |
| 475 | + return single_open(f, read_file_dma, inode->i_private); | |
| 496 | 476 | } |
| 497 | 477 | |
| 498 | 478 | static const struct file_operations fops_dma = { |
| 499 | − .read = read_file_dma, | |
| 500 | − .open = simple_open, | |
| 479 | + .open = open_file_dma, | |
| 480 | + .read = seq_read, | |
| 501 | 481 | .owner = THIS_MODULE, |
| 502 | − .llseek = default_llseek, | |
| 482 | + .llseek = seq_lseek, | |
| 483 | + .release = single_release, | |
| 503 | 484 | }; |
| 504 | 485 | |
| 505 | 486 | |
| @@ -556,22 +537,14 @@ void ath_debug_stat_interrupt(struct ath_softc *sc, enum ath9k_int status) · 50 unmodified lines | ||
| 556 | 537 | sc->debug.stats.istats.gen_timer++; |
| 557 | 538 | } |
| 558 | 539 | |
| 559 | −static ssize_t read_file_interrupt(struct file *file, char __user *user_buf, | |
| 560 | − size_t count, loff_t *ppos) | |
| 540 | +static int read_file_interrupt(struct seq_file *file, void *data) | |
| 561 | 541 | { |
| 562 | − struct ath_softc *sc = file->private_data; | |
| 563 | − unsigned int len = 0; | |
| 564 | − int rv; | |
| 565 | − int mxlen = 4000; | |
| 566 | − char *buf = kmalloc(mxlen, GFP_KERNEL); | |
| 567 | − if (!buf) | |
| 568 | − return -ENOMEM; | |
| 542 | + struct ath_softc *sc = file->private; | |
| 569 | 543 | |
| 570 | 544 | #define PR_IS(a, s) \ |
| 571 | 545 | do { \ |
| 572 | − len += scnprintf(buf + len, mxlen - len, \ | |
| 573 | − "%21s: %10u\n", a, \ | |
| 574 | − sc->debug.stats.istats.s); \ | |
| 546 | + seq_printf(file, "%21s: %10u\n", a, \ | |
| 547 | + sc->debug.stats.istats.s); \ | |
| 575 | 548 | } while (0) |
| 576 | 549 | |
| 577 | 550 | if (sc->sc_ah->caps.hw_caps & ATH9K_HW_CAP_EDMA) { |
| @@ -602,8 +575,7 @@ static ssize_t read_file_interrupt(struct file *file, char __user *user_buf, · 24 unmodified lines | ||
| 602 | 575 | PR_IS("GENTIMER", gen_timer); |
| 603 | 576 | PR_IS("TOTAL", total); |
| 604 | 577 | |
| 605 | − len += scnprintf(buf + len, mxlen - len, | |
| 606 | − "SYNC_CAUSE stats:\n"); | |
| 578 | + seq_puts(file, "SYNC_CAUSE stats:\n"); | |
| 607 | 579 | |
| 608 | 580 | PR_IS("Sync-All", sync_cause_all); |
| 609 | 581 | PR_IS("RTC-IRQ", sync_rtc_irq); |
| @@ -625,35 +597,27 @@ static ssize_t read_file_interrupt(struct file *file, char __user *user_buf, · 15 unmodified lines | ||
| 625 | 597 | PR_IS("MAC-Asleep", mac_asleep); |
| 626 | 598 | PR_IS("MAC-Sleep-Access", mac_sleep_access); |
| 627 | 599 | |
| 628 | − if (len > mxlen) | |
| 629 | − len = mxlen; | |
| 600 | + return 0; | |
| 601 | +} | |
| 630 | 602 | |
| 631 | − rv = simple_read_from_buffer(user_buf, count, ppos, buf, len); | |
| 632 | − kfree(buf); | |
| 633 | − return rv; | |
| 603 | +static int open_file_interrupt(struct inode *inode, struct file *f) | |
| 604 | +{ | |
| 605 | + return single_open(f, read_file_interrupt, inode->i_private); | |
| 634 | 606 | } |
| 635 | 607 | |
| 636 | 608 | static const struct file_operations fops_interrupt = { |
| 637 | − .read = read_file_interrupt, | |
| 638 | − .open = simple_open, | |
| 609 | + .read = seq_read, | |
| 610 | + .open = open_file_interrupt, | |
| 639 | 611 | .owner = THIS_MODULE, |
| 640 | − .llseek = default_llseek, | |
| 612 | + .llseek = seq_lseek, | |
| 613 | + .release = single_release, | |
| 641 | 614 | }; |
| 642 | 615 | |
| 643 | −static ssize_t read_file_xmit(struct file *file, char __user *user_buf, | |
| 644 | − size_t count, loff_t *ppos) | |
| 616 | +static int read_file_xmit(struct seq_file *file, void *data) | |
| 645 | 617 | { |
| 646 | − struct ath_softc *sc = file->private_data; | |
| 647 | − char *buf; | |
| 648 | − unsigned int len = 0, size = 2048; | |
| 649 | − ssize_t retval = 0; | |
| 650 | − | |
| 651 | − buf = kzalloc(size, GFP_KERNEL); | |
| 652 | − if (buf == NULL) | |
| 653 | − return -ENOMEM; | |
| 618 | + struct ath_softc *sc = file->private; | |
| 654 | 619 | |
| 655 | − len += sprintf(buf, "%30s %10s%10s%10s\n\n", | |
| 656 | − "BE", "BK", "VI", "VO"); | |
| 620 | + seq_printf(file, "%30s %10s%10s%10s\n\n", "BE", "BK", "VI", "VO"); | |
| 657 | 621 | |
| 658 | 622 | PR("MPDUs Queued: ", queued); |
| 659 | 623 | PR("MPDUs Completed: ", completed); |
| @@ -678,153 +642,115 @@ static ssize_t read_file_xmit(struct file *file, char __user *user_buf, · 18 unmodified lines | ||
| 678 | 642 | PR("HW-tx-proc-desc: ", txprocdesc); |
| 679 | 643 | PR("TX-Failed: ", txfailed); |
| 680 | 644 | |
| 681 | − if (len > size) | |
| 682 | − len = size; | |
| 683 | − | |
| 684 | − retval = simple_read_from_buffer(user_buf, count, ppos, buf, len); | |
| 685 | − kfree(buf); | |
| 686 | − | |
| 687 | − return retval; | |
| 645 | + return 0; | |
| 688 | 646 | } |
| 689 | 647 | |
| 690 | −static ssize_t print_queue(struct ath_softc *sc, struct ath_txq *txq, | |
| 691 | − char *buf, ssize_t size) | |
| 648 | +static void print_queue(struct ath_softc *sc, struct ath_txq *txq, | |
| 649 | + struct seq_file *file) | |
| 692 | 650 | { |
| 693 | − ssize_t len = 0; | |
| 694 | − | |
| 695 | 651 | ath_txq_lock(sc, txq); |
| 696 | 652 | |
| 697 | − len += scnprintf(buf + len, size - len, "%s: %d ", | |
| 698 | − "qnum", txq->axq_qnum); | |
| 699 | − len += scnprintf(buf + len, size - len, "%s: %2d ", | |
| 700 | − "qdepth", txq->axq_depth); | |
| 701 | − len += scnprintf(buf + len, size - len, "%s: %2d ", | |
| 702 | − "ampdu-depth", txq->axq_ampdu_depth); | |
| 703 | − len += scnprintf(buf + len, size - len, "%s: %3d ", | |
| 704 | − "pending", txq->pending_frames); | |
| 705 | − len += scnprintf(buf + len, size - len, "%s: %d\n", | |
| 706 | − "stopped", txq->stopped); | |
| 653 | + seq_printf(file, "%s: %d ", "qnum", txq->axq_qnum); | |
| 654 | + seq_printf(file, "%s: %2d ", "qdepth", txq->axq_depth); | |
| 655 | + seq_printf(file, "%s: %2d ", "ampdu-depth", txq->axq_ampdu_depth); | |
| 656 | + seq_printf(file, "%s: %3d ", "pending", txq->pending_frames); | |
| 657 | + seq_printf(file, "%s: %d\n", "stopped", txq->stopped); | |
| 707 | 658 | |
| 708 | 659 | ath_txq_unlock(sc, txq); |
| 709 | − return len; | |
| 710 | 660 | } |
| 711 | 661 | |
| 712 | −static ssize_t read_file_queues(struct file *file, char __user *user_buf, | |
| 713 | − size_t count, loff_t *ppos) | |
| 662 | +static int read_file_queues(struct seq_file *file, void *data) | |
| 714 | 663 | { |
| 715 | − struct ath_softc *sc = file->private_data; | |
| 664 | + struct ath_softc *sc = file->private; | |
| 716 | 665 | struct ath_txq *txq; |
| 717 | − char *buf; | |
| 718 | − unsigned int len = 0; | |
| 719 | − const unsigned int size = 1024; | |
| 720 | − ssize_t retval = 0; | |
| 721 | 666 | int i; |
| 722 | 667 | static const char *qname[4] = { |
| 723 | 668 | "VO", "VI", "BE", "BK" |
| 724 | 669 | }; |
| 725 | 670 | |
| 726 | − buf = kzalloc(size, GFP_KERNEL); | |
| 727 | − if (buf == NULL) | |
| 728 | − return -ENOMEM; | |
| 729 | − | |
| 730 | 671 | for (i = 0; i < IEEE80211_NUM_ACS; i++) { |
| 731 | 672 | txq = sc->tx.txq_map[i]; |
| 732 | − len += scnprintf(buf + len, size - len, "(%s): ", qname[i]); | |
| 733 | − len += print_queue(sc, txq, buf + len, size - len); | |
| 673 | + seq_printf(file, "(%s): ", qname[i]); | |
| 674 | + print_queue(sc, txq, file); | |
| 734 | 675 | } |
| 735 | 676 | |
| 736 | − len += scnprintf(buf + len, size - len, "(CAB): "); | |
| 737 | − len += print_queue(sc, sc->beacon.cabq, buf + len, size - len); | |
| 738 | − | |
| 739 | − if (len > size) | |
| 740 | − len = size; | |
| 741 | − | |
| 742 | − retval = simple_read_from_buffer(user_buf, count, ppos, buf, len); | |
| 743 | − kfree(buf); | |
| 677 | + seq_puts(file, "(CAB): "); | |
| 678 | + print_queue(sc, sc->beacon.cabq, file); | |
| 744 | 679 | |
| 745 | − return retval; | |
| 680 | + return 0; | |
| 746 | 681 | } |
| 747 | 682 | |
| 748 | −static ssize_t read_file_misc(struct file *file, char __user *user_buf, | |
| 749 | − size_t count, loff_t *ppos) | |
| 683 | +static int read_file_misc(struct seq_file *file, void *data) | |
| 750 | 684 | { |
| 751 | − struct ath_softc *sc = file->private_data; | |
| 685 | + struct ath_softc *sc = file->private; | |
| 752 | 686 | struct ath_common *common = ath9k_hw_common(sc->sc_ah); |
| 753 | 687 | struct ath9k_vif_iter_data iter_data; |
| 754 | 688 | struct ath_chanctx *ctx; |
| 755 | − char buf[512]; | |
| 756 | − unsigned int len = 0; | |
| 757 | − ssize_t retval = 0; | |
| 758 | 689 | unsigned int reg; |
| 759 | 690 | u32 rxfilter, i; |
| 760 | 691 | |
| 761 | − len += scnprintf(buf + len, sizeof(buf) - len, | |
| 762 | − "BSSID: %pM\n", common->curbssid); | |
| 763 | − len += scnprintf(buf + len, sizeof(buf) - len, | |
| 764 | − "BSSID-MASK: %pM\n", common->bssidmask); | |
| 765 | − len += scnprintf(buf + len, sizeof(buf) - len, | |
| 766 | − "OPMODE: %s\n", | |
| 767 | − ath_opmode_to_string(sc->sc_ah->opmode)); | |
| 692 | + seq_printf(file, "BSSID: %pM\n", common->curbssid); | |
| 693 | + seq_printf(file, "BSSID-MASK: %pM\n", common->bssidmask); | |
| 694 | + seq_printf(file, "OPMODE: %s\n", | |
| 695 | + ath_opmode_to_string(sc->sc_ah->opmode)); | |
| 768 | 696 | |
| 769 | 697 | ath9k_ps_wakeup(sc); |
| 770 | 698 | rxfilter = ath9k_hw_getrxfilter(sc->sc_ah); |
| 771 | 699 | ath9k_ps_restore(sc); |
| 772 | 700 | |
| 773 | − len += scnprintf(buf + len, sizeof(buf) - len, | |
| 774 | − "RXFILTER: 0x%x", rxfilter); | |
| 701 | + seq_printf(file, "RXFILTER: 0x%x", rxfilter); | |
| 775 | 702 | |
| 776 | 703 | if (rxfilter & ATH9K_RX_FILTER_UCAST) |
| 777 | − len += scnprintf(buf + len, sizeof(buf) - len, " UCAST"); | |
| 704 | + seq_puts(file, " UCAST"); | |
| 778 | 705 | if (rxfilter & ATH9K_RX_FILTER_MCAST) |
| 779 | − len += scnprintf(buf + len, sizeof(buf) - len, " MCAST"); | |
| 706 | + seq_puts(file, " MCAST"); | |
| 780 | 707 | if (rxfilter & ATH9K_RX_FILTER_BCAST) |
| 781 | − len += scnprintf(buf + len, sizeof(buf) - len, " BCAST"); | |
| 708 | + seq_puts(file, " BCAST"); | |
| 782 | 709 | if (rxfilter & ATH9K_RX_FILTER_CONTROL) |
| 783 | − len += scnprintf(buf + len, sizeof(buf) - len, " CONTROL"); | |
| 710 | + seq_puts(file, " CONTROL"); | |
| 784 | 711 | if (rxfilter & ATH9K_RX_FILTER_BEACON) |
| 785 | − len += scnprintf(buf + len, sizeof(buf) - len, " BEACON"); | |
| 712 | + seq_puts(file, " BEACON"); | |
| 786 | 713 | if (rxfilter & ATH9K_RX_FILTER_PROM) |
| 787 | − len += scnprintf(buf + len, sizeof(buf) - len, " PROM"); | |
| 714 | + seq_puts(file, " PROM"); | |
| 788 | 715 | if (rxfilter & ATH9K_RX_FILTER_PROBEREQ) |
| 789 | − len += scnprintf(buf + len, sizeof(buf) - len, " PROBEREQ"); | |
| 716 | + seq_puts(file, " PROBEREQ"); | |
| 790 | 717 | if (rxfilter & ATH9K_RX_FILTER_PHYERR) |
| 791 | − len += scnprintf(buf + len, sizeof(buf) - len, " PHYERR"); | |
| 718 | + seq_puts(file, " PHYERR"); | |
| 792 | 719 | if (rxfilter & ATH9K_RX_FILTER_MYBEACON) |
| 793 | − len += scnprintf(buf + len, sizeof(buf) - len, " MYBEACON"); | |
| 720 | + seq_puts(file, " MYBEACON"); | |
| 794 | 721 | if (rxfilter & ATH9K_RX_FILTER_COMP_BAR) |
| 795 | − len += scnprintf(buf + len, sizeof(buf) - len, " COMP_BAR"); | |
| 722 | + seq_puts(file, " COMP_BAR"); | |
| 796 | 723 | if (rxfilter & ATH9K_RX_FILTER_PSPOLL) |
| 797 | − len += scnprintf(buf + len, sizeof(buf) - len, " PSPOLL"); | |
| 724 | + seq_puts(file, " PSPOLL"); | |
| 798 | 725 | if (rxfilter & ATH9K_RX_FILTER_PHYRADAR) |
| 799 | − len += scnprintf(buf + len, sizeof(buf) - len, " PHYRADAR"); | |
| 726 | + seq_puts(file, " PHYRADAR"); | |
| 800 | 727 | if (rxfilter & ATH9K_RX_FILTER_MCAST_BCAST_ALL) |
| 801 | − len += scnprintf(buf + len, sizeof(buf) - len, " MCAST_BCAST_ALL"); | |
| 728 | + seq_puts(file, " MCAST_BCAST_ALL"); | |
| 802 | 729 | if (rxfilter & ATH9K_RX_FILTER_CONTROL_WRAPPER) |
| 803 | − len += scnprintf(buf + len, sizeof(buf) - len, " CONTROL_WRAPPER"); | |
| 730 | + seq_puts(file, " CONTROL_WRAPPER"); | |
| 804 | 731 | |
| 805 | − len += scnprintf(buf + len, sizeof(buf) - len, "\n"); | |
| 732 | + seq_puts(file, "\n"); | |
| 806 | 733 | |
| 807 | 734 | reg = sc->sc_ah->imask; |
| 808 | 735 | |
| 809 | − len += scnprintf(buf + len, sizeof(buf) - len, | |
| 810 | − "INTERRUPT-MASK: 0x%x", reg); | |
| 736 | + seq_printf(file, "INTERRUPT-MASK: 0x%x", reg); | |
| 811 | 737 | |
| 812 | 738 | if (reg & ATH9K_INT_SWBA) |
| 813 | − len += scnprintf(buf + len, sizeof(buf) - len, " SWBA"); | |
| 739 | + seq_puts(file, " SWBA"); | |
| 814 | 740 | if (reg & ATH9K_INT_BMISS) |
| 815 | − len += scnprintf(buf + len, sizeof(buf) - len, " BMISS"); | |
| 741 | + seq_puts(file, " BMISS"); | |
| 816 | 742 | if (reg & ATH9K_INT_CST) |
| 817 | − len += scnprintf(buf + len, sizeof(buf) - len, " CST"); | |
| 743 | + seq_puts(file, " CST"); | |
| 818 | 744 | if (reg & ATH9K_INT_RX) |
| 819 | − len += scnprintf(buf + len, sizeof(buf) - len, " RX"); | |
| 745 | + seq_puts(file, " RX"); | |
| 820 | 746 | if (reg & ATH9K_INT_RXHP) |
| 821 | − len += scnprintf(buf + len, sizeof(buf) - len, " RXHP"); | |
| 747 | + seq_puts(file, " RXHP"); | |
| 822 | 748 | if (reg & ATH9K_INT_RXLP) |
| 823 | − len += scnprintf(buf + len, sizeof(buf) - len, " RXLP"); | |
| 749 | + seq_puts(file, " RXLP"); | |
| 824 | 750 | if (reg & ATH9K_INT_BB_WATCHDOG) |
| 825 | − len += scnprintf(buf + len, sizeof(buf) - len, " BB_WATCHDOG"); | |
| 751 | + seq_puts(file, " BB_WATCHDOG"); | |
| 826 | 752 | |
| 827 | − len += scnprintf(buf + len, sizeof(buf) - len, "\n"); | |
| 753 | + seq_puts(file, "\n"); | |
| 828 | 754 | |
| 829 | 755 | i = 0; |
| 830 | 756 | ath_for_each_chanctx(sc, ctx) { |
| @@ -832,27 +758,22 @@ static ssize_t read_file_misc(struct file *file, char __user *user_buf, · 1 unmodified line | ||
| 832 | 758 | continue; |
| 833 | 759 | ath9k_calculate_iter_data(sc, ctx, &iter_data); |
| 834 | 760 | |
| 835 | − len += scnprintf(buf + len, sizeof(buf) - len, | |
| 836 | − "VIFS: CTX %i(%i) AP: %i STA: %i MESH: %i WDS: %i", | |
| 837 | − i++, (int)(ctx->assigned), iter_data.naps, | |
| 838 | − iter_data.nstations, | |
| 839 | − iter_data.nmeshes, iter_data.nwds); | |
| 840 | − len += scnprintf(buf + len, sizeof(buf) - len, | |
| 841 | − " ADHOC: %i TOTAL: %hi BEACON-VIF: %hi\n", | |
| 842 | − iter_data.nadhocs, sc->cur_chan->nvifs, sc->nbcnvifs); | |
| 761 | + seq_printf(file, | |
| 762 | + "VIFS: CTX %i(%i) AP: %i STA: %i MESH: %i WDS: %i", | |
| 763 | + i++, (int)(ctx->assigned), iter_data.naps, | |
| 764 | + iter_data.nstations, | |
| 765 | + iter_data.nmeshes, iter_data.nwds); | |
| 766 | + seq_printf(file, " ADHOC: %i TOTAL: %hi BEACON-VIF: %hi\n", | |
| 767 | + iter_data.nadhocs, sc->cur_chan->nvifs, | |
| 768 | + sc->nbcnvifs); | |
| 843 | 769 | } |
| 844 | 770 | |
| 845 | − if (len > sizeof(buf)) | |
| 846 | − len = sizeof(buf); | |
| 847 | − | |
| 848 | − retval = simple_read_from_buffer(user_buf, count, ppos, buf, len); | |
| 849 | − return retval; | |
| 771 | + return 0; | |
| 850 | 772 | } |
| 851 | 773 | |
| 852 | −static ssize_t read_file_reset(struct file *file, char __user *user_buf, | |
| 853 | − size_t count, loff_t *ppos) | |
| 774 | +static int read_file_reset(struct seq_file *file, void *data) | |
| 854 | 775 | { |
| 855 | − struct ath_softc *sc = file->private_data; | |
| 776 | + struct ath_softc *sc = file->private; | |
| 856 | 777 | static const char * const reset_cause[__RESET_TYPE_MAX] = { |
| 857 | 778 | [RESET_TYPE_BB_HANG] = "Baseband Hang", |
| 858 | 779 | [RESET_TYPE_BB_WATCHDOG] = "Baseband Watchdog", |
| @@ -866,23 +787,17 @@ static ssize_t read_file_reset(struct file *file, char __user *user_buf, · 7 unmodified lines | ||
| 866 | 787 | [RESET_TYPE_MCI] = "MCI Reset", |
| 867 | 788 | [RESET_TYPE_CALIBRATION] = "Calibration error", |
| 868 | 789 | }; |
| 869 | − char buf[512]; | |
| 870 | − unsigned int len = 0; | |
| 871 | 790 | int i; |
| 872 | 791 | |
| 873 | 792 | for (i = 0; i < ARRAY_SIZE(reset_cause); i++) { |
| 874 | 793 | if (!reset_cause[i]) |
| 875 | 794 | continue; |
| 876 | 795 | |
| 877 | − len += scnprintf(buf + len, sizeof(buf) - len, | |
| 878 | − "%17s: %2d\n", reset_cause[i], | |
| 879 | − sc->debug.stats.reset[i]); | |
| 796 | + seq_printf(file, "%17s: %2d\n", reset_cause[i], | |
| 797 | + sc->debug.stats.reset[i]); | |
| 880 | 798 | } |
| 881 | 799 | |
| 882 | − if (len > sizeof(buf)) | |
| 883 | − len = sizeof(buf); | |
| 884 | − | |
| 885 | − return simple_read_from_buffer(user_buf, count, ppos, buf, len); | |
| 800 | + return 0; | |
| 886 | 801 | } |
| 887 | 802 | |
| 888 | 803 | void ath_debug_stat_tx(struct ath_softc *sc, struct ath_buf *bf, |
| @@ -922,32 +837,56 @@ void ath_debug_stat_tx(struct ath_softc *sc, struct ath_buf *bf, · 33 unmodified lines | ||
| 922 | 837 | TX_STAT_INC(qnum, delim_underrun); |
| 923 | 838 | } |
| 924 | 839 | |
| 840 | +static int open_file_xmit(struct inode *inode, struct file *f) | |
| 841 | +{ | |
| 842 | + return single_open(f, read_file_xmit, inode->i_private); | |
| 843 | +} | |
| 844 | + | |
| 925 | 845 | static const struct file_operations fops_xmit = { |
| 926 | − .read = read_file_xmit, | |
| 927 | − .open = simple_open, | |
| 846 | + .read = seq_read, | |
| 847 | + .open = open_file_xmit, | |
| 928 | 848 | .owner = THIS_MODULE, |
| 929 | − .llseek = default_llseek, | |
| 849 | + .llseek = seq_lseek, | |
| 850 | + .release = single_release, | |
| 930 | 851 | }; |
| 931 | 852 | |
| 853 | +static int open_file_queues(struct inode *inode, struct file *f) | |
| 854 | +{ | |
| 855 | + return single_open(f, read_file_queues, inode->i_private); | |
| 856 | +} | |
| 857 | + | |
| 932 | 858 | static const struct file_operations fops_queues = { |
| 933 | − .read = read_file_queues, | |
| 934 | − .open = simple_open, | |
| 859 | + .read = seq_read, | |
| 860 | + .open = open_file_queues, | |
| 935 | 861 | .owner = THIS_MODULE, |
| 936 | − .llseek = default_llseek, | |
| 862 | + .llseek = seq_lseek, | |
| 863 | + .release = single_release, | |
| 937 | 864 | }; |
| 938 | 865 | |
| 866 | +static int open_file_misc(struct inode *inode, struct file *f) | |
| 867 | +{ | |
| 868 | + return single_open(f, read_file_misc, inode->i_private); | |
| 869 | +} | |
| 870 | + | |
| 939 | 871 | static const struct file_operations fops_misc = { |
| 940 | − .read = read_file_misc, | |
| 941 | − .open = simple_open, | |
| 872 | + .read = seq_read, | |
| 873 | + .open = open_file_misc, | |
| 942 | 874 | .owner = THIS_MODULE, |
| 943 | − .llseek = default_llseek, | |
| 875 | + .llseek = seq_lseek, | |
| 876 | + .release = single_release, | |
| 944 | 877 | }; |
| 945 | 878 | |
| 879 | +static int open_file_reset(struct inode *inode, struct file *f) | |
| 880 | +{ | |
| 881 | + return single_open(f, read_file_reset, inode->i_private); | |
| 882 | +} | |
| 883 | + | |
| 946 | 884 | static const struct file_operations fops_reset = { |
| 947 | − .read = read_file_reset, | |
| 948 | − .open = simple_open, | |
| 885 | + .read = seq_read, | |
| 886 | + .open = open_file_reset, | |
| 949 | 887 | .owner = THIS_MODULE, |
| 950 | − .llseek = default_llseek, | |
| 888 | + .llseek = seq_lseek, | |
| 889 | + .release = single_release, | |
| 951 | 890 | }; |
| 952 | 891 | |
| 953 | 892 | void ath_debug_stat_rx(struct ath_softc *sc, struct ath_rx_status *rs) |
| @@ -956,7 +895,7 @@ void ath_debug_stat_rx(struct ath_softc *sc, struct ath_rx_status *rs) · 2 unmodified lines | ||
| 956 | 895 | } |
| 957 | 896 | |
| 958 | 897 | static ssize_t read_file_regidx(struct file *file, char __user *user_buf, |
| 959 | − size_t count, loff_t *ppos) | |
| 898 | + size_t count, loff_t *ppos) | |
| 960 | 899 | { |
| 961 | 900 | struct ath_softc *sc = file->private_data; |
| 962 | 901 | char buf[32]; |
| @@ -967,7 +906,7 @@ static ssize_t read_file_regidx(struct file *file, char __user *user_buf, · 4 unmodified lines | ||
| 967 | 906 | } |
| 968 | 907 | |
| 969 | 908 | static ssize_t write_file_regidx(struct file *file, const char __user *user_buf, |
| 970 | − size_t count, loff_t *ppos) | |
| 909 | + size_t count, loff_t *ppos) | |
| 971 | 910 | { |
| 972 | 911 | struct ath_softc *sc = file->private_data; |
| 973 | 912 | unsigned long regidx; |
| @@ -995,7 +934,7 @@ static const struct file_operations fops_regidx = { · 21 unmodified lines | ||
| 995 | 934 | }; |
| 996 | 935 | |
| 997 | 936 | static ssize_t read_file_regval(struct file *file, char __user *user_buf, |
| 998 | − size_t count, loff_t *ppos) | |
| 937 | + size_t count, loff_t *ppos) | |
| 999 | 938 | { |
| 1000 | 939 | struct ath_softc *sc = file->private_data; |
| 1001 | 940 | struct ath_hw *ah = sc->sc_ah; |
| @@ -1011,7 +950,7 @@ static ssize_t read_file_regval(struct file *file, char __user *user_buf, · 9 unmodified lines | ||
| 1011 | 950 | } |
| 1012 | 951 | |
| 1013 | 952 | static ssize_t write_file_regval(struct file *file, const char __user *user_buf, |
| 1014 | − size_t count, loff_t *ppos) | |
| 953 | + size_t count, loff_t *ppos) | |
| 1015 | 954 | { |
| 1016 | 955 | struct ath_softc *sc = file->private_data; |
| 1017 | 956 | struct ath_hw *ah = sc->sc_ah; |
| @@ -1077,57 +1016,45 @@ static const struct file_operations fops_regdump = { · 59 unmodified lines | ||
| 1077 | 1016 | .llseek = default_llseek,/* read accesses f_pos */ |
| 1078 | 1017 | }; |
| 1079 | 1018 | |
| 1080 | −static ssize_t read_file_dump_nfcal(struct file *file, char __user *user_buf, | |
| 1081 | − size_t count, loff_t *ppos) | |
| 1019 | +static int read_file_dump_nfcal(struct seq_file *file, void *data) | |
| 1082 | 1020 | { |
| 1083 | − struct ath_softc *sc = file->private_data; | |
| 1021 | + struct ath_softc *sc = file->private; | |
| 1084 | 1022 | struct ath_hw *ah = sc->sc_ah; |
| 1085 | 1023 | struct ath9k_nfcal_hist *h = sc->cur_chan->caldata.nfCalHist; |
| 1086 | 1024 | struct ath_common *common = ath9k_hw_common(ah); |
| 1087 | 1025 | struct ieee80211_conf *conf = &common->hw->conf; |
| 1088 | − u32 len = 0, size = 1500; | |
| 1089 | 1026 | u32 i, j; |
| 1090 | − ssize_t retval = 0; | |
| 1091 | − char *buf; | |
| 1092 | 1027 | u8 chainmask = (ah->rxchainmask << 3) | ah->rxchainmask; |
| 1093 | 1028 | u8 nread; |
| 1094 | 1029 | |
| 1095 | − buf = kzalloc(size, GFP_KERNEL); | |
| 1096 | − if (!buf) | |
| 1097 | − return -ENOMEM; | |
| 1098 | − | |
| 1099 | − len += scnprintf(buf + len, size - len, | |
| 1100 | − "Channel Noise Floor : %d\n", ah->noise); | |
| 1101 | − len += scnprintf(buf + len, size - len, | |
| 1102 | − "Chain | privNF | # Readings | NF Readings\n"); | |
| 1030 | + seq_printf(file, "Channel Noise Floor : %d\n", ah->noise); | |
| 1031 | + seq_puts(file, "Chain | privNF | # Readings | NF Readings\n"); | |
| 1103 | 1032 | for (i = 0; i < NUM_NF_READINGS; i++) { |
| 1104 | 1033 | if (!(chainmask & (1 << i)) || |
| 1105 | 1034 | ((i >= AR5416_MAX_CHAINS) && !conf_is_ht40(conf))) |
| 1106 | 1035 | continue; |
| 1107 | 1036 | |
| 1108 | 1037 | nread = AR_PHY_CCA_FILTERWINDOW_LENGTH - h[i].invalidNFcount; |
| 1109 | − len += scnprintf(buf + len, size - len, " %d\t %d\t %d\t\t", | |
| 1110 | − i, h[i].privNF, nread); | |
| 1038 | + seq_printf(file, " %d\t %d\t %d\t\t", i, h[i].privNF, nread); | |
| 1111 | 1039 | for (j = 0; j < nread; j++) |
| 1112 | − len += scnprintf(buf + len, size - len, | |
| 1113 | − " %d", h[i].nfCalBuffer[j]); | |
| 1114 | − len += scnprintf(buf + len, size - len, "\n"); | |
| 1040 | + seq_printf(file, " %d", h[i].nfCalBuffer[j]); | |
| 1041 | + seq_puts(file, "\n"); | |
| 1115 | 1042 | } |
| 1116 | 1043 | |
| 1117 | − if (len > size) | |
| 1118 | − len = size; | |
| 1119 | − | |
| 1120 | − retval = simple_read_from_buffer(user_buf, count, ppos, buf, len); | |
| 1121 | − kfree(buf); | |
| 1044 | + return 0; | |
| 1045 | +} | |
| 1122 | 1046 | |
| 1123 | − return retval; | |
| 1047 | +static int open_file_dump_nfcal(struct inode *inode, struct file *f) | |
| 1048 | +{ | |
| 1049 | + return single_open(f, read_file_dump_nfcal, inode->i_private); | |
| 1124 | 1050 | } |
| 1125 | 1051 | |
| 1126 | 1052 | static const struct file_operations fops_dump_nfcal = { |
| 1127 | − .read = read_file_dump_nfcal, | |
| 1128 | − .open = simple_open, | |
| 1053 | + .read = seq_read, | |
| 1054 | + .open = open_file_dump_nfcal, | |
| 1129 | 1055 | .owner = THIS_MODULE, |
| 1130 | − .llseek = default_llseek, | |
| 1056 | + .llseek = seq_lseek, | |
| 1057 | + .release = single_release, | |
| 1131 | 1058 | }; |
| 1132 | 1059 | |
| 1133 | 1060 | #ifdef CONFIG_ATH9K_BTCOEX_SUPPORT |
| @@ -196,12 +196,11 @@ struct ath_tx_stats { · 195 unmodified lines | ||
| 196 | 196 | #define TXSTATS sc->debug.stats.txstats |
| 197 | 197 | #define PR(str, elem) \ |
| 198 | 198 | do { \ |
| 199 | − len += scnprintf(buf + len, size - len, \ | |
| 200 | − "%s%13u%11u%10u%10u\n", str, \ | |
| 201 | − TXSTATS[PR_QNUM(IEEE80211_AC_BE)].elem,\ | |
| 202 | − TXSTATS[PR_QNUM(IEEE80211_AC_BK)].elem,\ | |
| 203 | − TXSTATS[PR_QNUM(IEEE80211_AC_VI)].elem,\ | |
| 204 | − TXSTATS[PR_QNUM(IEEE80211_AC_VO)].elem); \ | |
| 199 | + seq_printf(file, "%s%13u%11u%10u%10u\n", str, \ | |
| 200 | + TXSTATS[PR_QNUM(IEEE80211_AC_BE)].elem,\ | |
| 201 | + TXSTATS[PR_QNUM(IEEE80211_AC_BK)].elem,\ | |
| 202 | + TXSTATS[PR_QNUM(IEEE80211_AC_VI)].elem,\ | |
| 203 | + TXSTATS[PR_QNUM(IEEE80211_AC_VO)].elem); \ | |
| 205 | 204 | } while(0) |
| 206 | 205 | |
| 207 | 206 | struct ath_rx_rate_stats { |
| @@ -1078,7 +1078,6 @@ static struct platform_driver wcn36xx_driver = { · 1077 unmodified lines | ||
| 1078 | 1078 | .remove = wcn36xx_remove, |
| 1079 | 1079 | .driver = { |
| 1080 | 1080 | .name = "wcn36xx", |
| 1081 | − .owner = THIS_MODULE, | |
| 1082 | 1081 | }, |
| 1083 | 1082 | .id_table = wcn36xx_platform_id_table, |
| 1084 | 1083 | }; |
| @@ -1221,7 +1221,6 @@ static struct platform_driver brcmf_sdio_pd = { · 1220 unmodified lines | ||
| 1221 | 1221 | .remove = brcmf_sdio_pd_remove, |
| 1222 | 1222 | .driver = { |
| 1223 | 1223 | .name = BRCMFMAC_SDIO_PDATA_NAME, |
| 1224 | − .owner = THIS_MODULE, | |
| 1225 | 1224 | } |
| 1226 | 1225 | }; |
| 1227 | 1226 | |
| @@ -395,7 +395,6 @@ static int hwsim_radio_idx; · 394 unmodified lines | ||
| 395 | 395 | static struct platform_driver mac80211_hwsim_driver = { |
| 396 | 396 | .driver = { |
| 397 | 397 | .name = "mac80211_hwsim", |
| 398 | − .owner = THIS_MODULE, | |
| 399 | 398 | }, |
| 400 | 399 | }; |
| 401 | 400 | |
| @@ -244,7 +244,6 @@ static int rt2800soc_probe(struct platform_device *pdev) · 243 unmodified lines | ||
| 244 | 244 | static struct platform_driver rt2800soc_driver = { |
| 245 | 245 | .driver = { |
| 246 | 246 | .name = "rt2800_wmac", |
| 247 | − .owner = THIS_MODULE, | |
| 248 | 247 | .mod_name = KBUILD_MODNAME, |
| 249 | 248 | }, |
| 250 | 249 | .probe = rt2800soc_probe, |
| @@ -1900,7 +1900,6 @@ static struct platform_driver wl12xx_driver = { · 1899 unmodified lines | ||
| 1900 | 1900 | .id_table = wl12xx_id_table, |
| 1901 | 1901 | .driver = { |
| 1902 | 1902 | .name = "wl12xx_driver", |
| 1903 | − .owner = THIS_MODULE, | |
| 1904 | 1903 | } |
| 1905 | 1904 | }; |
| 1906 | 1905 | |
| @@ -1968,7 +1968,6 @@ static struct platform_driver wl18xx_driver = { · 1967 unmodified lines | ||
| 1968 | 1968 | .id_table = wl18xx_id_table, |
| 1969 | 1969 | .driver = { |
| 1970 | 1970 | .name = "wl18xx_driver", |
| 1971 | − .owner = THIS_MODULE, | |
| 1972 | 1971 | } |
| 1973 | 1972 | }; |
| 1974 | 1973 | |
| @@ -566,7 +566,6 @@ static struct platform_driver nfcwilink_driver = { · 565 unmodified lines | ||
| 566 | 566 | .remove = nfcwilink_remove, |
| 567 | 567 | .driver = { |
| 568 | 568 | .name = "nfcwilink", |
| 569 | − .owner = THIS_MODULE, | |
| 570 | 569 | }, |
| 571 | 570 | }; |
| 572 | 571 | |
| @@ -239,7 +239,6 @@ static struct platform_driver amiga_parallel_driver = { · 238 unmodified lines | ||
| 239 | 239 | .remove = __exit_p(amiga_parallel_remove), |
| 240 | 240 | .driver = { |
| 241 | 241 | .name = "amiga-parallel", |
| 242 | − .owner = THIS_MODULE, | |
| 243 | 242 | }, |
| 244 | 243 | }; |
| 245 | 244 | |
| @@ -412,7 +412,6 @@ MODULE_ALIAS("platform:ax88796-pp"); · 411 unmodified lines | ||
| 412 | 412 | static struct platform_driver axdrv = { |
| 413 | 413 | .driver = { |
| 414 | 414 | .name = "ax88796-pp", |
| 415 | − .owner = THIS_MODULE, | |
| 416 | 415 | }, |
| 417 | 416 | .probe = parport_ax88796_probe, |
| 418 | 417 | .remove = parport_ax88796_remove, |
| @@ -3011,7 +3011,6 @@ static int parport_pc_platform_probe(struct platform_device *pdev) · 3010 unmodified lines | ||
| 3011 | 3011 | |
| 3012 | 3012 | static struct platform_driver parport_pc_platform_driver = { |
| 3013 | 3013 | .driver = { |
| 3014 | − .owner = THIS_MODULE, | |
| 3015 | 3014 | .name = "parport_pc", |
| 3016 | 3015 | }, |
| 3017 | 3016 | .probe = parport_pc_platform_probe, |
| @@ -362,7 +362,6 @@ MODULE_DEVICE_TABLE(of, bpp_match); · 361 unmodified lines | ||
| 362 | 362 | static struct platform_driver bpp_sbus_driver = { |
| 363 | 363 | .driver = { |
| 364 | 364 | .name = "bpp", |
| 365 | − .owner = THIS_MODULE, | |
| 366 | 365 | .of_match_table = bpp_match, |
| 367 | 366 | }, |
| 368 | 367 | .probe = bpp_probe, |
| @@ -446,7 +446,6 @@ static struct platform_driver dra7xx_pcie_driver = { · 445 unmodified lines | ||
| 446 | 446 | .remove = __exit_p(dra7xx_pcie_remove), |
| 447 | 447 | .driver = { |
| 448 | 448 | .name = "dra7-pcie", |
| 449 | − .owner = THIS_MODULE, | |
| 450 | 449 | .of_match_table = of_dra7xx_pcie_match, |
| 451 | 450 | }, |
| 452 | 451 | }; |
| @@ -641,7 +641,6 @@ static struct platform_driver exynos_pcie_driver = { · 640 unmodified lines | ||
| 641 | 641 | .remove = __exit_p(exynos_pcie_remove), |
| 642 | 642 | .driver = { |
| 643 | 643 | .name = "exynos-pcie", |
| 644 | − .owner = THIS_MODULE, | |
| 645 | 644 | .of_match_table = exynos_pcie_of_match, |
| 646 | 645 | }, |
| 647 | 646 | }; |
| @@ -310,7 +310,6 @@ static int gen_pci_probe(struct platform_device *pdev) · 309 unmodified lines | ||
| 310 | 310 | static struct platform_driver gen_pci_driver = { |
| 311 | 311 | .driver = { |
| 312 | 312 | .name = "pci-host-generic", |
| 313 | − .owner = THIS_MODULE, | |
| 314 | 313 | .of_match_table = gen_pci_of_match, |
| 315 | 314 | }, |
| 316 | 315 | .probe = gen_pci_probe, |
| @@ -643,7 +643,6 @@ MODULE_DEVICE_TABLE(of, imx6_pcie_of_match); · 642 unmodified lines | ||
| 643 | 643 | static struct platform_driver imx6_pcie_driver = { |
| 644 | 644 | .driver = { |
| 645 | 645 | .name = "imx6q-pcie", |
| 646 | − .owner = THIS_MODULE, | |
| 647 | 646 | .of_match_table = imx6_pcie_of_match, |
| 648 | 647 | }, |
| 649 | 648 | .shutdown = imx6_pcie_shutdown, |
| @@ -402,7 +402,6 @@ static struct platform_driver ks_pcie_driver __refdata = { · 401 unmodified lines | ||
| 402 | 402 | .remove = __exit_p(ks_pcie_remove), |
| 403 | 403 | .driver = { |
| 404 | 404 | .name = "keystone-pcie", |
| 405 | − .owner = THIS_MODULE, | |
| 406 | 405 | .of_match_table = of_match_ptr(ks_pcie_of_match), |
| 407 | 406 | }, |
| 408 | 407 | }; |
| @@ -1081,7 +1081,6 @@ MODULE_DEVICE_TABLE(of, mvebu_pcie_of_match_table); · 1080 unmodified lines | ||
| 1081 | 1081 | |
| 1082 | 1082 | static struct platform_driver mvebu_pcie_driver = { |
| 1083 | 1083 | .driver = { |
| 1084 | − .owner = THIS_MODULE, | |
| 1085 | 1084 | .name = "mvebu-pcie", |
| 1086 | 1085 | .of_match_table = mvebu_pcie_of_match_table, |
| 1087 | 1086 | /* driver unloading/unbinding currently not supported */ |
| @@ -412,7 +412,6 @@ MODULE_DEVICE_TABLE(of, rcar_pci_of_match); · 411 unmodified lines | ||
| 412 | 412 | static struct platform_driver rcar_pci_driver = { |
| 413 | 413 | .driver = { |
| 414 | 414 | .name = "pci-rcar-gen2", |
| 415 | − .owner = THIS_MODULE, | |
| 416 | 415 | .suppress_bind_attrs = true, |
| 417 | 416 | .of_match_table = rcar_pci_of_match, |
| 418 | 417 | }, |
| @@ -2129,7 +2129,6 @@ put_resources: · 2128 unmodified lines | ||
| 2129 | 2129 | static struct platform_driver tegra_pcie_driver = { |
| 2130 | 2130 | .driver = { |
| 2131 | 2131 | .name = "tegra-pcie", |
| 2132 | − .owner = THIS_MODULE, | |
| 2133 | 2132 | .of_match_table = tegra_pcie_of_match, |
| 2134 | 2133 | .suppress_bind_attrs = true, |
| 2135 | 2134 | }, |
| @@ -652,7 +652,6 @@ static const struct of_device_id xgene_pcie_match_table[] = { · 651 unmodified lines | ||
| 652 | 652 | static struct platform_driver xgene_pcie_driver = { |
| 653 | 653 | .driver = { |
| 654 | 654 | .name = "xgene-pcie", |
| 655 | − .owner = THIS_MODULE, | |
| 656 | 655 | .of_match_table = of_match_ptr(xgene_pcie_match_table), |
| 657 | 656 | }, |
| 658 | 657 | .probe = xgene_pcie_probe_bridge, |
| @@ -981,7 +981,6 @@ static int rcar_pcie_probe(struct platform_device *pdev) · 980 unmodified lines | ||
| 981 | 981 | static struct platform_driver rcar_pcie_driver = { |
| 982 | 982 | .driver = { |
| 983 | 983 | .name = DRV_NAME, |
| 984 | − .owner = THIS_MODULE, | |
| 985 | 984 | .of_match_table = rcar_pcie_of_match, |
| 986 | 985 | .suppress_bind_attrs = true, |
| 987 | 986 | }, |
| @@ -374,7 +374,6 @@ static struct platform_driver spear13xx_pcie_driver __initdata = { · 373 unmodified lines | ||
| 374 | 374 | .probe = spear13xx_pcie_probe, |
| 375 | 375 | .driver = { |
| 376 | 376 | .name = "spear-pcie", |
| 377 | − .owner = THIS_MODULE, | |
| 378 | 377 | .of_match_table = of_match_ptr(spear13xx_pcie_of_match), |
| 379 | 378 | }, |
| 380 | 379 | }; |
| @@ -947,7 +947,6 @@ static struct of_device_id xilinx_pcie_of_match[] = { · 946 unmodified lines | ||
| 947 | 947 | static struct platform_driver xilinx_pcie_driver = { |
| 948 | 948 | .driver = { |
| 949 | 949 | .name = "xilinx-pcie", |
| 950 | − .owner = THIS_MODULE, | |
| 951 | 950 | .of_match_table = xilinx_pcie_of_match, |
| 952 | 951 | .suppress_bind_attrs = true, |
| 953 | 952 | }, |
| @@ -77,11 +77,10 @@ static ssize_t broken_parity_status_store(struct device *dev, · 76 unmodified lines | ||
| 77 | 77 | } |
| 78 | 78 | static DEVICE_ATTR_RW(broken_parity_status); |
| 79 | 79 | |
| 80 | −static ssize_t pci_dev_show_local_cpu(struct device *dev, int type, | |
| 80 | +static ssize_t pci_dev_show_local_cpu(struct device *dev, bool list, | |
| 81 | 81 | struct device_attribute *attr, char *buf) |
| 82 | 82 | { |
| 83 | 83 | const struct cpumask *mask; |
| 84 | − int len; | |
| 85 | 84 | |
| 86 | 85 | #ifdef CONFIG_NUMA |
| 87 | 86 | mask = (dev_to_node(dev) == -1) ? cpu_online_mask : |
| @@ -89,59 +88,41 @@ static ssize_t pci_dev_show_local_cpu(struct device *dev, int type, · 1 unmodified line | ||
| 89 | 88 | #else |
| 90 | 89 | mask = cpumask_of_pcibus(to_pci_dev(dev)->bus); |
| 91 | 90 | #endif |
| 92 | − len = type ? | |
| 93 | − cpumask_scnprintf(buf, PAGE_SIZE-2, mask) : | |
| 94 | − cpulist_scnprintf(buf, PAGE_SIZE-2, mask); | |
| 95 | − | |
| 96 | − buf[len++] = '\n'; | |
| 97 | − buf[len] = '\0'; | |
| 98 | − return len; | |
| 91 | + return cpumap_print_to_pagebuf(list, buf, mask); | |
| 99 | 92 | } |
| 100 | 93 | |
| 101 | 94 | static ssize_t local_cpus_show(struct device *dev, |
| 102 | 95 | struct device_attribute *attr, char *buf) |
| 103 | 96 | { |
| 104 | − return pci_dev_show_local_cpu(dev, 1, attr, buf); | |
| 97 | + return pci_dev_show_local_cpu(dev, false, attr, buf); | |
| 105 | 98 | } |
| 106 | 99 | static DEVICE_ATTR_RO(local_cpus); |
| 107 | 100 | |
| 108 | 101 | static ssize_t local_cpulist_show(struct device *dev, |
| 109 | 102 | struct device_attribute *attr, char *buf) |
| 110 | 103 | { |
| 111 | − return pci_dev_show_local_cpu(dev, 0, attr, buf); | |
| 104 | + return pci_dev_show_local_cpu(dev, true, attr, buf); | |
| 112 | 105 | } |
| 113 | 106 | static DEVICE_ATTR_RO(local_cpulist); |
| 114 | 107 | |
| 115 | 108 | /* |
| 116 | 109 | * PCI Bus Class Devices |
| 117 | 110 | */ |
| 118 | −static ssize_t pci_bus_show_cpuaffinity(struct device *dev, int type, | |
| 119 | − struct device_attribute *attr, | |
| 120 | − char *buf) | |
| 121 | −{ | |
| 122 | − int ret; | |
| 123 | − const struct cpumask *cpumask; | |
| 124 | − | |
| 125 | − cpumask = cpumask_of_pcibus(to_pci_bus(dev)); | |
| 126 | − ret = type ? | |
| 127 | − cpulist_scnprintf(buf, PAGE_SIZE-2, cpumask) : | |
| 128 | − cpumask_scnprintf(buf, PAGE_SIZE-2, cpumask); | |
| 129 | − buf[ret++] = '\n'; | |
| 130 | − buf[ret] = '\0'; | |
| 131 | − return ret; | |
| 132 | −} | |
| 133 | − | |
| 134 | 111 | static ssize_t cpuaffinity_show(struct device *dev, |
| 135 | 112 | struct device_attribute *attr, char *buf) |
| 136 | 113 | { |
| 137 | − return pci_bus_show_cpuaffinity(dev, 0, attr, buf); | |
| 114 | + const struct cpumask *cpumask = cpumask_of_pcibus(to_pci_bus(dev)); | |
| 115 | + | |
| 116 | + return cpumap_print_to_pagebuf(false, buf, cpumask); | |
| 138 | 117 | } |
| 139 | 118 | static DEVICE_ATTR_RO(cpuaffinity); |
| 140 | 119 | |
| 141 | 120 | static ssize_t cpulistaffinity_show(struct device *dev, |
| 142 | 121 | struct device_attribute *attr, char *buf) |
| 143 | 122 | { |
| 144 | − return pci_bus_show_cpuaffinity(dev, 1, attr, buf); | |
| 123 | + const struct cpumask *cpumask = cpumask_of_pcibus(to_pci_bus(dev)); | |
| 124 | + | |
| 125 | + return cpumap_print_to_pagebuf(true, buf, cpumask); | |
| 145 | 126 | } |
| 146 | 127 | static DEVICE_ATTR_RO(cpulistaffinity); |
| 147 | 128 | |
| @@ -401,7 +401,6 @@ static int at91_cf_resume(struct platform_device *pdev) · 400 unmodified lines | ||
| 401 | 401 | static struct platform_driver at91_cf_driver = { |
| 402 | 402 | .driver = { |
| 403 | 403 | .name = "at91_cf", |
| 404 | − .owner = THIS_MODULE, | |
| 405 | 404 | .of_match_table = of_match_ptr(at91_cf_dt_ids), |
| 406 | 405 | }, |
| 407 | 406 | .probe = at91_cf_probe, |
| @@ -304,7 +304,6 @@ static int bfin_cf_remove(struct platform_device *pdev) · 303 unmodified lines | ||
| 304 | 304 | static struct platform_driver bfin_cf_driver = { |
| 305 | 305 | .driver = { |
| 306 | 306 | .name = driver_name, |
| 307 | − .owner = THIS_MODULE, | |
| 308 | 307 | }, |
| 309 | 308 | .probe = bfin_cf_probe, |
| 310 | 309 | .remove = bfin_cf_remove, |
| @@ -574,7 +574,6 @@ static int db1x_pcmcia_socket_remove(struct platform_device *pdev) · 573 unmodified lines | ||
| 574 | 574 | static struct platform_driver db1x_pcmcia_socket_driver = { |
| 575 | 575 | .driver = { |
| 576 | 576 | .name = "db1xxx_pcmcia", |
| 577 | − .owner = THIS_MODULE, | |
| 578 | 577 | }, |
| 579 | 578 | .probe = db1x_pcmcia_socket_probe, |
| 580 | 579 | .remove = db1x_pcmcia_socket_remove, |
| @@ -360,7 +360,6 @@ MODULE_DEVICE_TABLE(of, electra_cf_match); · 359 unmodified lines | ||
| 360 | 360 | static struct platform_driver electra_cf_driver = { |
| 361 | 361 | .driver = { |
| 362 | 362 | .name = driver_name, |
| 363 | − .owner = THIS_MODULE, | |
| 364 | 363 | .of_match_table = electra_cf_match, |
| 365 | 364 | }, |
| 366 | 365 | .probe = electra_cf_probe, |
| @@ -1233,7 +1233,6 @@ static struct pccard_operations pcic_operations = { · 1232 unmodified lines | ||
| 1233 | 1233 | static struct platform_driver i82365_driver = { |
| 1234 | 1234 | .driver = { |
| 1235 | 1235 | .name = "i82365", |
| 1236 | − .owner = THIS_MODULE, | |
| 1237 | 1236 | }, |
| 1238 | 1237 | }; |
| 1239 | 1238 | |
| @@ -687,7 +687,6 @@ static struct pccard_operations pcc_operations = { · 686 unmodified lines | ||
| 687 | 687 | static struct platform_driver pcc_driver = { |
| 688 | 688 | .driver = { |
| 689 | 689 | .name = "cfc", |
| 690 | − .owner = THIS_MODULE, | |
| 691 | 690 | }, |
| 692 | 691 | }; |
| 693 | 692 | |
| @@ -664,7 +664,6 @@ static struct pccard_operations pcc_operations = { · 663 unmodified lines | ||
| 664 | 664 | static struct platform_driver pcc_driver = { |
| 665 | 665 | .driver = { |
| 666 | 666 | .name = "pcc", |
| 667 | − .owner = THIS_MODULE, | |
| 668 | 667 | }, |
| 669 | 668 | }; |
| 670 | 669 | |
| @@ -334,7 +334,6 @@ static int __exit omap_cf_remove(struct platform_device *pdev) · 333 unmodified lines | ||
| 334 | 334 | static struct platform_driver omap_cf_driver = { |
| 335 | 335 | .driver = { |
| 336 | 336 | .name = (char *) driver_name, |
| 337 | − .owner = THIS_MODULE, | |
| 338 | 337 | }, |
| 339 | 338 | .remove = __exit_p(omap_cf_remove), |
| 340 | 339 | }; |
| @@ -368,7 +368,6 @@ static struct platform_driver pxa2xx_pcmcia_driver = { · 367 unmodified lines | ||
| 368 | 368 | .remove = pxa2xx_drv_pcmcia_remove, |
| 369 | 369 | .driver = { |
| 370 | 370 | .name = "pxa2xx-pcmcia", |
| 371 | − .owner = THIS_MODULE, | |
| 372 | 371 | .pm = &pxa2xx_drv_pcmcia_pm_ops, |
| 373 | 372 | }, |
| 374 | 373 | }; |
| @@ -172,7 +172,6 @@ static struct platform_driver viper_pcmcia_driver = { · 171 unmodified lines | ||
| 172 | 172 | .remove = viper_pcmcia_remove, |
| 173 | 173 | .driver = { |
| 174 | 174 | .name = "arcom-pcmcia", |
| 175 | − .owner = THIS_MODULE, | |
| 176 | 175 | }, |
| 177 | 176 | .id_table = viper_pcmcia_id_table, |
| 178 | 177 | }; |
| @@ -101,7 +101,6 @@ static int sa11x0_drv_pcmcia_remove(struct platform_device *dev) · 100 unmodified lines | ||
| 101 | 101 | static struct platform_driver sa11x0_pcmcia_driver = { |
| 102 | 102 | .driver = { |
| 103 | 103 | .name = "sa11x0-pcmcia", |
| 104 | − .owner = THIS_MODULE, | |
| 105 | 104 | }, |
| 106 | 105 | .probe = sa11x0_drv_pcmcia_probe, |
| 107 | 106 | .remove = sa11x0_drv_pcmcia_remove, |
| @@ -349,7 +349,6 @@ static int __init get_tcic_id(void) · 348 unmodified lines | ||
| 349 | 349 | static struct platform_driver tcic_driver = { |
| 350 | 350 | .driver = { |
| 351 | 351 | .name = "tcic-pcmcia", |
| 352 | − .owner = THIS_MODULE, | |
| 353 | 352 | }, |
| 354 | 353 | }; |
| 355 | 354 | |
| @@ -709,7 +709,6 @@ __setup("vrc4171_card=", vrc4171_card_setup); · 708 unmodified lines | ||
| 709 | 709 | static struct platform_driver vrc4171_card_driver = { |
| 710 | 710 | .driver = { |
| 711 | 711 | .name = vrc4171_card_name, |
| 712 | − .owner = THIS_MODULE, | |
| 713 | 712 | }, |
| 714 | 713 | }; |
| 715 | 714 | |
| @@ -314,7 +314,6 @@ static int xxs1500_pcmcia_remove(struct platform_device *pdev) · 313 unmodified lines | ||
| 314 | 314 | static struct platform_driver xxs1500_pcmcia_socket_driver = { |
| 315 | 315 | .driver = { |
| 316 | 316 | .name = "xxs1500_pcmcia", |
| 317 | − .owner = THIS_MODULE, | |
| 318 | 317 | }, |
| 319 | 318 | .probe = xxs1500_pcmcia_probe, |
| 320 | 319 | .remove = xxs1500_pcmcia_remove, |
| @@ -263,7 +263,6 @@ static struct platform_driver berlin2_pinctrl_driver = { · 262 unmodified lines | ||
| 263 | 263 | .probe = berlin2_pinctrl_probe, |
| 264 | 264 | .driver = { |
| 265 | 265 | .name = "berlin-bg2-pinctrl", |
| 266 | − .owner = THIS_MODULE, | |
| 267 | 266 | .of_match_table = berlin2_pinctrl_match, |
| 268 | 267 | }, |
| 269 | 268 | }; |
| @@ -206,7 +206,6 @@ static struct platform_driver berlin2cd_pinctrl_driver = { · 205 unmodified lines | ||
| 206 | 206 | .probe = berlin2cd_pinctrl_probe, |
| 207 | 207 | .driver = { |
| 208 | 208 | .name = "berlin-bg2cd-pinctrl", |
| 209 | − .owner = THIS_MODULE, | |
| 210 | 209 | .of_match_table = berlin2cd_pinctrl_match, |
| 211 | 210 | }, |
| 212 | 211 | }; |
| @@ -425,7 +425,6 @@ static struct platform_driver berlin2q_pinctrl_driver = { · 424 unmodified lines | ||
| 425 | 425 | .probe = berlin2q_pinctrl_probe, |
| 426 | 426 | .driver = { |
| 427 | 427 | .name = "berlin-bg2q-pinctrl", |
| 428 | − .owner = THIS_MODULE, | |
| 429 | 428 | .of_match_table = berlin2q_pinctrl_match, |
| 430 | 429 | }, |
| 431 | 430 | }; |
| @@ -267,7 +267,6 @@ MODULE_DEVICE_TABLE(of, imx1_pinctrl_of_match); · 266 unmodified lines | ||
| 267 | 267 | static struct platform_driver imx1_pinctrl_driver = { |
| 268 | 268 | .driver = { |
| 269 | 269 | .name = "imx1-pinctrl", |
| 270 | − .owner = THIS_MODULE, | |
| 271 | 270 | .of_match_table = imx1_pinctrl_of_match, |
| 272 | 271 | }, |
| 273 | 272 | .remove = imx1_pinctrl_core_remove, |
| @@ -330,7 +330,6 @@ MODULE_DEVICE_TABLE(of, imx21_pinctrl_of_match); · 329 unmodified lines | ||
| 330 | 330 | static struct platform_driver imx21_pinctrl_driver = { |
| 331 | 331 | .driver = { |
| 332 | 332 | .name = "imx21-pinctrl", |
| 333 | − .owner = THIS_MODULE, | |
| 334 | 333 | .of_match_table = imx21_pinctrl_of_match, |
| 335 | 334 | }, |
| 336 | 335 | .remove = imx1_pinctrl_core_remove, |
| @@ -281,7 +281,6 @@ MODULE_DEVICE_TABLE(of, imx23_pinctrl_of_match); · 280 unmodified lines | ||
| 281 | 281 | static struct platform_driver imx23_pinctrl_driver = { |
| 282 | 282 | .driver = { |
| 283 | 283 | .name = "imx23-pinctrl", |
| 284 | − .owner = THIS_MODULE, | |
| 285 | 284 | .of_match_table = imx23_pinctrl_of_match, |
| 286 | 285 | }, |
| 287 | 286 | .probe = imx23_pinctrl_probe, |
| @@ -328,7 +328,6 @@ static int imx25_pinctrl_probe(struct platform_device *pdev) · 327 unmodified lines | ||
| 328 | 328 | static struct platform_driver imx25_pinctrl_driver = { |
| 329 | 329 | .driver = { |
| 330 | 330 | .name = "imx25-pinctrl", |
| 331 | − .owner = THIS_MODULE, | |
| 332 | 331 | .of_match_table = of_match_ptr(imx25_pinctrl_of_match), |
| 333 | 332 | }, |
| 334 | 333 | .probe = imx25_pinctrl_probe, |
| @@ -402,7 +402,6 @@ static int imx27_pinctrl_probe(struct platform_device *pdev) · 401 unmodified lines | ||
| 402 | 402 | static struct platform_driver imx27_pinctrl_driver = { |
| 403 | 403 | .driver = { |
| 404 | 404 | .name = "imx27-pinctrl", |
| 405 | − .owner = THIS_MODULE, | |
| 406 | 405 | .of_match_table = of_match_ptr(imx27_pinctrl_of_match), |
| 407 | 406 | }, |
| 408 | 407 | .probe = imx27_pinctrl_probe, |
| @@ -397,7 +397,6 @@ MODULE_DEVICE_TABLE(of, imx28_pinctrl_of_match); · 396 unmodified lines | ||
| 397 | 397 | static struct platform_driver imx28_pinctrl_driver = { |
| 398 | 398 | .driver = { |
| 399 | 399 | .name = "imx28-pinctrl", |
| 400 | − .owner = THIS_MODULE, | |
| 401 | 400 | .of_match_table = imx28_pinctrl_of_match, |
| 402 | 401 | }, |
| 403 | 402 | .probe = imx28_pinctrl_probe, |
| @@ -1018,7 +1018,6 @@ static int imx35_pinctrl_probe(struct platform_device *pdev) · 1017 unmodified lines | ||
| 1018 | 1018 | static struct platform_driver imx35_pinctrl_driver = { |
| 1019 | 1019 | .driver = { |
| 1020 | 1020 | .name = "imx35-pinctrl", |
| 1021 | − .owner = THIS_MODULE, | |
| 1022 | 1021 | .of_match_table = imx35_pinctrl_of_match, |
| 1023 | 1022 | }, |
| 1024 | 1023 | .probe = imx35_pinctrl_probe, |
| @@ -404,7 +404,6 @@ static int imx50_pinctrl_probe(struct platform_device *pdev) · 403 unmodified lines | ||
| 404 | 404 | static struct platform_driver imx50_pinctrl_driver = { |
| 405 | 405 | .driver = { |
| 406 | 406 | .name = "imx50-pinctrl", |
| 407 | − .owner = THIS_MODULE, | |
| 408 | 407 | .of_match_table = of_match_ptr(imx50_pinctrl_of_match), |
| 409 | 408 | }, |
| 410 | 409 | .probe = imx50_pinctrl_probe, |
| @@ -781,7 +781,6 @@ static int imx51_pinctrl_probe(struct platform_device *pdev) · 780 unmodified lines | ||
| 781 | 781 | static struct platform_driver imx51_pinctrl_driver = { |
| 782 | 782 | .driver = { |
| 783 | 783 | .name = "imx51-pinctrl", |
| 784 | − .owner = THIS_MODULE, | |
| 785 | 784 | .of_match_table = imx51_pinctrl_of_match, |
| 786 | 785 | }, |
| 787 | 786 | .probe = imx51_pinctrl_probe, |
| @@ -467,7 +467,6 @@ static int imx53_pinctrl_probe(struct platform_device *pdev) · 466 unmodified lines | ||
| 467 | 467 | static struct platform_driver imx53_pinctrl_driver = { |
| 468 | 468 | .driver = { |
| 469 | 469 | .name = "imx53-pinctrl", |
| 470 | − .owner = THIS_MODULE, | |
| 471 | 470 | .of_match_table = imx53_pinctrl_of_match, |
| 472 | 471 | }, |
| 473 | 472 | .probe = imx53_pinctrl_probe, |
| @@ -473,7 +473,6 @@ static int imx6dl_pinctrl_probe(struct platform_device *pdev) · 472 unmodified lines | ||
| 473 | 473 | static struct platform_driver imx6dl_pinctrl_driver = { |
| 474 | 474 | .driver = { |
| 475 | 475 | .name = "imx6dl-pinctrl", |
| 476 | − .owner = THIS_MODULE, | |
| 477 | 476 | .of_match_table = imx6dl_pinctrl_of_match, |
| 478 | 477 | }, |
| 479 | 478 | .probe = imx6dl_pinctrl_probe, |
| @@ -479,7 +479,6 @@ static int imx6q_pinctrl_probe(struct platform_device *pdev) · 478 unmodified lines | ||
| 479 | 479 | static struct platform_driver imx6q_pinctrl_driver = { |
| 480 | 480 | .driver = { |
| 481 | 481 | .name = "imx6q-pinctrl", |
| 482 | − .owner = THIS_MODULE, | |
| 483 | 482 | .of_match_table = imx6q_pinctrl_of_match, |
| 484 | 483 | }, |
| 485 | 484 | .probe = imx6q_pinctrl_probe, |
| @@ -380,7 +380,6 @@ static int imx6sl_pinctrl_probe(struct platform_device *pdev) · 379 unmodified lines | ||
| 380 | 380 | static struct platform_driver imx6sl_pinctrl_driver = { |
| 381 | 381 | .driver = { |
| 382 | 382 | .name = "imx6sl-pinctrl", |
| 383 | − .owner = THIS_MODULE, | |
| 384 | 383 | .of_match_table = imx6sl_pinctrl_of_match, |
| 385 | 384 | }, |
| 386 | 385 | .probe = imx6sl_pinctrl_probe, |
| @@ -383,7 +383,6 @@ static int imx6sx_pinctrl_probe(struct platform_device *pdev) · 382 unmodified lines | ||
| 383 | 383 | static struct platform_driver imx6sx_pinctrl_driver = { |
| 384 | 384 | .driver = { |
| 385 | 385 | .name = "imx6sx-pinctrl", |
| 386 | − .owner = THIS_MODULE, | |
| 387 | 386 | .of_match_table = of_match_ptr(imx6sx_pinctrl_of_match), |
| 388 | 387 | }, |
| 389 | 388 | .probe = imx6sx_pinctrl_probe, |
| @@ -315,7 +315,6 @@ static int vf610_pinctrl_probe(struct platform_device *pdev) · 314 unmodified lines | ||
| 315 | 315 | static struct platform_driver vf610_pinctrl_driver = { |
| 316 | 316 | .driver = { |
| 317 | 317 | .name = "vf610-pinctrl", |
| 318 | − .owner = THIS_MODULE, | |
| 319 | 318 | .of_match_table = vf610_pinctrl_of_match, |
| 320 | 319 | }, |
| 321 | 320 | .probe = vf610_pinctrl_probe, |
| @@ -606,7 +606,6 @@ static struct platform_driver byt_gpio_driver = { · 605 unmodified lines | ||
| 606 | 606 | .remove = byt_gpio_remove, |
| 607 | 607 | .driver = { |
| 608 | 608 | .name = "byt_gpio", |
| 609 | − .owner = THIS_MODULE, | |
| 610 | 609 | .pm = &byt_gpio_pm_ops, |
| 611 | 610 | .acpi_match_table = ACPI_PTR(byt_gpio_acpi_match), |
| 612 | 611 | }, |
| @@ -425,7 +425,6 @@ static int armada_370_pinctrl_remove(struct platform_device *pdev) · 424 unmodified lines | ||
| 425 | 425 | static struct platform_driver armada_370_pinctrl_driver = { |
| 426 | 426 | .driver = { |
| 427 | 427 | .name = "armada-370-pinctrl", |
| 428 | − .owner = THIS_MODULE, | |
| 429 | 428 | .of_match_table = armada_370_pinctrl_of_match, |
| 430 | 429 | }, |
| 431 | 430 | .probe = armada_370_pinctrl_probe, |
| @@ -445,7 +445,6 @@ static int armada_375_pinctrl_remove(struct platform_device *pdev) · 444 unmodified lines | ||
| 445 | 445 | static struct platform_driver armada_375_pinctrl_driver = { |
| 446 | 446 | .driver = { |
| 447 | 447 | .name = "armada-375-pinctrl", |
| 448 | − .owner = THIS_MODULE, | |
| 449 | 448 | .of_match_table = of_match_ptr(armada_375_pinctrl_of_match), |
| 450 | 449 | }, |
| 451 | 450 | .probe = armada_375_pinctrl_probe, |
| @@ -448,7 +448,6 @@ static int armada_38x_pinctrl_remove(struct platform_device *pdev) · 447 unmodified lines | ||
| 448 | 448 | static struct platform_driver armada_38x_pinctrl_driver = { |
| 449 | 449 | .driver = { |
| 450 | 450 | .name = "armada-38x-pinctrl", |
| 451 | − .owner = THIS_MODULE, | |
| 452 | 451 | .of_match_table = of_match_ptr(armada_38x_pinctrl_of_match), |
| 453 | 452 | }, |
| 454 | 453 | .probe = armada_38x_pinctrl_probe, |
| @@ -472,7 +472,6 @@ static int armada_xp_pinctrl_remove(struct platform_device *pdev) · 471 unmodified lines | ||
| 472 | 472 | static struct platform_driver armada_xp_pinctrl_driver = { |
| 473 | 473 | .driver = { |
| 474 | 474 | .name = "armada-xp-pinctrl", |
| 475 | − .owner = THIS_MODULE, | |
| 476 | 475 | .of_match_table = armada_xp_pinctrl_of_match, |
| 477 | 476 | }, |
| 478 | 477 | .probe = armada_xp_pinctrl_probe, |
| @@ -851,7 +851,6 @@ static int dove_pinctrl_remove(struct platform_device *pdev) · 850 unmodified lines | ||
| 851 | 851 | static struct platform_driver dove_pinctrl_driver = { |
| 852 | 852 | .driver = { |
| 853 | 853 | .name = "dove-pinctrl", |
| 854 | − .owner = THIS_MODULE, | |
| 855 | 854 | .of_match_table = dove_pinctrl_of_match, |
| 856 | 855 | }, |
| 857 | 856 | .probe = dove_pinctrl_probe, |
| @@ -489,7 +489,6 @@ static int kirkwood_pinctrl_remove(struct platform_device *pdev) · 488 unmodified lines | ||
| 489 | 489 | static struct platform_driver kirkwood_pinctrl_driver = { |
| 490 | 490 | .driver = { |
| 491 | 491 | .name = "kirkwood-pinctrl", |
| 492 | − .owner = THIS_MODULE, | |
| 493 | 492 | .of_match_table = kirkwood_pinctrl_of_match, |
| 494 | 493 | }, |
| 495 | 494 | .probe = kirkwood_pinctrl_probe, |
| @@ -247,7 +247,6 @@ static int orion_pinctrl_remove(struct platform_device *pdev) · 246 unmodified lines | ||
| 247 | 247 | static struct platform_driver orion_pinctrl_driver = { |
| 248 | 248 | .driver = { |
| 249 | 249 | .name = "orion-pinctrl", |
| 250 | − .owner = THIS_MODULE, | |
| 251 | 250 | .of_match_table = of_match_ptr(orion_pinctrl_of_match), |
| 252 | 251 | }, |
| 253 | 252 | .probe = orion_pinctrl_probe, |
| @@ -1278,7 +1278,6 @@ static int abx500_gpio_remove(struct platform_device *pdev) · 1277 unmodified lines | ||
| 1278 | 1278 | static struct platform_driver abx500_gpio_driver = { |
| 1279 | 1279 | .driver = { |
| 1280 | 1280 | .name = "abx500-gpio", |
| 1281 | − .owner = THIS_MODULE, | |
| 1282 | 1281 | .of_match_table = abx500_gpio_match, |
| 1283 | 1282 | }, |
| 1284 | 1283 | .probe = abx500_gpio_probe, |
| @@ -2051,7 +2051,6 @@ static const struct of_device_id nmk_gpio_match[] = { · 2050 unmodified lines | ||
| 2051 | 2051 | |
| 2052 | 2052 | static struct platform_driver nmk_gpio_driver = { |
| 2053 | 2053 | .driver = { |
| 2054 | − .owner = THIS_MODULE, | |
| 2055 | 2054 | .name = "gpio", |
| 2056 | 2055 | .of_match_table = nmk_gpio_match, |
| 2057 | 2056 | }, |
| @@ -2064,7 +2063,6 @@ static SIMPLE_DEV_PM_OPS(nmk_pinctrl_pm_ops, · 6 unmodified lines | ||
| 2064 | 2063 | |
| 2065 | 2064 | static struct platform_driver nmk_pinctrl_driver = { |
| 2066 | 2065 | .driver = { |
| 2067 | − .owner = THIS_MODULE, | |
| 2068 | 2066 | .name = "pinctrl-nomadik", |
| 2069 | 2067 | .of_match_table = nmk_pinctrl_match, |
| 2070 | 2068 | .pm = &nmk_pinctrl_pm_ops, |
| @@ -634,7 +634,6 @@ MODULE_DEVICE_TABLE(of, as3722_pinctrl_of_match); · 633 unmodified lines | ||
| 634 | 634 | static struct platform_driver as3722_pinctrl_driver = { |
| 635 | 635 | .driver = { |
| 636 | 636 | .name = "as3722-pinctrl", |
| 637 | − .owner = THIS_MODULE, | |
| 638 | 637 | .of_match_table = as3722_pinctrl_of_match, |
| 639 | 638 | }, |
| 640 | 639 | .probe = as3722_pinctrl_probe, |
| @@ -1831,7 +1831,6 @@ err: · 1830 unmodified lines | ||
| 1831 | 1831 | static struct platform_driver at91_gpio_driver = { |
| 1832 | 1832 | .driver = { |
| 1833 | 1833 | .name = "gpio-at91", |
| 1834 | − .owner = THIS_MODULE, | |
| 1835 | 1834 | .of_match_table = at91_gpio_of_match, |
| 1836 | 1835 | }, |
| 1837 | 1836 | .probe = at91_gpio_probe, |
| @@ -1840,7 +1839,6 @@ static struct platform_driver at91_gpio_driver = { · 2 unmodified lines | ||
| 1840 | 1839 | static struct platform_driver at91_pinctrl_driver = { |
| 1841 | 1840 | .driver = { |
| 1842 | 1841 | .name = "pinctrl-at91", |
| 1843 | − .owner = THIS_MODULE, | |
| 1844 | 1842 | .of_match_table = at91_pinctrl_of_match, |
| 1845 | 1843 | }, |
| 1846 | 1844 | .probe = at91_pinctrl_probe, |
| @@ -1443,7 +1443,6 @@ static struct of_device_id bcm281xx_pinctrl_of_match[] = { · 1442 unmodified lines | ||
| 1443 | 1443 | static struct platform_driver bcm281xx_pinctrl_driver = { |
| 1444 | 1444 | .driver = { |
| 1445 | 1445 | .name = "bcm281xx-pinctrl", |
| 1446 | − .owner = THIS_MODULE, | |
| 1447 | 1446 | .of_match_table = bcm281xx_pinctrl_of_match, |
| 1448 | 1447 | }, |
| 1449 | 1448 | }; |
| @@ -1062,7 +1062,6 @@ static struct platform_driver bcm2835_pinctrl_driver = { · 1061 unmodified lines | ||
| 1062 | 1062 | .remove = bcm2835_pinctrl_remove, |
| 1063 | 1063 | .driver = { |
| 1064 | 1064 | .name = MODULE_NAME, |
| 1065 | − .owner = THIS_MODULE, | |
| 1066 | 1065 | .of_match_table = bcm2835_pinctrl_match, |
| 1067 | 1066 | }, |
| 1068 | 1067 | }; |
| @@ -500,7 +500,6 @@ static struct platform_driver pinctrl_falcon_driver = { · 499 unmodified lines | ||
| 500 | 500 | .probe = pinctrl_falcon_probe, |
| 501 | 501 | .driver = { |
| 502 | 502 | .name = "pinctrl-falcon", |
| 503 | − .owner = THIS_MODULE, | |
| 504 | 503 | .of_match_table = falcon_match, |
| 505 | 504 | }, |
| 506 | 505 | }; |
| @@ -1062,7 +1062,6 @@ static int palmas_pinctrl_remove(struct platform_device *pdev) · 1061 unmodified lines | ||
| 1062 | 1062 | static struct platform_driver palmas_pinctrl_driver = { |
| 1063 | 1063 | .driver = { |
| 1064 | 1064 | .name = "palmas-pinctrl", |
| 1065 | − .owner = THIS_MODULE, | |
| 1066 | 1065 | .of_match_table = palmas_pinctrl_of_match, |
| 1067 | 1066 | }, |
| 1068 | 1067 | .probe = palmas_pinctrl_probe, |
| @@ -2053,7 +2053,6 @@ static struct platform_driver rockchip_pinctrl_driver = { · 2052 unmodified lines | ||
| 2053 | 2053 | .probe = rockchip_pinctrl_probe, |
| 2054 | 2054 | .driver = { |
| 2055 | 2055 | .name = "rockchip-pinctrl", |
| 2056 | − .owner = THIS_MODULE, | |
| 2057 | 2056 | .pm = &rockchip_pinctrl_dev_pm_ops, |
| 2058 | 2057 | .of_match_table = rockchip_pinctrl_dt_match, |
| 2059 | 2058 | }, |
| @@ -2016,7 +2016,6 @@ static struct platform_driver pcs_driver = { · 2015 unmodified lines | ||
| 2016 | 2016 | .probe = pcs_probe, |
| 2017 | 2017 | .remove = pcs_remove, |
| 2018 | 2018 | .driver = { |
| 2019 | − .owner = THIS_MODULE, | |
| 2020 | 2019 | .name = DRIVER_NAME, |
| 2021 | 2020 | .of_match_table = pcs_of_match, |
| 2022 | 2021 | }, |
| @@ -1689,7 +1689,6 @@ static int st_pctl_probe(struct platform_device *pdev) · 1688 unmodified lines | ||
| 1689 | 1689 | static struct platform_driver st_pctl_driver = { |
| 1690 | 1690 | .driver = { |
| 1691 | 1691 | .name = "st-pinctrl", |
| 1692 | − .owner = THIS_MODULE, | |
| 1693 | 1692 | .of_match_table = st_pctl_of_match, |
| 1694 | 1693 | }, |
| 1695 | 1694 | .probe = st_pctl_probe, |
| @@ -843,7 +843,6 @@ static struct platform_driver tb10x_pinctrl_pdrv = { · 842 unmodified lines | ||
| 843 | 843 | .driver = { |
| 844 | 844 | .name = "tb10x_pinctrl", |
| 845 | 845 | .of_match_table = of_match_ptr(tb10x_pinctrl_dt_ids), |
| 846 | − .owner = THIS_MODULE | |
| 847 | 846 | } |
| 848 | 847 | }; |
| 849 | 848 | |
| @@ -1859,7 +1859,6 @@ MODULE_DEVICE_TABLE(of, tegra114_pinctrl_of_match); · 1858 unmodified lines | ||
| 1859 | 1859 | static struct platform_driver tegra114_pinctrl_driver = { |
| 1860 | 1860 | .driver = { |
| 1861 | 1861 | .name = "tegra114-pinctrl", |
| 1862 | − .owner = THIS_MODULE, | |
| 1863 | 1862 | .of_match_table = tegra114_pinctrl_of_match, |
| 1864 | 1863 | }, |
| 1865 | 1864 | .probe = tegra114_pinctrl_probe, |
| @@ -2072,7 +2072,6 @@ MODULE_DEVICE_TABLE(of, tegra124_pinctrl_of_match); · 2071 unmodified lines | ||
| 2072 | 2072 | static struct platform_driver tegra124_pinctrl_driver = { |
| 2073 | 2073 | .driver = { |
| 2074 | 2074 | .name = "tegra124-pinctrl", |
| 2075 | − .owner = THIS_MODULE, | |
| 2076 | 2075 | .of_match_table = tegra124_pinctrl_of_match, |
| 2077 | 2076 | }, |
| 2078 | 2077 | .probe = tegra124_pinctrl_probe, |
| @@ -2236,7 +2236,6 @@ static const struct of_device_id tegra20_pinctrl_of_match[] = { · 2235 unmodified lines | ||
| 2236 | 2236 | static struct platform_driver tegra20_pinctrl_driver = { |
| 2237 | 2237 | .driver = { |
| 2238 | 2238 | .name = "tegra20-pinctrl", |
| 2239 | − .owner = THIS_MODULE, | |
| 2240 | 2239 | .of_match_table = tegra20_pinctrl_of_match, |
| 2241 | 2240 | }, |
| 2242 | 2241 | .probe = tegra20_pinctrl_probe, |
| @@ -2493,7 +2493,6 @@ MODULE_DEVICE_TABLE(of, tegra30_pinctrl_of_match); · 2492 unmodified lines | ||
| 2493 | 2493 | static struct platform_driver tegra30_pinctrl_driver = { |
| 2494 | 2494 | .driver = { |
| 2495 | 2495 | .name = "tegra30-pinctrl", |
| 2496 | − .owner = THIS_MODULE, | |
| 2497 | 2496 | .of_match_table = tegra30_pinctrl_of_match, |
| 2498 | 2497 | }, |
| 2499 | 2498 | .probe = tegra30_pinctrl_probe, |
| @@ -977,7 +977,6 @@ static struct of_device_id tz1090_pdc_pinctrl_of_match[] = { · 976 unmodified lines | ||
| 977 | 977 | static struct platform_driver tz1090_pdc_pinctrl_driver = { |
| 978 | 978 | .driver = { |
| 979 | 979 | .name = "tz1090-pdc-pinctrl", |
| 980 | − .owner = THIS_MODULE, | |
| 981 | 980 | .of_match_table = tz1090_pdc_pinctrl_of_match, |
| 982 | 981 | }, |
| 983 | 982 | .probe = tz1090_pdc_pinctrl_probe, |
| @@ -1992,7 +1992,6 @@ static struct of_device_id tz1090_pinctrl_of_match[] = { · 1991 unmodified lines | ||
| 1992 | 1992 | static struct platform_driver tz1090_pinctrl_driver = { |
| 1993 | 1993 | .driver = { |
| 1994 | 1994 | .name = "tz1090-pinctrl", |
| 1995 | − .owner = THIS_MODULE, | |
| 1996 | 1995 | .of_match_table = tz1090_pinctrl_of_match, |
| 1997 | 1996 | }, |
| 1998 | 1997 | .probe = tz1090_pinctrl_probe, |
| @@ -1098,7 +1098,6 @@ static const struct of_device_id u300_pinctrl_match[] = { · 1097 unmodified lines | ||
| 1098 | 1098 | static struct platform_driver u300_pmx_driver = { |
| 1099 | 1099 | .driver = { |
| 1100 | 1100 | .name = DRIVER_NAME, |
| 1101 | − .owner = THIS_MODULE, | |
| 1102 | 1101 | .of_match_table = u300_pinctrl_match, |
| 1103 | 1102 | }, |
| 1104 | 1103 | .probe = u300_pmx_probe, |
| @@ -840,7 +840,6 @@ static struct platform_driver pinmux_xway_driver = { · 839 unmodified lines | ||
| 840 | 840 | .probe = pinmux_xway_probe, |
| 841 | 841 | .driver = { |
| 842 | 842 | .name = "pinctrl-xway", |
| 843 | − .owner = THIS_MODULE, | |
| 844 | 843 | .of_match_table = xway_match, |
| 845 | 844 | }, |
| 846 | 845 | }; |
| @@ -612,7 +612,6 @@ static const struct of_device_id apq8064_pinctrl_of_match[] = { · 611 unmodified lines | ||
| 612 | 612 | static struct platform_driver apq8064_pinctrl_driver = { |
| 613 | 613 | .driver = { |
| 614 | 614 | .name = "apq8064-pinctrl", |
| 615 | − .owner = THIS_MODULE, | |
| 616 | 615 | .of_match_table = apq8064_pinctrl_of_match, |
| 617 | 616 | }, |
| 618 | 617 | .probe = apq8064_pinctrl_probe, |
| @@ -1221,7 +1221,6 @@ static const struct of_device_id apq8084_pinctrl_of_match[] = { · 1220 unmodified lines | ||
| 1221 | 1221 | static struct platform_driver apq8084_pinctrl_driver = { |
| 1222 | 1222 | .driver = { |
| 1223 | 1223 | .name = "apq8084-pinctrl", |
| 1224 | − .owner = THIS_MODULE, | |
| 1225 | 1224 | .of_match_table = apq8084_pinctrl_of_match, |
| 1226 | 1225 | }, |
| 1227 | 1226 | .probe = apq8084_pinctrl_probe, |
| @@ -645,7 +645,6 @@ static const struct of_device_id ipq8064_pinctrl_of_match[] = { · 644 unmodified lines | ||
| 645 | 645 | static struct platform_driver ipq8064_pinctrl_driver = { |
| 646 | 646 | .driver = { |
| 647 | 647 | .name = "ipq8064-pinctrl", |
| 648 | − .owner = THIS_MODULE, | |
| 649 | 648 | .of_match_table = ipq8064_pinctrl_of_match, |
| 650 | 649 | }, |
| 651 | 650 | .probe = ipq8064_pinctrl_probe, |
| @@ -1259,7 +1259,6 @@ static const struct of_device_id msm8960_pinctrl_of_match[] = { · 1258 unmodified lines | ||
| 1259 | 1259 | static struct platform_driver msm8960_pinctrl_driver = { |
| 1260 | 1260 | .driver = { |
| 1261 | 1261 | .name = "msm8960-pinctrl", |
| 1262 | − .owner = THIS_MODULE, | |
| 1263 | 1262 | .of_match_table = msm8960_pinctrl_of_match, |
| 1264 | 1263 | }, |
| 1265 | 1264 | .probe = msm8960_pinctrl_probe, |
| @@ -1043,7 +1043,6 @@ static const struct of_device_id msm8x74_pinctrl_of_match[] = { · 1042 unmodified lines | ||
| 1043 | 1043 | static struct platform_driver msm8x74_pinctrl_driver = { |
| 1044 | 1044 | .driver = { |
| 1045 | 1045 | .name = "msm8x74-pinctrl", |
| 1046 | − .owner = THIS_MODULE, | |
| 1047 | 1046 | .of_match_table = msm8x74_pinctrl_of_match, |
| 1048 | 1047 | }, |
| 1049 | 1048 | .probe = msm8x74_pinctrl_probe, |
| @@ -1036,7 +1036,6 @@ static struct platform_driver exynos5440_pinctrl_driver = { · 1035 unmodified lines | ||
| 1036 | 1036 | .probe = exynos5440_pinctrl_probe, |
| 1037 | 1037 | .driver = { |
| 1038 | 1038 | .name = "exynos5440-pinctrl", |
| 1039 | − .owner = THIS_MODULE, | |
| 1040 | 1039 | .of_match_table = exynos5440_pinctrl_dt_match, |
| 1041 | 1040 | }, |
| 1042 | 1041 | }; |
| @@ -1266,7 +1266,6 @@ static struct platform_driver samsung_pinctrl_driver = { · 1265 unmodified lines | ||
| 1266 | 1266 | .probe = samsung_pinctrl_probe, |
| 1267 | 1267 | .driver = { |
| 1268 | 1268 | .name = "samsung-pinctrl", |
| 1269 | − .owner = THIS_MODULE, | |
| 1270 | 1269 | .of_match_table = samsung_pinctrl_dt_match, |
| 1271 | 1270 | }, |
| 1272 | 1271 | }; |
| @@ -650,7 +650,6 @@ static struct platform_driver sh_pfc_driver = { · 649 unmodified lines | ||
| 650 | 650 | .id_table = sh_pfc_id_table, |
| 651 | 651 | .driver = { |
| 652 | 652 | .name = DRV_NAME, |
| 653 | − .owner = THIS_MODULE, | |
| 654 | 653 | .of_match_table = of_match_ptr(sh_pfc_of_table), |
| 655 | 654 | }, |
| 656 | 655 | }; |
| @@ -406,7 +406,6 @@ static const struct dev_pm_ops sirfsoc_pinmux_pm_ops = { · 405 unmodified lines | ||
| 406 | 406 | static struct platform_driver sirfsoc_pinmux_driver = { |
| 407 | 407 | .driver = { |
| 408 | 408 | .name = DRIVER_NAME, |
| 409 | − .owner = THIS_MODULE, | |
| 410 | 409 | .of_match_table = pinmux_ids, |
| 411 | 410 | #ifdef CONFIG_PM_SLEEP |
| 412 | 411 | .pm = &sirfsoc_pinmux_pm_ops, |
| @@ -710,7 +710,6 @@ MODULE_DEVICE_TABLE(of, plgpio_of_match); · 709 unmodified lines | ||
| 710 | 710 | static struct platform_driver plgpio_driver = { |
| 711 | 711 | .probe = plgpio_probe, |
| 712 | 712 | .driver = { |
| 713 | − .owner = THIS_MODULE, | |
| 714 | 713 | .name = "spear-plgpio", |
| 715 | 714 | .pm = &plgpio_dev_pm_ops, |
| 716 | 715 | .of_match_table = plgpio_of_match, |
| @@ -2712,7 +2712,6 @@ static int spear1310_pinctrl_remove(struct platform_device *pdev) · 2711 unmodified lines | ||
| 2712 | 2712 | static struct platform_driver spear1310_pinctrl_driver = { |
| 2713 | 2713 | .driver = { |
| 2714 | 2714 | .name = DRIVER_NAME, |
| 2715 | − .owner = THIS_MODULE, | |
| 2716 | 2715 | .of_match_table = spear1310_pinctrl_of_match, |
| 2717 | 2716 | }, |
| 2718 | 2717 | .probe = spear1310_pinctrl_probe, |
| @@ -2028,7 +2028,6 @@ static int spear1340_pinctrl_remove(struct platform_device *pdev) · 2027 unmodified lines | ||
| 2028 | 2028 | static struct platform_driver spear1340_pinctrl_driver = { |
| 2029 | 2029 | .driver = { |
| 2030 | 2030 | .name = DRIVER_NAME, |
| 2031 | − .owner = THIS_MODULE, | |
| 2032 | 2031 | .of_match_table = spear1340_pinctrl_of_match, |
| 2033 | 2032 | }, |
| 2034 | 2033 | .probe = spear1340_pinctrl_probe, |
| @@ -685,7 +685,6 @@ static int spear300_pinctrl_remove(struct platform_device *pdev) · 684 unmodified lines | ||
| 685 | 685 | static struct platform_driver spear300_pinctrl_driver = { |
| 686 | 686 | .driver = { |
| 687 | 687 | .name = DRIVER_NAME, |
| 688 | − .owner = THIS_MODULE, | |
| 689 | 688 | .of_match_table = spear300_pinctrl_of_match, |
| 690 | 689 | }, |
| 691 | 690 | .probe = spear300_pinctrl_probe, |
| @@ -408,7 +408,6 @@ static int spear310_pinctrl_remove(struct platform_device *pdev) · 407 unmodified lines | ||
| 408 | 408 | static struct platform_driver spear310_pinctrl_driver = { |
| 409 | 409 | .driver = { |
| 410 | 410 | .name = DRIVER_NAME, |
| 411 | − .owner = THIS_MODULE, | |
| 412 | 411 | .of_match_table = spear310_pinctrl_of_match, |
| 413 | 412 | }, |
| 414 | 413 | .probe = spear310_pinctrl_probe, |
| @@ -3449,7 +3449,6 @@ static int spear320_pinctrl_remove(struct platform_device *pdev) · 3448 unmodified lines | ||
| 3449 | 3449 | static struct platform_driver spear320_pinctrl_driver = { |
| 3450 | 3450 | .driver = { |
| 3451 | 3451 | .name = DRIVER_NAME, |
| 3452 | − .owner = THIS_MODULE, | |
| 3453 | 3452 | .of_match_table = spear320_pinctrl_of_match, |
| 3454 | 3453 | }, |
| 3455 | 3454 | .probe = spear320_pinctrl_probe, |
| @@ -1029,7 +1029,6 @@ static struct platform_driver sun4i_a10_pinctrl_driver = { · 1028 unmodified lines | ||
| 1029 | 1029 | .probe = sun4i_a10_pinctrl_probe, |
| 1030 | 1030 | .driver = { |
| 1031 | 1031 | .name = "sun4i-pinctrl", |
| 1032 | − .owner = THIS_MODULE, | |
| 1033 | 1032 | .of_match_table = sun4i_a10_pinctrl_match, |
| 1034 | 1033 | }, |
| 1035 | 1034 | }; |
| @@ -680,7 +680,6 @@ static struct platform_driver sun5i_a10s_pinctrl_driver = { · 679 unmodified lines | ||
| 680 | 680 | .probe = sun5i_a10s_pinctrl_probe, |
| 681 | 681 | .driver = { |
| 682 | 682 | .name = "sun5i-a10s-pinctrl", |
| 683 | − .owner = THIS_MODULE, | |
| 684 | 683 | .of_match_table = sun5i_a10s_pinctrl_match, |
| 685 | 684 | }, |
| 686 | 685 | }; |
| @@ -398,7 +398,6 @@ static struct platform_driver sun5i_a13_pinctrl_driver = { · 397 unmodified lines | ||
| 398 | 398 | .probe = sun5i_a13_pinctrl_probe, |
| 399 | 399 | .driver = { |
| 400 | 400 | .name = "sun5i-a13-pinctrl", |
| 401 | − .owner = THIS_MODULE, | |
| 402 | 401 | .of_match_table = sun5i_a13_pinctrl_match, |
| 403 | 402 | }, |
| 404 | 403 | }; |
| @@ -130,7 +130,6 @@ static struct platform_driver sun6i_a31_r_pinctrl_driver = { · 129 unmodified lines | ||
| 130 | 130 | .probe = sun6i_a31_r_pinctrl_probe, |
| 131 | 131 | .driver = { |
| 132 | 132 | .name = "sun6i-a31-r-pinctrl", |
| 133 | − .owner = THIS_MODULE, | |
| 134 | 133 | .of_match_table = sun6i_a31_r_pinctrl_match, |
| 135 | 134 | }, |
| 136 | 135 | }; |
| @@ -927,7 +927,6 @@ static struct platform_driver sun6i_a31_pinctrl_driver = { · 926 unmodified lines | ||
| 927 | 927 | .probe = sun6i_a31_pinctrl_probe, |
| 928 | 928 | .driver = { |
| 929 | 929 | .name = "sun6i-a31-pinctrl", |
| 930 | − .owner = THIS_MODULE, | |
| 931 | 930 | .of_match_table = sun6i_a31_pinctrl_match, |
| 932 | 931 | }, |
| 933 | 932 | }; |
| @@ -1055,7 +1055,6 @@ static struct platform_driver sun7i_a20_pinctrl_driver = { · 1054 unmodified lines | ||
| 1055 | 1055 | .probe = sun7i_a20_pinctrl_probe, |
| 1056 | 1056 | .driver = { |
| 1057 | 1057 | .name = "sun7i-a20-pinctrl", |
| 1058 | − .owner = THIS_MODULE, | |
| 1059 | 1058 | .of_match_table = sun7i_a20_pinctrl_match, |
| 1060 | 1059 | }, |
| 1061 | 1060 | }; |
| @@ -129,7 +129,6 @@ static struct platform_driver sun8i_a23_r_pinctrl_driver = { · 128 unmodified lines | ||
| 129 | 129 | .probe = sun8i_a23_r_pinctrl_probe, |
| 130 | 130 | .driver = { |
| 131 | 131 | .name = "sun8i-a23-r-pinctrl", |
| 132 | − .owner = THIS_MODULE, | |
| 133 | 132 | .of_match_table = sun8i_a23_r_pinctrl_match, |
| 134 | 133 | }, |
| 135 | 134 | }; |
| @@ -581,7 +581,6 @@ static struct platform_driver sun8i_a23_pinctrl_driver = { · 580 unmodified lines | ||
| 581 | 581 | .probe = sun8i_a23_pinctrl_probe, |
| 582 | 582 | .driver = { |
| 583 | 583 | .name = "sun8i-a23-pinctrl", |
| 584 | − .owner = THIS_MODULE, | |
| 585 | 584 | .of_match_table = sun8i_a23_pinctrl_match, |
| 586 | 585 | }, |
| 587 | 586 | }; |
| @@ -488,7 +488,6 @@ static struct platform_driver wmt_pinctrl_driver = { · 487 unmodified lines | ||
| 488 | 488 | .remove = vt8500_pinctrl_remove, |
| 489 | 489 | .driver = { |
| 490 | 490 | .name = "pinctrl-vt8500", |
| 491 | − .owner = THIS_MODULE, | |
| 492 | 491 | .of_match_table = wmt_pinctrl_of_match, |
| 493 | 492 | }, |
| 494 | 493 | }; |
| @@ -519,7 +519,6 @@ static struct platform_driver wmt_pinctrl_driver = { · 518 unmodified lines | ||
| 519 | 519 | .remove = wm8505_pinctrl_remove, |
| 520 | 520 | .driver = { |
| 521 | 521 | .name = "pinctrl-wm8505", |
| 522 | − .owner = THIS_MODULE, | |
| 523 | 522 | .of_match_table = wmt_pinctrl_of_match, |
| 524 | 523 | }, |
| 525 | 524 | }; |
| @@ -357,7 +357,6 @@ static struct platform_driver wmt_pinctrl_driver = { · 356 unmodified lines | ||
| 357 | 357 | .remove = wm8650_pinctrl_remove, |
| 358 | 358 | .driver = { |
| 359 | 359 | .name = "pinctrl-wm8650", |
| 360 | − .owner = THIS_MODULE, | |
| 361 | 360 | .of_match_table = wmt_pinctrl_of_match, |
| 362 | 361 | }, |
| 363 | 362 | }; |
| @@ -396,7 +396,6 @@ static struct platform_driver wmt_pinctrl_driver = { · 395 unmodified lines | ||
| 396 | 396 | .remove = wm8750_pinctrl_remove, |
| 397 | 397 | .driver = { |
| 398 | 398 | .name = "pinctrl-wm8750", |
| 399 | − .owner = THIS_MODULE, | |
| 400 | 399 | .of_match_table = wmt_pinctrl_of_match, |
| 401 | 400 | }, |
| 402 | 401 | }; |
| @@ -375,7 +375,6 @@ static struct platform_driver wmt_pinctrl_driver = { · 374 unmodified lines | ||
| 375 | 375 | .remove = wm8850_pinctrl_remove, |
| 376 | 376 | .driver = { |
| 377 | 377 | .name = "pinctrl-wm8850", |
| 378 | − .owner = THIS_MODULE, | |
| 379 | 378 | .of_match_table = wmt_pinctrl_of_match, |
| 380 | 379 | }, |
| 381 | 380 | }; |
| @@ -571,7 +571,6 @@ static struct platform_device *cros_platform_device; · 570 unmodified lines | ||
| 571 | 571 | static struct platform_driver cros_platform_driver = { |
| 572 | 572 | .driver = { |
| 573 | 573 | .name = "chromeos_laptop", |
| 574 | − .owner = THIS_MODULE, | |
| 575 | 574 | }, |
| 576 | 575 | .probe = chromeos_laptop_probe, |
| 577 | 576 | }; |
| @@ -2117,7 +2117,6 @@ static void acer_platform_shutdown(struct platform_device *device) · 2116 unmodified lines | ||
| 2117 | 2117 | static struct platform_driver acer_platform_driver = { |
| 2118 | 2118 | .driver = { |
| 2119 | 2119 | .name = "acer-wmi", |
| 2120 | − .owner = THIS_MODULE, | |
| 2121 | 2120 | .pm = &acer_pm, |
| 2122 | 2121 | }, |
| 2123 | 2122 | .probe = acer_platform_probe, |
| @@ -533,7 +533,6 @@ static const struct dev_pm_ops acerhdf_pm_ops = { · 532 unmodified lines | ||
| 533 | 533 | static struct platform_driver acerhdf_driver = { |
| 534 | 534 | .driver = { |
| 535 | 535 | .name = "acerhdf", |
| 536 | − .owner = THIS_MODULE, | |
| 537 | 536 | .pm = &acerhdf_pm_ops, |
| 538 | 537 | }, |
| 539 | 538 | .probe = acerhdf_probe, |
| @@ -157,7 +157,6 @@ static struct platform_zone *zone_data; · 156 unmodified lines | ||
| 157 | 157 | static struct platform_driver platform_driver = { |
| 158 | 158 | .driver = { |
| 159 | 159 | .name = "alienware-wmi", |
| 160 | − .owner = THIS_MODULE, | |
| 161 | 160 | } |
| 162 | 161 | }; |
| 163 | 162 | |
| @@ -138,7 +138,6 @@ static int amilo_rfkill_remove(struct platform_device *device) · 137 unmodified lines | ||
| 138 | 138 | static struct platform_driver amilo_rfkill_driver = { |
| 139 | 139 | .driver = { |
| 140 | 140 | .name = KBUILD_MODNAME, |
| 141 | − .owner = THIS_MODULE, | |
| 142 | 141 | }, |
| 143 | 142 | .probe = amilo_rfkill_probe, |
| 144 | 143 | .remove = amilo_rfkill_remove, |
| @@ -1699,7 +1699,6 @@ static void asus_platform_exit(struct asus_laptop *asus) · 1698 unmodified lines | ||
| 1699 | 1699 | static struct platform_driver platform_driver = { |
| 1700 | 1700 | .driver = { |
| 1701 | 1701 | .name = ASUS_LAPTOP_FILE, |
| 1702 | − .owner = THIS_MODULE, | |
| 1703 | 1702 | }, |
| 1704 | 1703 | }; |
| 1705 | 1704 | |
| @@ -710,7 +710,6 @@ static int compal_remove(struct platform_device *); · 709 unmodified lines | ||
| 710 | 710 | static struct platform_driver compal_driver = { |
| 711 | 711 | .driver = { |
| 712 | 712 | .name = DRIVER_NAME, |
| 713 | − .owner = THIS_MODULE, | |
| 714 | 713 | }, |
| 715 | 714 | .probe = compal_probe, |
| 716 | 715 | .remove = compal_remove, |
| @@ -84,7 +84,6 @@ static struct calling_interface_token *da_tokens; · 83 unmodified lines | ||
| 84 | 84 | static struct platform_driver platform_driver = { |
| 85 | 85 | .driver = { |
| 86 | 86 | .name = "dell-laptop", |
| 87 | − .owner = THIS_MODULE, | |
| 88 | 87 | } |
| 89 | 88 | }; |
| 90 | 89 | |
| @@ -961,7 +961,6 @@ static const struct dev_pm_ops eeepc_pm_ops = { · 960 unmodified lines | ||
| 961 | 961 | static struct platform_driver platform_driver = { |
| 962 | 962 | .driver = { |
| 963 | 963 | .name = EEEPC_LAPTOP_FILE, |
| 964 | − .owner = THIS_MODULE, | |
| 965 | 964 | .pm = &eeepc_pm_ops, |
| 966 | 965 | } |
| 967 | 966 | }; |
| @@ -559,7 +559,6 @@ static struct attribute_group fujitsupf_attribute_group = { · 558 unmodified lines | ||
| 559 | 559 | static struct platform_driver fujitsupf_driver = { |
| 560 | 560 | .driver = { |
| 561 | 561 | .name = "fujitsu-laptop", |
| 562 | − .owner = THIS_MODULE, | |
| 563 | 562 | } |
| 564 | 563 | }; |
| 565 | 564 | |
| @@ -318,7 +318,6 @@ static struct platform_driver hdaps_driver = { · 317 unmodified lines | ||
| 318 | 318 | .probe = hdaps_probe, |
| 319 | 319 | .driver = { |
| 320 | 320 | .name = "hdaps", |
| 321 | − .owner = THIS_MODULE, | |
| 322 | 321 | .pm = &hdaps_pm, |
| 323 | 322 | }, |
| 324 | 323 | }; |
| @@ -1006,7 +1006,6 @@ static const struct dev_pm_ops hp_wmi_pm_ops = { · 1005 unmodified lines | ||
| 1006 | 1006 | static struct platform_driver hp_wmi_driver = { |
| 1007 | 1007 | .driver = { |
| 1008 | 1008 | .name = "hp-wmi", |
| 1009 | − .owner = THIS_MODULE, | |
| 1010 | 1009 | .pm = &hp_wmi_pm_ops, |
| 1011 | 1010 | }, |
| 1012 | 1011 | .remove = __exit_p(hp_wmi_bios_remove), |
| @@ -966,7 +966,6 @@ static struct platform_driver ideapad_acpi_driver = { · 965 unmodified lines | ||
| 966 | 966 | .remove = ideapad_acpi_remove, |
| 967 | 967 | .driver = { |
| 968 | 968 | .name = "ideapad_acpi", |
| 969 | − .owner = THIS_MODULE, | |
| 970 | 969 | .pm = &ideapad_pm, |
| 971 | 970 | .acpi_match_table = ACPI_PTR(ideapad_device_ids), |
| 972 | 971 | }, |
| @@ -133,7 +133,6 @@ static int mfld_pb_remove(struct platform_device *pdev) · 132 unmodified lines | ||
| 133 | 133 | static struct platform_driver mfld_pb_driver = { |
| 134 | 134 | .driver = { |
| 135 | 135 | .name = DRIVER_NAME, |
| 136 | − .owner = THIS_MODULE, | |
| 137 | 136 | }, |
| 138 | 137 | .probe = mfld_pb_probe, |
| 139 | 138 | .remove = mfld_pb_remove, |
| @@ -555,7 +555,6 @@ static const struct platform_device_id therm_id_table[] = { · 554 unmodified lines | ||
| 555 | 555 | static struct platform_driver mid_thermal_driver = { |
| 556 | 556 | .driver = { |
| 557 | 557 | .name = DRIVER_NAME, |
| 558 | − .owner = THIS_MODULE, | |
| 559 | 558 | .pm = &mid_thermal_pm, |
| 560 | 559 | }, |
| 561 | 560 | .probe = mid_thermal_probe, |
| @@ -288,7 +288,6 @@ static int oaktrail_remove(struct platform_device *pdev) · 287 unmodified lines | ||
| 288 | 288 | static struct platform_driver oaktrail_driver = { |
| 289 | 289 | .driver = { |
| 290 | 290 | .name = DRIVER_NAME, |
| 291 | − .owner = THIS_MODULE, | |
| 292 | 291 | }, |
| 293 | 292 | .probe = oaktrail_probe, |
| 294 | 293 | .remove = oaktrail_remove, |
| @@ -314,7 +314,6 @@ err2: · 313 unmodified lines | ||
| 314 | 314 | static struct platform_driver platform_pmic_gpio_driver = { |
| 315 | 315 | .driver = { |
| 316 | 316 | .name = DRIVER_NAME, |
| 317 | − .owner = THIS_MODULE, | |
| 318 | 317 | }, |
| 319 | 318 | .probe = platform_pmic_gpio_probe, |
| 320 | 319 | }; |
| @@ -573,7 +573,6 @@ static struct attribute_group msipf_old_attribute_group = { · 572 unmodified lines | ||
| 573 | 573 | static struct platform_driver msipf_driver = { |
| 574 | 574 | .driver = { |
| 575 | 575 | .name = "msi-laptop-pf", |
| 576 | − .owner = THIS_MODULE, | |
| 577 | 576 | .pm = &msi_laptop_pm, |
| 578 | 577 | }, |
| 579 | 578 | }; |
| @@ -82,7 +82,6 @@ static int samsungq10_remove(struct platform_device *pdev) · 81 unmodified lines | ||
| 82 | 82 | static struct platform_driver samsungq10_driver = { |
| 83 | 83 | .driver = { |
| 84 | 84 | .name = KBUILD_MODNAME, |
| 85 | − .owner = THIS_MODULE, | |
| 86 | 85 | }, |
| 87 | 86 | .probe = samsungq10_probe, |
| 88 | 87 | .remove = samsungq10_remove, |
| @@ -581,7 +581,6 @@ static atomic_t sony_pf_users = ATOMIC_INIT(0); · 580 unmodified lines | ||
| 581 | 581 | static struct platform_driver sony_pf_driver = { |
| 582 | 582 | .driver = { |
| 583 | 583 | .name = "sony-laptop", |
| 584 | − .owner = THIS_MODULE, | |
| 585 | 584 | } |
| 586 | 585 | }; |
| 587 | 586 | static struct platform_device *sony_pf_device; |
| @@ -234,7 +234,6 @@ static const struct dev_pm_ops tc1100_pm_ops = { · 233 unmodified lines | ||
| 234 | 234 | static struct platform_driver tc1100_driver = { |
| 235 | 235 | .driver = { |
| 236 | 236 | .name = "tc1100-wmi", |
| 237 | − .owner = THIS_MODULE, | |
| 238 | 237 | #ifdef CONFIG_PM |
| 239 | 238 | .pm = &tc1100_pm_ops, |
| 240 | 239 | #endif |
| @@ -972,7 +972,6 @@ static void tpacpi_shutdown_handler(struct platform_device *pdev) · 971 unmodified lines | ||
| 972 | 972 | static struct platform_driver tpacpi_pdriver = { |
| 973 | 973 | .driver = { |
| 974 | 974 | .name = TPACPI_DRVR_NAME, |
| 975 | − .owner = THIS_MODULE, | |
| 976 | 975 | .pm = &tpacpi_pm, |
| 977 | 976 | }, |
| 978 | 977 | .shutdown = tpacpi_shutdown_handler, |
| @@ -981,7 +980,6 @@ static struct platform_driver tpacpi_pdriver = { · 2 unmodified lines | ||
| 981 | 980 | static struct platform_driver tpacpi_hwmon_pdriver = { |
| 982 | 981 | .driver = { |
| 983 | 982 | .name = TPACPI_HWMON_DRVR_NAME, |
| 984 | − .owner = THIS_MODULE, | |
| 985 | 983 | }, |
| 986 | 984 | }; |
| 987 | 985 | |
| @@ -71,7 +71,6 @@ static int xo1_rfkill_remove(struct platform_device *pdev) · 70 unmodified lines | ||
| 71 | 71 | static struct platform_driver xo1_rfkill_driver = { |
| 72 | 72 | .driver = { |
| 73 | 73 | .name = "xo1-rfkill", |
| 74 | − .owner = THIS_MODULE, | |
| 75 | 74 | }, |
| 76 | 75 | .probe = xo1_rfkill_probe, |
| 77 | 76 | .remove = xo1_rfkill_remove, |
| @@ -1023,7 +1023,6 @@ static SIMPLE_DEV_PM_OPS(pm860x_battery_pm_ops, · 1022 unmodified lines | ||
| 1023 | 1023 | static struct platform_driver pm860x_battery_driver = { |
| 1024 | 1024 | .driver = { |
| 1025 | 1025 | .name = "88pm860x-battery", |
| 1026 | − .owner = THIS_MODULE, | |
| 1027 | 1026 | .pm = &pm860x_battery_pm_ops, |
| 1028 | 1027 | }, |
| 1029 | 1028 | .probe = pm860x_battery_probe, |
| @@ -732,7 +732,6 @@ static int pm860x_charger_remove(struct platform_device *pdev) · 731 unmodified lines | ||
| 732 | 732 | static struct platform_driver pm860x_charger_driver = { |
| 733 | 733 | .driver = { |
| 734 | 734 | .name = "88pm860x-charger", |
| 735 | − .owner = THIS_MODULE, | |
| 736 | 735 | }, |
| 737 | 736 | .probe = pm860x_charger_probe, |
| 738 | 737 | .remove = pm860x_charger_remove, |
| @@ -1195,7 +1195,6 @@ static struct platform_driver ab8500_btemp_driver = { · 1194 unmodified lines | ||
| 1195 | 1195 | .resume = ab8500_btemp_resume, |
| 1196 | 1196 | .driver = { |
| 1197 | 1197 | .name = "ab8500-btemp", |
| 1198 | − .owner = THIS_MODULE, | |
| 1199 | 1198 | .of_match_table = ab8500_btemp_match, |
| 1200 | 1199 | }, |
| 1201 | 1200 | }; |
| @@ -3733,7 +3733,6 @@ static struct platform_driver ab8500_charger_driver = { · 3732 unmodified lines | ||
| 3733 | 3733 | .resume = ab8500_charger_resume, |
| 3734 | 3734 | .driver = { |
| 3735 | 3735 | .name = "ab8500-charger", |
| 3736 | − .owner = THIS_MODULE, | |
| 3737 | 3736 | .of_match_table = ab8500_charger_match, |
| 3738 | 3737 | }, |
| 3739 | 3738 | }; |
| @@ -3281,7 +3281,6 @@ static struct platform_driver ab8500_fg_driver = { · 3280 unmodified lines | ||
| 3281 | 3281 | .resume = ab8500_fg_resume, |
| 3282 | 3282 | .driver = { |
| 3283 | 3283 | .name = "ab8500-fg", |
| 3284 | − .owner = THIS_MODULE, | |
| 3285 | 3284 | .of_match_table = ab8500_fg_match, |
| 3286 | 3285 | }, |
| 3287 | 3286 | }; |
| @@ -2156,7 +2156,6 @@ static struct platform_driver abx500_chargalg_driver = { · 2155 unmodified lines | ||
| 2156 | 2156 | .resume = abx500_chargalg_resume, |
| 2157 | 2157 | .driver = { |
| 2158 | 2158 | .name = "ab8500-chargalg", |
| 2159 | − .owner = THIS_MODULE, | |
| 2160 | 2159 | .of_match_table = ab8500_chargalg_match, |
| 2161 | 2160 | }, |
| 2162 | 2161 | }; |
| @@ -1014,7 +1014,6 @@ static struct platform_driver bq27000_battery_driver = { · 1013 unmodified lines | ||
| 1014 | 1014 | .remove = bq27000_battery_remove, |
| 1015 | 1015 | .driver = { |
| 1016 | 1016 | .name = "bq27000-battery", |
| 1017 | − .owner = THIS_MODULE, | |
| 1018 | 1017 | }, |
| 1019 | 1018 | }; |
| 1020 | 1019 | |
| @@ -2086,7 +2086,6 @@ static const struct dev_pm_ops charger_manager_pm = { · 2085 unmodified lines | ||
| 2086 | 2086 | static struct platform_driver charger_manager_driver = { |
| 2087 | 2087 | .driver = { |
| 2088 | 2088 | .name = "charger-manager", |
| 2089 | − .owner = THIS_MODULE, | |
| 2090 | 2089 | .pm = &charger_manager_pm, |
| 2091 | 2090 | .of_match_table = charger_manager_match, |
| 2092 | 2091 | }, |
| @@ -579,7 +579,6 @@ static int da9030_battery_remove(struct platform_device *dev) · 578 unmodified lines | ||
| 579 | 579 | static struct platform_driver da903x_battery_driver = { |
| 580 | 580 | .driver = { |
| 581 | 581 | .name = "da903x-battery", |
| 582 | − .owner = THIS_MODULE, | |
| 583 | 582 | }, |
| 584 | 583 | .probe = da9030_battery_probe, |
| 585 | 584 | .remove = da9030_battery_remove, |
| @@ -656,7 +656,6 @@ static struct platform_driver da9052_bat_driver = { · 655 unmodified lines | ||
| 656 | 656 | .remove = da9052_bat_remove, |
| 657 | 657 | .driver = { |
| 658 | 658 | .name = "da9052-bat", |
| 659 | − .owner = THIS_MODULE, | |
| 660 | 659 | }, |
| 661 | 660 | }; |
| 662 | 661 | module_platform_driver(da9052_bat_driver); |
| @@ -414,7 +414,6 @@ static const struct dev_pm_ops gab_pm_ops = { · 413 unmodified lines | ||
| 414 | 414 | static struct platform_driver gab_driver = { |
| 415 | 415 | .driver = { |
| 416 | 416 | .name = "generic-adc-battery", |
| 417 | − .owner = THIS_MODULE, | |
| 418 | 417 | .pm = GAB_PM_OPS |
| 419 | 418 | }, |
| 420 | 419 | .probe = gab_probe, |
| @@ -194,7 +194,6 @@ static struct platform_driver gpio_charger_driver = { · 193 unmodified lines | ||
| 194 | 194 | .remove = gpio_charger_remove, |
| 195 | 195 | .driver = { |
| 196 | 196 | .name = "gpio-charger", |
| 197 | − .owner = THIS_MODULE, | |
| 198 | 197 | .pm = &gpio_charger_pm_ops, |
| 199 | 198 | }, |
| 200 | 199 | }; |
| @@ -773,7 +773,6 @@ static int platform_pmic_battery_remove(struct platform_device *pdev) · 772 unmodified lines | ||
| 773 | 773 | static struct platform_driver platform_pmic_battery_driver = { |
| 774 | 774 | .driver = { |
| 775 | 775 | .name = DRIVER_NAME, |
| 776 | − .owner = THIS_MODULE, | |
| 777 | 776 | }, |
| 778 | 777 | .probe = platform_pmic_battery_probe, |
| 779 | 778 | .remove = platform_pmic_battery_remove, |
| @@ -406,7 +406,6 @@ static struct platform_driver jz_battery_driver = { · 405 unmodified lines | ||
| 406 | 406 | .remove = jz_battery_remove, |
| 407 | 407 | .driver = { |
| 408 | 408 | .name = "jz4740-battery", |
| 409 | − .owner = THIS_MODULE, | |
| 410 | 409 | .pm = JZ_BATTERY_PM_OPS, |
| 411 | 410 | }, |
| 412 | 411 | }; |
| @@ -740,7 +740,6 @@ static struct platform_driver lp8788_charger_driver = { · 739 unmodified lines | ||
| 740 | 740 | .remove = lp8788_charger_remove, |
| 741 | 741 | .driver = { |
| 742 | 742 | .name = LP8788_DEV_CHARGER, |
| 743 | − .owner = THIS_MODULE, | |
| 744 | 743 | }, |
| 745 | 744 | }; |
| 746 | 745 | module_platform_driver(lp8788_charger_driver); |
| @@ -599,7 +599,6 @@ MODULE_DEVICE_TABLE(platform, max14577_charger_id); · 598 unmodified lines | ||
| 599 | 599 | |
| 600 | 600 | static struct platform_driver max14577_charger_driver = { |
| 601 | 601 | .driver = { |
| 602 | − .owner = THIS_MODULE, | |
| 603 | 602 | .name = "max14577-charger", |
| 604 | 603 | }, |
| 605 | 604 | .probe = max14577_charger_probe, |
| @@ -368,7 +368,6 @@ static struct platform_driver max8903_driver = { · 367 unmodified lines | ||
| 368 | 368 | .remove = max8903_remove, |
| 369 | 369 | .driver = { |
| 370 | 370 | .name = "max8903-charger", |
| 371 | − .owner = THIS_MODULE, | |
| 372 | 371 | }, |
| 373 | 372 | }; |
| 374 | 373 | |
| @@ -181,7 +181,6 @@ static const struct platform_device_id max8997_battery_id[] = { · 180 unmodified lines | ||
| 181 | 181 | static struct platform_driver max8997_battery_driver = { |
| 182 | 182 | .driver = { |
| 183 | 183 | .name = "max8997-battery", |
| 184 | − .owner = THIS_MODULE, | |
| 185 | 184 | }, |
| 186 | 185 | .probe = max8997_battery_probe, |
| 187 | 186 | .remove = max8997_battery_remove, |
| @@ -195,7 +195,6 @@ static const struct platform_device_id max8998_battery_id[] = { · 194 unmodified lines | ||
| 195 | 195 | static struct platform_driver max8998_battery_driver = { |
| 196 | 196 | .driver = { |
| 197 | 197 | .name = "max8998-battery", |
| 198 | − .owner = THIS_MODULE, | |
| 199 | 198 | }, |
| 200 | 199 | .probe = max8998_battery_probe, |
| 201 | 200 | .remove = max8998_battery_remove, |
| @@ -677,7 +677,6 @@ MODULE_DEVICE_TABLE(of, olpc_battery_ids); · 676 unmodified lines | ||
| 677 | 677 | static struct platform_driver olpc_battery_driver = { |
| 678 | 678 | .driver = { |
| 679 | 679 | .name = "olpc-battery", |
| 680 | − .owner = THIS_MODULE, | |
| 681 | 680 | .of_match_table = olpc_battery_ids, |
| 682 | 681 | }, |
| 683 | 682 | .probe = olpc_battery_probe, |
| @@ -82,7 +82,6 @@ static int as3722_poweroff_remove(struct platform_device *pdev) · 81 unmodified lines | ||
| 82 | 82 | static struct platform_driver as3722_poweroff_driver = { |
| 83 | 83 | .driver = { |
| 84 | 84 | .name = "as3722-power-off", |
| 85 | − .owner = THIS_MODULE, | |
| 86 | 85 | }, |
| 87 | 86 | .probe = as3722_poweroff_probe, |
| 88 | 87 | .remove = as3722_poweroff_remove, |
| @@ -107,7 +107,6 @@ static struct platform_driver brcmstb_reboot_driver = { · 106 unmodified lines | ||
| 107 | 107 | .probe = brcmstb_reboot_probe, |
| 108 | 108 | .driver = { |
| 109 | 109 | .name = "brcmstb-reboot", |
| 110 | − .owner = THIS_MODULE, | |
| 111 | 110 | .of_match_table = of_match, |
| 112 | 111 | }, |
| 113 | 112 | }; |
| @@ -99,7 +99,6 @@ static struct platform_driver gpio_poweroff_driver = { · 98 unmodified lines | ||
| 99 | 99 | .remove = gpio_poweroff_remove, |
| 100 | 100 | .driver = { |
| 101 | 101 | .name = "poweroff-gpio", |
| 102 | − .owner = THIS_MODULE, | |
| 103 | 102 | .of_match_table = of_gpio_poweroff_match, |
| 104 | 103 | }, |
| 105 | 104 | }; |
| @@ -137,7 +137,6 @@ static struct platform_driver gpio_restart_driver = { · 136 unmodified lines | ||
| 137 | 137 | .remove = gpio_restart_remove, |
| 138 | 138 | .driver = { |
| 139 | 139 | .name = "restart-gpio", |
| 140 | − .owner = THIS_MODULE, | |
| 141 | 140 | .of_match_table = of_gpio_restart_match, |
| 142 | 141 | }, |
| 143 | 142 | }; |
| @@ -153,7 +153,6 @@ static int rsctrl_probe(struct platform_device *pdev) · 152 unmodified lines | ||
| 153 | 153 | static struct platform_driver rsctrl_driver = { |
| 154 | 154 | .probe = rsctrl_probe, |
| 155 | 155 | .driver = { |
| 156 | − .owner = THIS_MODULE, | |
| 157 | 156 | .name = KBUILD_MODNAME, |
| 158 | 157 | .of_match_table = rsctrl_of_match, |
| 159 | 158 | }, |
| @@ -342,7 +342,6 @@ static struct platform_driver ltc2952_poweroff_driver = { · 341 unmodified lines | ||
| 342 | 342 | .remove = ltc2952_poweroff_remove, |
| 343 | 343 | .driver = { |
| 344 | 344 | .name = "ltc2952-poweroff", |
| 345 | − .owner = THIS_MODULE, | |
| 346 | 345 | .of_match_table = of_ltc2952_poweroff_match, |
| 347 | 346 | }, |
| 348 | 347 | .suspend = ltc2952_poweroff_suspend, |
| @@ -129,7 +129,6 @@ static struct platform_driver qnap_power_off_driver = { · 128 unmodified lines | ||
| 129 | 129 | .probe = qnap_power_off_probe, |
| 130 | 130 | .remove = qnap_power_off_remove, |
| 131 | 131 | .driver = { |
| 132 | − .owner = THIS_MODULE, | |
| 133 | 132 | .name = "qnap_power_off", |
| 134 | 133 | .of_match_table = of_match_ptr(qnap_power_off_of_match_table), |
| 135 | 134 | }, |
| @@ -55,7 +55,6 @@ static struct platform_driver restart_poweroff_driver = { · 54 unmodified lines | ||
| 55 | 55 | .remove = restart_poweroff_remove, |
| 56 | 56 | .driver = { |
| 57 | 57 | .name = "poweroff-restart", |
| 58 | − .owner = THIS_MODULE, | |
| 59 | 58 | .of_match_table = of_restart_poweroff_match, |
| 60 | 59 | }, |
| 61 | 60 | }; |
| @@ -281,7 +281,6 @@ static struct platform_driver rx51_battery_driver = { · 280 unmodified lines | ||
| 281 | 281 | .remove = rx51_battery_remove, |
| 282 | 282 | .driver = { |
| 283 | 283 | .name = "rx51-battery", |
| 284 | − .owner = THIS_MODULE, | |
| 285 | 284 | .of_match_table = of_match_ptr(n900_battery_of_match), |
| 286 | 285 | }, |
| 287 | 286 | }; |
| @@ -353,7 +353,6 @@ static struct platform_driver tps65090_charger_driver = { · 352 unmodified lines | ||
| 353 | 353 | .driver = { |
| 354 | 354 | .name = "tps65090-charger", |
| 355 | 355 | .of_match_table = of_tps65090_charger_match, |
| 356 | − .owner = THIS_MODULE, | |
| 357 | 356 | }, |
| 358 | 357 | .probe = tps65090_charger_probe, |
| 359 | 358 | .remove = tps65090_charger_remove, |
| @@ -716,7 +716,6 @@ MODULE_DEVICE_TABLE(of, twl_bci_of_match); · 715 unmodified lines | ||
| 716 | 716 | static struct platform_driver twl4030_bci_driver = { |
| 717 | 717 | .driver = { |
| 718 | 718 | .name = "twl4030_bci", |
| 719 | − .owner = THIS_MODULE, | |
| 720 | 719 | .of_match_table = of_match_ptr(twl_bci_of_match), |
| 721 | 720 | }, |
| 722 | 721 | .remove = __exit_p(twl4030_bci_remove), |
| @@ -281,7 +281,6 @@ static int wm97xx_bat_remove(struct platform_device *dev) · 280 unmodified lines | ||
| 281 | 281 | static struct platform_driver wm97xx_bat_driver = { |
| 282 | 282 | .driver = { |
| 283 | 283 | .name = "wm97xx-battery", |
| 284 | − .owner = THIS_MODULE, | |
| 285 | 284 | #ifdef CONFIG_PM |
| 286 | 285 | .pm = &wm97xx_bat_pm_ops, |
| 287 | 286 | #endif |
| @@ -200,7 +200,6 @@ static struct platform_driver pps_gpio_driver = { · 199 unmodified lines | ||
| 200 | 200 | .remove = pps_gpio_remove, |
| 201 | 201 | .driver = { |
| 202 | 202 | .name = PPS_GPIO_NAME, |
| 203 | − .owner = THIS_MODULE, | |
| 204 | 203 | .of_match_table = pps_gpio_dt_ids, |
| 205 | 204 | }, |
| 206 | 205 | }; |
| @@ -131,7 +131,6 @@ static int ab8500_pwm_remove(struct platform_device *pdev) · 130 unmodified lines | ||
| 131 | 131 | static struct platform_driver ab8500_pwm_driver = { |
| 132 | 132 | .driver = { |
| 133 | 133 | .name = "ab8500-pwm", |
| 134 | − .owner = THIS_MODULE, | |
| 135 | 134 | }, |
| 136 | 135 | .probe = ab8500_pwm_probe, |
| 137 | 136 | .remove = ab8500_pwm_remove, |
| @@ -436,7 +436,6 @@ MODULE_DEVICE_TABLE(of, atmel_tcb_pwm_dt_ids); · 435 unmodified lines | ||
| 436 | 436 | static struct platform_driver atmel_tcb_pwm_driver = { |
| 437 | 437 | .driver = { |
| 438 | 438 | .name = "atmel-tcb-pwm", |
| 439 | − .owner = THIS_MODULE, | |
| 440 | 439 | .of_match_table = atmel_tcb_pwm_dt_ids, |
| 441 | 440 | }, |
| 442 | 441 | .probe = atmel_tcb_pwm_probe, |
| @@ -149,7 +149,6 @@ static int bfin_pwm_remove(struct platform_device *pdev) · 148 unmodified lines | ||
| 149 | 149 | static struct platform_driver bfin_pwm_driver = { |
| 150 | 150 | .driver = { |
| 151 | 151 | .name = "bfin-pwm", |
| 152 | − .owner = THIS_MODULE, | |
| 153 | 152 | }, |
| 154 | 153 | .probe = bfin_pwm_probe, |
| 155 | 154 | .remove = bfin_pwm_remove, |
| @@ -163,7 +163,6 @@ MODULE_DEVICE_TABLE(of, clps711x_pwm_dt_ids); · 162 unmodified lines | ||
| 163 | 163 | static struct platform_driver clps711x_pwm_driver = { |
| 164 | 164 | .driver = { |
| 165 | 165 | .name = "clps711x-pwm", |
| 166 | − .owner = THIS_MODULE, | |
| 167 | 166 | .of_match_table = of_match_ptr(clps711x_pwm_dt_ids), |
| 168 | 167 | }, |
| 169 | 168 | .probe = clps711x_pwm_probe, |
| @@ -336,7 +336,6 @@ static int imx_pwm_remove(struct platform_device *pdev) · 335 unmodified lines | ||
| 336 | 336 | static struct platform_driver imx_pwm_driver = { |
| 337 | 337 | .driver = { |
| 338 | 338 | .name = "imx-pwm", |
| 339 | − .owner = THIS_MODULE, | |
| 340 | 339 | .of_match_table = imx_pwm_dt_ids, |
| 341 | 340 | }, |
| 342 | 341 | .probe = imx_pwm_probe, |
| @@ -194,7 +194,6 @@ static int jz4740_pwm_remove(struct platform_device *pdev) · 193 unmodified lines | ||
| 194 | 194 | static struct platform_driver jz4740_pwm_driver = { |
| 195 | 195 | .driver = { |
| 196 | 196 | .name = "jz4740-pwm", |
| 197 | − .owner = THIS_MODULE, | |
| 198 | 197 | }, |
| 199 | 198 | .probe = jz4740_pwm_probe, |
| 200 | 199 | .remove = jz4740_pwm_remove, |
| @@ -305,7 +305,6 @@ static struct platform_driver lp3943_pwm_driver = { · 304 unmodified lines | ||
| 305 | 305 | .remove = lp3943_pwm_remove, |
| 306 | 306 | .driver = { |
| 307 | 307 | .name = "lp3943-pwm", |
| 308 | − .owner = THIS_MODULE, | |
| 309 | 308 | .of_match_table = of_match_ptr(lp3943_pwm_of_match), |
| 310 | 309 | }, |
| 311 | 310 | }; |
| @@ -168,7 +168,6 @@ MODULE_DEVICE_TABLE(of, lpc32xx_pwm_dt_ids); · 167 unmodified lines | ||
| 168 | 168 | static struct platform_driver lpc32xx_pwm_driver = { |
| 169 | 169 | .driver = { |
| 170 | 170 | .name = "lpc32xx-pwm", |
| 171 | − .owner = THIS_MODULE, | |
| 172 | 171 | .of_match_table = lpc32xx_pwm_dt_ids, |
| 173 | 172 | }, |
| 174 | 173 | .probe = lpc32xx_pwm_probe, |
| @@ -189,7 +189,6 @@ MODULE_DEVICE_TABLE(of, mxs_pwm_dt_ids); · 188 unmodified lines | ||
| 189 | 189 | static struct platform_driver mxs_pwm_driver = { |
| 190 | 190 | .driver = { |
| 191 | 191 | .name = "mxs-pwm", |
| 192 | − .owner = THIS_MODULE, | |
| 193 | 192 | .of_match_table = mxs_pwm_dt_ids, |
| 194 | 193 | }, |
| 195 | 194 | .probe = mxs_pwm_probe, |
| @@ -146,7 +146,6 @@ static int pwm_remove(struct platform_device *pdev) · 145 unmodified lines | ||
| 146 | 146 | static struct platform_driver puv3_pwm_driver = { |
| 147 | 147 | .driver = { |
| 148 | 148 | .name = "PKUnity-v3-PWM", |
| 149 | − .owner = THIS_MODULE, | |
| 150 | 149 | }, |
| 151 | 150 | .probe = pwm_probe, |
| 152 | 151 | .remove = pwm_remove, |
| @@ -225,7 +225,6 @@ static int pwm_remove(struct platform_device *pdev) · 224 unmodified lines | ||
| 225 | 225 | static struct platform_driver pwm_driver = { |
| 226 | 226 | .driver = { |
| 227 | 227 | .name = "pxa25x-pwm", |
| 228 | − .owner = THIS_MODULE, | |
| 229 | 228 | .of_match_table = pwm_of_match, |
| 230 | 229 | }, |
| 231 | 230 | .probe = pwm_probe, |
| @@ -468,7 +468,6 @@ static struct platform_driver tpu_driver = { · 467 unmodified lines | ||
| 468 | 468 | .remove = tpu_remove, |
| 469 | 469 | .driver = { |
| 470 | 470 | .name = "renesas-tpu-pwm", |
| 471 | − .owner = THIS_MODULE, | |
| 472 | 471 | .of_match_table = of_match_ptr(tpu_of_table), |
| 473 | 472 | } |
| 474 | 473 | }; |
| @@ -601,7 +601,6 @@ static SIMPLE_DEV_PM_OPS(pwm_samsung_pm_ops, pwm_samsung_suspend, · 600 unmodified lines | ||
| 601 | 601 | static struct platform_driver pwm_samsung_driver = { |
| 602 | 602 | .driver = { |
| 603 | 603 | .name = "samsung-pwm", |
| 604 | − .owner = THIS_MODULE, | |
| 605 | 604 | .pm = &pwm_samsung_pm_ops, |
| 606 | 605 | .of_match_table = of_match_ptr(samsung_pwm_matches), |
| 607 | 606 | }, |
| @@ -252,7 +252,6 @@ MODULE_DEVICE_TABLE(of, spear_pwm_of_match); · 251 unmodified lines | ||
| 252 | 252 | static struct platform_driver spear_pwm_driver = { |
| 253 | 253 | .driver = { |
| 254 | 254 | .name = "spear-pwm", |
| 255 | − .owner = THIS_MODULE, | |
| 256 | 255 | .of_match_table = spear_pwm_of_match, |
| 257 | 256 | }, |
| 258 | 257 | .probe = spear_pwm_probe, |
| @@ -237,7 +237,6 @@ MODULE_DEVICE_TABLE(of, tegra_pwm_of_match); · 236 unmodified lines | ||
| 237 | 237 | static struct platform_driver tegra_pwm_driver = { |
| 238 | 238 | .driver = { |
| 239 | 239 | .name = "tegra-pwm", |
| 240 | − .owner = THIS_MODULE, | |
| 241 | 240 | .of_match_table = tegra_pwm_of_match, |
| 242 | 241 | }, |
| 243 | 242 | .probe = tegra_pwm_probe, |
| @@ -331,7 +331,6 @@ static SIMPLE_DEV_PM_OPS(ecap_pwm_pm_ops, ecap_pwm_suspend, ecap_pwm_resume); · 330 unmodified lines | ||
| 331 | 331 | static struct platform_driver ecap_pwm_driver = { |
| 332 | 332 | .driver = { |
| 333 | 333 | .name = "ecap", |
| 334 | − .owner = THIS_MODULE, | |
| 335 | 334 | .of_match_table = ecap_of_match, |
| 336 | 335 | .pm = &ecap_pwm_pm_ops, |
| 337 | 336 | }, |
| @@ -599,7 +599,6 @@ static SIMPLE_DEV_PM_OPS(ehrpwm_pwm_pm_ops, ehrpwm_pwm_suspend, · 598 unmodified lines | ||
| 599 | 599 | static struct platform_driver ehrpwm_pwm_driver = { |
| 600 | 600 | .driver = { |
| 601 | 601 | .name = "ehrpwm", |
| 602 | − .owner = THIS_MODULE, | |
| 603 | 602 | .of_match_table = ehrpwm_of_match, |
| 604 | 603 | .pm = &ehrpwm_pwm_pm_ops, |
| 605 | 604 | }, |
| @@ -119,7 +119,6 @@ static SIMPLE_DEV_PM_OPS(pwmss_pm_ops, pwmss_suspend, pwmss_resume); · 118 unmodified lines | ||
| 119 | 119 | static struct platform_driver pwmss_driver = { |
| 120 | 120 | .driver = { |
| 121 | 121 | .name = "pwmss", |
| 122 | − .owner = THIS_MODULE, | |
| 123 | 122 | .pm = &pwmss_pm_ops, |
| 124 | 123 | .of_match_table = pwmss_of_match, |
| 125 | 124 | }, |
| @@ -266,7 +266,6 @@ static struct platform_driver vt8500_pwm_driver = { · 265 unmodified lines | ||
| 266 | 266 | .remove = vt8500_pwm_remove, |
| 267 | 267 | .driver = { |
| 268 | 268 | .name = "vt8500-pwm", |
| 269 | − .owner = THIS_MODULE, | |
| 270 | 269 | .of_match_table = vt8500_pwm_dt_ids, |
| 271 | 270 | }, |
| 272 | 271 | }; |
| @@ -362,7 +362,6 @@ static int pm800_regulator_remove(struct platform_device *pdev) · 361 unmodified lines | ||
| 362 | 362 | static struct platform_driver pm800_regulator_driver = { |
| 363 | 363 | .driver = { |
| 364 | 364 | .name = "88pm80x-regulator", |
| 365 | − .owner = THIS_MODULE, | |
| 366 | 365 | }, |
| 367 | 366 | .probe = pm800_regulator_probe, |
| 368 | 367 | .remove = pm800_regulator_remove, |
| @@ -419,7 +419,6 @@ MODULE_DEVICE_TABLE(platform, pm8607_regulator_driver_ids); · 418 unmodified lines | ||
| 419 | 419 | static struct platform_driver pm8607_regulator_driver = { |
| 420 | 420 | .driver = { |
| 421 | 421 | .name = "88pm860x-regulator", |
| 422 | − .owner = THIS_MODULE, | |
| 423 | 422 | }, |
| 424 | 423 | .probe = pm8607_regulator_probe, |
| 425 | 424 | .id_table = pm8607_regulator_driver_ids, |
| @@ -191,7 +191,6 @@ static int aat2870_regulator_probe(struct platform_device *pdev) · 190 unmodified lines | ||
| 191 | 191 | static struct platform_driver aat2870_regulator_driver = { |
| 192 | 192 | .driver = { |
| 193 | 193 | .name = "aat2870-regulator", |
| 194 | − .owner = THIS_MODULE, | |
| 195 | 194 | }, |
| 196 | 195 | .probe = aat2870_regulator_probe, |
| 197 | 196 | }; |
| @@ -721,7 +721,6 @@ static int ab3100_regulators_probe(struct platform_device *pdev) · 720 unmodified lines | ||
| 721 | 721 | static struct platform_driver ab3100_regulators_driver = { |
| 722 | 722 | .driver = { |
| 723 | 723 | .name = "ab3100-regulators", |
| 724 | − .owner = THIS_MODULE, | |
| 725 | 724 | }, |
| 726 | 725 | .probe = ab3100_regulators_probe, |
| 727 | 726 | .remove = ab3100_regulators_remove, |
| @@ -433,7 +433,6 @@ static struct platform_driver ab8500_ext_regulator_driver = { · 432 unmodified lines | ||
| 433 | 433 | .probe = ab8500_ext_regulator_probe, |
| 434 | 434 | .driver = { |
| 435 | 435 | .name = "ab8500-ext-regulator", |
| 436 | − .owner = THIS_MODULE, | |
| 437 | 436 | }, |
| 438 | 437 | }; |
| 439 | 438 | |
| @@ -3075,7 +3075,6 @@ static struct platform_driver ab8500_regulator_driver = { · 3074 unmodified lines | ||
| 3075 | 3075 | .probe = ab8500_regulator_probe, |
| 3076 | 3076 | .driver = { |
| 3077 | 3077 | .name = "ab8500-regulator", |
| 3078 | − .owner = THIS_MODULE, | |
| 3079 | 3078 | }, |
| 3080 | 3079 | }; |
| 3081 | 3080 | |
| @@ -322,7 +322,6 @@ static const struct of_device_id of_anatop_regulator_match_tbl[] = { · 321 unmodified lines | ||
| 322 | 322 | static struct platform_driver anatop_regulator_driver = { |
| 323 | 323 | .driver = { |
| 324 | 324 | .name = "anatop_regulator", |
| 325 | − .owner = THIS_MODULE, | |
| 326 | 325 | .of_match_table = of_anatop_regulator_match_tbl, |
| 327 | 326 | }, |
| 328 | 327 | .probe = anatop_regulator_probe, |
| @@ -300,7 +300,6 @@ static struct platform_driver arizona_ldo1_driver = { · 299 unmodified lines | ||
| 300 | 300 | .probe = arizona_ldo1_probe, |
| 301 | 301 | .driver = { |
| 302 | 302 | .name = "arizona-ldo1", |
| 303 | − .owner = THIS_MODULE, | |
| 304 | 303 | }, |
| 305 | 304 | }; |
| 306 | 305 | |
| @@ -302,7 +302,6 @@ static struct platform_driver arizona_micsupp_driver = { · 301 unmodified lines | ||
| 302 | 302 | .probe = arizona_micsupp_probe, |
| 303 | 303 | .driver = { |
| 304 | 304 | .name = "arizona-micsupp", |
| 305 | − .owner = THIS_MODULE, | |
| 306 | 305 | }, |
| 307 | 306 | }; |
| 308 | 307 | |
| @@ -267,7 +267,6 @@ static int as3711_regulator_probe(struct platform_device *pdev) · 266 unmodified lines | ||
| 267 | 267 | static struct platform_driver as3711_regulator_driver = { |
| 268 | 268 | .driver = { |
| 269 | 269 | .name = "as3711-regulator", |
| 270 | − .owner = THIS_MODULE, | |
| 271 | 270 | }, |
| 272 | 271 | .probe = as3711_regulator_probe, |
| 273 | 272 | }; |
| @@ -916,7 +916,6 @@ MODULE_DEVICE_TABLE(of, of_as3722_regulator_match); · 915 unmodified lines | ||
| 916 | 916 | static struct platform_driver as3722_regulator_driver = { |
| 917 | 917 | .driver = { |
| 918 | 918 | .name = "as3722-regulator", |
| 919 | − .owner = THIS_MODULE, | |
| 920 | 919 | .of_match_table = of_as3722_regulator_match, |
| 921 | 920 | }, |
| 922 | 921 | .probe = as3722_regulator_probe, |
| @@ -275,7 +275,6 @@ static struct platform_driver axp20x_regulator_driver = { · 274 unmodified lines | ||
| 275 | 275 | .probe = axp20x_regulator_probe, |
| 276 | 276 | .driver = { |
| 277 | 277 | .name = "axp20x-regulator", |
| 278 | − .owner = THIS_MODULE, | |
| 279 | 278 | }, |
| 280 | 279 | }; |
| 281 | 280 | |
| @@ -453,7 +453,6 @@ static int bcm590xx_probe(struct platform_device *pdev) · 452 unmodified lines | ||
| 453 | 453 | static struct platform_driver bcm590xx_regulator_driver = { |
| 454 | 454 | .driver = { |
| 455 | 455 | .name = "bcm590xx-vregs", |
| 456 | − .owner = THIS_MODULE, | |
| 457 | 456 | }, |
| 458 | 457 | .probe = bcm590xx_probe, |
| 459 | 458 | }; |
| @@ -475,7 +475,6 @@ static int da903x_regulator_probe(struct platform_device *pdev) · 474 unmodified lines | ||
| 475 | 475 | static struct platform_driver da903x_regulator_driver = { |
| 476 | 476 | .driver = { |
| 477 | 477 | .name = "da903x-regulator", |
| 478 | − .owner = THIS_MODULE, | |
| 479 | 478 | }, |
| 480 | 479 | .probe = da903x_regulator_probe, |
| 481 | 480 | }; |
| @@ -464,7 +464,6 @@ static struct platform_driver da9052_regulator_driver = { · 463 unmodified lines | ||
| 464 | 464 | .probe = da9052_regulator_probe, |
| 465 | 465 | .driver = { |
| 466 | 466 | .name = "da9052-regulator", |
| 467 | − .owner = THIS_MODULE, | |
| 468 | 467 | }, |
| 469 | 468 | }; |
| 470 | 469 | |
| @@ -665,7 +665,6 @@ static struct platform_driver da9055_regulator_driver = { · 664 unmodified lines | ||
| 665 | 665 | .probe = da9055_regulator_probe, |
| 666 | 666 | .driver = { |
| 667 | 667 | .name = "da9055-regulator", |
| 668 | − .owner = THIS_MODULE, | |
| 669 | 668 | }, |
| 670 | 669 | }; |
| 671 | 670 | |
| @@ -893,7 +893,6 @@ static int da9063_regulator_remove(struct platform_device *pdev) · 892 unmodified lines | ||
| 893 | 893 | static struct platform_driver da9063_regulator_driver = { |
| 894 | 894 | .driver = { |
| 895 | 895 | .name = DA9063_DRVNAME_REGULATORS, |
| 896 | − .owner = THIS_MODULE, | |
| 897 | 896 | }, |
| 898 | 897 | .probe = da9063_regulator_probe, |
| 899 | 898 | .remove = da9063_regulator_remove, |
| @@ -534,7 +534,6 @@ static int db8500_regulator_remove(struct platform_device *pdev) · 533 unmodified lines | ||
| 534 | 534 | static struct platform_driver db8500_regulator_driver = { |
| 535 | 535 | .driver = { |
| 536 | 536 | .name = "db8500-prcmu-regulators", |
| 537 | − .owner = THIS_MODULE, | |
| 538 | 537 | }, |
| 539 | 538 | .probe = db8500_regulator_probe, |
| 540 | 539 | .remove = db8500_regulator_remove, |
| @@ -63,7 +63,6 @@ static struct platform_driver dummy_regulator_driver = { · 62 unmodified lines | ||
| 63 | 63 | .probe = dummy_regulator_probe, |
| 64 | 64 | .driver = { |
| 65 | 65 | .name = "reg-dummy", |
| 66 | − .owner = THIS_MODULE, | |
| 67 | 66 | }, |
| 68 | 67 | }; |
| 69 | 68 | |
| @@ -213,7 +213,6 @@ static struct platform_driver regulator_fixed_voltage_driver = { · 212 unmodified lines | ||
| 213 | 213 | .probe = reg_fixed_voltage_probe, |
| 214 | 214 | .driver = { |
| 215 | 215 | .name = "reg-fixed-voltage", |
| 216 | − .owner = THIS_MODULE, | |
| 217 | 216 | .of_match_table = of_match_ptr(fixed_of_match), |
| 218 | 217 | }, |
| 219 | 218 | }; |
| @@ -401,7 +401,6 @@ static struct platform_driver gpio_regulator_driver = { · 400 unmodified lines | ||
| 401 | 401 | .remove = gpio_regulator_remove, |
| 402 | 402 | .driver = { |
| 403 | 403 | .name = "gpio-regulator", |
| 404 | − .owner = THIS_MODULE, | |
| 405 | 404 | .of_match_table = of_match_ptr(regulator_gpio_of_match), |
| 406 | 405 | }, |
| 407 | 406 | }; |
| @@ -623,7 +623,6 @@ static int hi6421_regulator_probe(struct platform_device *pdev) · 622 unmodified lines | ||
| 623 | 623 | static struct platform_driver hi6421_regulator_driver = { |
| 624 | 624 | .driver = { |
| 625 | 625 | .name = "hi6421-regulator", |
| 626 | − .owner = THIS_MODULE, | |
| 627 | 626 | }, |
| 628 | 627 | .probe = hi6421_regulator_probe, |
| 629 | 628 | }; |
| @@ -533,7 +533,6 @@ static struct platform_driver lp8788_buck_driver = { · 532 unmodified lines | ||
| 533 | 533 | .probe = lp8788_buck_probe, |
| 534 | 534 | .driver = { |
| 535 | 535 | .name = LP8788_DEV_BUCK, |
| 536 | − .owner = THIS_MODULE, | |
| 537 | 536 | }, |
| 538 | 537 | }; |
| 539 | 538 | |
| @@ -561,7 +561,6 @@ static struct platform_driver lp8788_dldo_driver = { · 560 unmodified lines | ||
| 561 | 561 | .probe = lp8788_dldo_probe, |
| 562 | 562 | .driver = { |
| 563 | 563 | .name = LP8788_DEV_DLDO, |
| 564 | − .owner = THIS_MODULE, | |
| 565 | 564 | }, |
| 566 | 565 | }; |
| 567 | 566 | |
| @@ -611,7 +610,6 @@ static struct platform_driver lp8788_aldo_driver = { · 43 unmodified lines | ||
| 611 | 610 | .probe = lp8788_aldo_probe, |
| 612 | 611 | .driver = { |
| 613 | 612 | .name = LP8788_DEV_ALDO, |
| 614 | − .owner = THIS_MODULE, | |
| 615 | 613 | }, |
| 616 | 614 | }; |
| 617 | 615 | |
| @@ -371,7 +371,6 @@ MODULE_DEVICE_TABLE(platform, max14577_regulator_id); · 370 unmodified lines | ||
| 371 | 371 | |
| 372 | 372 | static struct platform_driver max14577_regulator_driver = { |
| 373 | 373 | .driver = { |
| 374 | − .owner = THIS_MODULE, | |
| 375 | 374 | .name = "max14577-regulator", |
| 376 | 375 | }, |
| 377 | 376 | .probe = max14577_regulator_probe, |
| @@ -488,7 +488,6 @@ MODULE_DEVICE_TABLE(platform, max77686_pmic_id); · 487 unmodified lines | ||
| 488 | 488 | static struct platform_driver max77686_pmic_driver = { |
| 489 | 489 | .driver = { |
| 490 | 490 | .name = "max77686-pmic", |
| 491 | − .owner = THIS_MODULE, | |
| 492 | 491 | }, |
| 493 | 492 | .probe = max77686_pmic_probe, |
| 494 | 493 | .id_table = max77686_pmic_id, |
| @@ -267,7 +267,6 @@ MODULE_DEVICE_TABLE(platform, max77693_pmic_id); · 266 unmodified lines | ||
| 267 | 267 | static struct platform_driver max77693_pmic_driver = { |
| 268 | 268 | .driver = { |
| 269 | 269 | .name = "max77693-pmic", |
| 270 | − .owner = THIS_MODULE, | |
| 271 | 270 | }, |
| 272 | 271 | .probe = max77693_pmic_probe, |
| 273 | 272 | .id_table = max77693_pmic_id, |
| @@ -597,7 +597,6 @@ MODULE_DEVICE_TABLE(platform, max77802_pmic_id); · 596 unmodified lines | ||
| 597 | 597 | static struct platform_driver max77802_pmic_driver = { |
| 598 | 598 | .driver = { |
| 599 | 599 | .name = "max77802-pmic", |
| 600 | − .owner = THIS_MODULE, | |
| 601 | 600 | }, |
| 602 | 601 | .probe = max77802_pmic_probe, |
| 603 | 602 | .id_table = max77802_pmic_id, |
| @@ -366,7 +366,6 @@ static int max8907_regulator_probe(struct platform_device *pdev) · 365 unmodified lines | ||
| 366 | 366 | static struct platform_driver max8907_regulator_driver = { |
| 367 | 367 | .driver = { |
| 368 | 368 | .name = "max8907-regulator", |
| 369 | − .owner = THIS_MODULE, | |
| 370 | 369 | }, |
| 371 | 370 | .probe = max8907_regulator_probe, |
| 372 | 371 | }; |
| @@ -324,7 +324,6 @@ static int max8925_regulator_probe(struct platform_device *pdev) · 323 unmodified lines | ||
| 324 | 324 | static struct platform_driver max8925_regulator_driver = { |
| 325 | 325 | .driver = { |
| 326 | 326 | .name = "max8925-regulator", |
| 327 | − .owner = THIS_MODULE, | |
| 328 | 327 | }, |
| 329 | 328 | .probe = max8925_regulator_probe, |
| 330 | 329 | }; |
| @@ -1219,7 +1219,6 @@ MODULE_DEVICE_TABLE(platform, max8997_pmic_id); · 1218 unmodified lines | ||
| 1219 | 1219 | static struct platform_driver max8997_pmic_driver = { |
| 1220 | 1220 | .driver = { |
| 1221 | 1221 | .name = "max8997-pmic", |
| 1222 | − .owner = THIS_MODULE, | |
| 1223 | 1222 | }, |
| 1224 | 1223 | .probe = max8997_pmic_probe, |
| 1225 | 1224 | .id_table = max8997_pmic_id, |
| @@ -895,7 +895,6 @@ MODULE_DEVICE_TABLE(platform, max8998_pmic_id); · 894 unmodified lines | ||
| 895 | 895 | static struct platform_driver max8998_pmic_driver = { |
| 896 | 896 | .driver = { |
| 897 | 897 | .name = "max8998-pmic", |
| 898 | − .owner = THIS_MODULE, | |
| 899 | 898 | }, |
| 900 | 899 | .probe = max8998_pmic_probe, |
| 901 | 900 | .id_table = max8998_pmic_id, |
| @@ -459,7 +459,6 @@ static int mc13783_regulator_probe(struct platform_device *pdev) · 458 unmodified lines | ||
| 459 | 459 | static struct platform_driver mc13783_regulator_driver = { |
| 460 | 460 | .driver = { |
| 461 | 461 | .name = "mc13783-regulator", |
| 462 | − .owner = THIS_MODULE, | |
| 463 | 462 | }, |
| 464 | 463 | .probe = mc13783_regulator_probe, |
| 465 | 464 | }; |
| @@ -633,7 +633,6 @@ err_unlock: · 632 unmodified lines | ||
| 633 | 633 | static struct platform_driver mc13892_regulator_driver = { |
| 634 | 634 | .driver = { |
| 635 | 635 | .name = "mc13892-regulator", |
| 636 | − .owner = THIS_MODULE, | |
| 637 | 636 | }, |
| 638 | 637 | .probe = mc13892_regulator_probe, |
| 639 | 638 | }; |
| @@ -1610,7 +1610,6 @@ static struct platform_driver palmas_driver = { · 1609 unmodified lines | ||
| 1610 | 1610 | .driver = { |
| 1611 | 1611 | .name = "palmas-pmic", |
| 1612 | 1612 | .of_match_table = of_palmas_match_tbl, |
| 1613 | − .owner = THIS_MODULE, | |
| 1614 | 1613 | }, |
| 1615 | 1614 | .probe = palmas_regulators_probe, |
| 1616 | 1615 | }; |
| @@ -185,7 +185,6 @@ static struct platform_driver pbias_regulator_driver = { · 184 unmodified lines | ||
| 185 | 185 | .probe = pbias_regulator_probe, |
| 186 | 186 | .driver = { |
| 187 | 187 | .name = "pbias-regulator", |
| 188 | − .owner = THIS_MODULE, | |
| 189 | 188 | .of_match_table = of_match_ptr(pbias_of_match), |
| 190 | 189 | }, |
| 191 | 190 | }; |
| @@ -259,7 +259,6 @@ static int pcap_regulator_probe(struct platform_device *pdev) · 258 unmodified lines | ||
| 259 | 259 | static struct platform_driver pcap_regulator_driver = { |
| 260 | 260 | .driver = { |
| 261 | 261 | .name = "pcap-regulator", |
| 262 | − .owner = THIS_MODULE, | |
| 263 | 262 | }, |
| 264 | 263 | .probe = pcap_regulator_probe, |
| 265 | 264 | }; |
| @@ -184,7 +184,6 @@ MODULE_DEVICE_TABLE(of, pwm_of_match); · 183 unmodified lines | ||
| 184 | 184 | static struct platform_driver pwm_regulator_driver = { |
| 185 | 185 | .driver = { |
| 186 | 186 | .name = "pwm-regulator", |
| 187 | − .owner = THIS_MODULE, | |
| 188 | 187 | .of_match_table = of_match_ptr(pwm_of_match), |
| 189 | 188 | }, |
| 190 | 189 | .probe = pwm_regulator_probe, |
| @@ -797,7 +797,6 @@ static struct platform_driver rpm_reg_driver = { · 796 unmodified lines | ||
| 797 | 797 | .probe = rpm_reg_probe, |
| 798 | 798 | .driver = { |
| 799 | 799 | .name = "qcom_rpm_reg", |
| 800 | − .owner = THIS_MODULE, | |
| 801 | 800 | .of_match_table = of_match_ptr(rpm_of_match), |
| 802 | 801 | }, |
| 803 | 802 | }; |
| @@ -179,7 +179,6 @@ skip_ext_pwr_config: · 178 unmodified lines | ||
| 179 | 179 | static struct platform_driver rc5t583_regulator_driver = { |
| 180 | 180 | .driver = { |
| 181 | 181 | .name = "rc5t583-regulator", |
| 182 | − .owner = THIS_MODULE, | |
| 183 | 182 | }, |
| 184 | 183 | .probe = rc5t583_regulator_probe, |
| 185 | 184 | }; |
| @@ -419,7 +419,6 @@ static struct platform_driver rk808_regulator_driver = { · 418 unmodified lines | ||
| 419 | 419 | .probe = rk808_regulator_probe, |
| 420 | 420 | .driver = { |
| 421 | 421 | .name = "rk808-regulator", |
| 422 | − .owner = THIS_MODULE, | |
| 423 | 422 | }, |
| 424 | 423 | }; |
| 425 | 424 | |
| @@ -405,7 +405,6 @@ MODULE_DEVICE_TABLE(platform, s2mpa01_pmic_id); · 404 unmodified lines | ||
| 405 | 405 | static struct platform_driver s2mpa01_pmic_driver = { |
| 406 | 406 | .driver = { |
| 407 | 407 | .name = "s2mpa01-pmic", |
| 408 | − .owner = THIS_MODULE, | |
| 409 | 408 | }, |
| 410 | 409 | .probe = s2mpa01_pmic_probe, |
| 411 | 410 | .id_table = s2mpa01_pmic_id, |
| @@ -1033,7 +1033,6 @@ MODULE_DEVICE_TABLE(platform, s2mps11_pmic_id); · 1032 unmodified lines | ||
| 1033 | 1033 | static struct platform_driver s2mps11_pmic_driver = { |
| 1034 | 1034 | .driver = { |
| 1035 | 1035 | .name = "s2mps11-pmic", |
| 1036 | − .owner = THIS_MODULE, | |
| 1037 | 1036 | }, |
| 1038 | 1037 | .probe = s2mps11_pmic_probe, |
| 1039 | 1038 | .id_table = s2mps11_pmic_id, |
| @@ -988,7 +988,6 @@ MODULE_DEVICE_TABLE(platform, s5m8767_pmic_id); · 987 unmodified lines | ||
| 988 | 988 | static struct platform_driver s5m8767_pmic_driver = { |
| 989 | 989 | .driver = { |
| 990 | 990 | .name = "s5m8767-pmic", |
| 991 | − .owner = THIS_MODULE, | |
| 992 | 991 | }, |
| 993 | 992 | .probe = s5m8767_pmic_probe, |
| 994 | 993 | .id_table = s5m8767_pmic_id, |
| @@ -95,7 +95,6 @@ static const struct of_device_id stw481x_vmmc_match[] = { · 94 unmodified lines | ||
| 95 | 95 | static struct platform_driver stw481x_vmmc_regulator_driver = { |
| 96 | 96 | .driver = { |
| 97 | 97 | .name = "stw481x-vmmc-regulator", |
| 98 | − .owner = THIS_MODULE, | |
| 99 | 98 | .of_match_table = stw481x_vmmc_match, |
| 100 | 99 | }, |
| 101 | 100 | .probe = stw481x_vmmc_regulator_probe, |
| @@ -892,7 +892,6 @@ static struct platform_driver ti_abb_driver = { · 891 unmodified lines | ||
| 892 | 892 | .probe = ti_abb_probe, |
| 893 | 893 | .driver = { |
| 894 | 894 | .name = "ti_abb", |
| 895 | − .owner = THIS_MODULE, | |
| 896 | 895 | .of_match_table = of_match_ptr(ti_abb_of_match), |
| 897 | 896 | }, |
| 898 | 897 | }; |
| @@ -163,7 +163,6 @@ static int tps6105x_regulator_probe(struct platform_device *pdev) · 162 unmodified lines | ||
| 163 | 163 | static struct platform_driver tps6105x_regulator_driver = { |
| 164 | 164 | .driver = { |
| 165 | 165 | .name = "tps6105x-regulator", |
| 166 | − .owner = THIS_MODULE, | |
| 167 | 166 | }, |
| 168 | 167 | .probe = tps6105x_regulator_probe, |
| 169 | 168 | }; |
| @@ -519,7 +519,6 @@ static int tps6507x_pmic_probe(struct platform_device *pdev) · 518 unmodified lines | ||
| 519 | 519 | static struct platform_driver tps6507x_pmic_driver = { |
| 520 | 520 | .driver = { |
| 521 | 521 | .name = "tps6507x-pmic", |
| 522 | − .owner = THIS_MODULE, | |
| 523 | 522 | }, |
| 524 | 523 | .probe = tps6507x_pmic_probe, |
| 525 | 524 | }; |
| @@ -511,7 +511,6 @@ static int tps65090_regulator_probe(struct platform_device *pdev) · 510 unmodified lines | ||
| 511 | 511 | static struct platform_driver tps65090_regulator_driver = { |
| 512 | 512 | .driver = { |
| 513 | 513 | .name = "tps65090-pmic", |
| 514 | − .owner = THIS_MODULE, | |
| 515 | 514 | }, |
| 516 | 515 | .probe = tps65090_regulator_probe, |
| 517 | 516 | }; |
| @@ -256,7 +256,6 @@ static int tps65218_regulator_probe(struct platform_device *pdev) · 255 unmodified lines | ||
| 256 | 256 | static struct platform_driver tps65218_regulator_driver = { |
| 257 | 257 | .driver = { |
| 258 | 258 | .name = "tps65218-pmic", |
| 259 | − .owner = THIS_MODULE, | |
| 260 | 259 | .of_match_table = tps65218_of_match, |
| 261 | 260 | }, |
| 262 | 261 | .probe = tps65218_regulator_probe, |
| @@ -522,7 +522,6 @@ static int tps6586x_regulator_probe(struct platform_device *pdev) · 521 unmodified lines | ||
| 522 | 522 | static struct platform_driver tps6586x_regulator_driver = { |
| 523 | 523 | .driver = { |
| 524 | 524 | .name = "tps6586x-regulator", |
| 525 | − .owner = THIS_MODULE, | |
| 526 | 525 | }, |
| 527 | 526 | .probe = tps6586x_regulator_probe, |
| 528 | 527 | }; |
| @@ -1245,7 +1245,6 @@ static void tps65910_shutdown(struct platform_device *pdev) · 1244 unmodified lines | ||
| 1245 | 1245 | static struct platform_driver tps65910_driver = { |
| 1246 | 1246 | .driver = { |
| 1247 | 1247 | .name = "tps65910-pmic", |
| 1248 | − .owner = THIS_MODULE, | |
| 1249 | 1248 | }, |
| 1250 | 1249 | .probe = tps65910_probe, |
| 1251 | 1250 | .shutdown = tps65910_shutdown, |
| @@ -519,7 +519,6 @@ static int tps65912_probe(struct platform_device *pdev) · 518 unmodified lines | ||
| 519 | 519 | static struct platform_driver tps65912_driver = { |
| 520 | 520 | .driver = { |
| 521 | 521 | .name = "tps65912-pmic", |
| 522 | − .owner = THIS_MODULE, | |
| 523 | 522 | }, |
| 524 | 523 | .probe = tps65912_probe, |
| 525 | 524 | }; |
| @@ -746,7 +746,6 @@ static int tps80031_regulator_probe(struct platform_device *pdev) · 745 unmodified lines | ||
| 746 | 746 | static struct platform_driver tps80031_regulator_driver = { |
| 747 | 747 | .driver = { |
| 748 | 748 | .name = "tps80031-pmic", |
| 749 | − .owner = THIS_MODULE, | |
| 750 | 749 | }, |
| 751 | 750 | .probe = tps80031_regulator_probe, |
| 752 | 751 | }; |
| @@ -1221,7 +1221,6 @@ static struct platform_driver twlreg_driver = { · 1220 unmodified lines | ||
| 1221 | 1221 | */ |
| 1222 | 1222 | .driver = { |
| 1223 | 1223 | .name = "twl_reg", |
| 1224 | − .owner = THIS_MODULE, | |
| 1225 | 1224 | .of_match_table = of_match_ptr(twl_of_match), |
| 1226 | 1225 | }, |
| 1227 | 1226 | }; |
| @@ -108,7 +108,6 @@ static struct platform_driver vexpress_regulator_driver = { · 107 unmodified lines | ||
| 108 | 108 | .probe = vexpress_regulator_probe, |
| 109 | 109 | .driver = { |
| 110 | 110 | .name = DRVNAME, |
| 111 | − .owner = THIS_MODULE, | |
| 112 | 111 | .of_match_table = vexpress_regulator_of_match, |
| 113 | 112 | }, |
| 114 | 113 | }; |
| @@ -338,7 +338,6 @@ static struct platform_driver regulator_virtual_consumer_driver = { · 337 unmodified lines | ||
| 338 | 338 | .remove = regulator_virtual_remove, |
| 339 | 339 | .driver = { |
| 340 | 340 | .name = "reg-virt-consumer", |
| 341 | − .owner = THIS_MODULE, | |
| 342 | 341 | }, |
| 343 | 342 | }; |
| 344 | 343 | |
| @@ -562,7 +562,6 @@ static struct platform_driver wm831x_buckv_driver = { · 561 unmodified lines | ||
| 562 | 562 | .probe = wm831x_buckv_probe, |
| 563 | 563 | .driver = { |
| 564 | 564 | .name = "wm831x-buckv", |
| 565 | − .owner = THIS_MODULE, | |
| 566 | 565 | }, |
| 567 | 566 | }; |
| 568 | 567 | |
| @@ -689,7 +688,6 @@ static struct platform_driver wm831x_buckp_driver = { · 120 unmodified lines | ||
| 689 | 688 | .probe = wm831x_buckp_probe, |
| 690 | 689 | .driver = { |
| 691 | 690 | .name = "wm831x-buckp", |
| 692 | − .owner = THIS_MODULE, | |
| 693 | 691 | }, |
| 694 | 692 | }; |
| 695 | 693 | |
| @@ -804,7 +802,6 @@ static struct platform_driver wm831x_boostp_driver = { · 108 unmodified lines | ||
| 804 | 802 | .probe = wm831x_boostp_probe, |
| 805 | 803 | .driver = { |
| 806 | 804 | .name = "wm831x-boostp", |
| 807 | − .owner = THIS_MODULE, | |
| 808 | 805 | }, |
| 809 | 806 | }; |
| 810 | 807 | |
| @@ -880,7 +877,6 @@ static struct platform_driver wm831x_epe_driver = { · 69 unmodified lines | ||
| 880 | 877 | .probe = wm831x_epe_probe, |
| 881 | 878 | .driver = { |
| 882 | 879 | .name = "wm831x-epe", |
| 883 | − .owner = THIS_MODULE, | |
| 884 | 880 | }, |
| 885 | 881 | }; |
| 886 | 882 | |
| @@ -224,7 +224,6 @@ static struct platform_driver wm831x_isink_driver = { · 223 unmodified lines | ||
| 224 | 224 | .probe = wm831x_isink_probe, |
| 225 | 225 | .driver = { |
| 226 | 226 | .name = "wm831x-isink", |
| 227 | − .owner = THIS_MODULE, | |
| 228 | 227 | }, |
| 229 | 228 | }; |
| 230 | 229 | |
| @@ -307,7 +307,6 @@ static struct platform_driver wm831x_gp_ldo_driver = { · 306 unmodified lines | ||
| 307 | 307 | .probe = wm831x_gp_ldo_probe, |
| 308 | 308 | .driver = { |
| 309 | 309 | .name = "wm831x-ldo", |
| 310 | − .owner = THIS_MODULE, | |
| 311 | 310 | }, |
| 312 | 311 | }; |
| 313 | 312 | |
| @@ -516,7 +515,6 @@ static struct platform_driver wm831x_aldo_driver = { · 202 unmodified lines | ||
| 516 | 515 | .probe = wm831x_aldo_probe, |
| 517 | 516 | .driver = { |
| 518 | 517 | .name = "wm831x-aldo", |
| 519 | − .owner = THIS_MODULE, | |
| 520 | 518 | }, |
| 521 | 519 | }; |
| 522 | 520 | |
| @@ -650,7 +648,6 @@ static struct platform_driver wm831x_alive_ldo_driver = { · 127 unmodified lines | ||
| 650 | 648 | .probe = wm831x_alive_ldo_probe, |
| 651 | 649 | .driver = { |
| 652 | 650 | .name = "wm831x-alive-ldo", |
| 653 | − .owner = THIS_MODULE, | |
| 654 | 651 | }, |
| 655 | 652 | }; |
| 656 | 653 | |
| @@ -187,7 +187,6 @@ static struct platform_driver wm8994_ldo_driver = { · 186 unmodified lines | ||
| 187 | 187 | .probe = wm8994_ldo_probe, |
| 188 | 188 | .driver = { |
| 189 | 189 | .name = "wm8994-ldo", |
| 190 | − .owner = THIS_MODULE, | |
| 191 | 190 | }, |
| 192 | 191 | }; |
| 193 | 192 | |
| @@ -300,7 +300,6 @@ static struct platform_driver da8xx_rproc_driver = { · 299 unmodified lines | ||
| 300 | 300 | .remove = da8xx_rproc_remove, |
| 301 | 301 | .driver = { |
| 302 | 302 | .name = "davinci-rproc", |
| 303 | − .owner = THIS_MODULE, | |
| 304 | 303 | }, |
| 305 | 304 | }; |
| 306 | 305 | |
| @@ -231,7 +231,6 @@ static struct platform_driver omap_rproc_driver = { · 230 unmodified lines | ||
| 231 | 231 | .remove = omap_rproc_remove, |
| 232 | 232 | .driver = { |
| 233 | 233 | .name = "omap-rproc", |
| 234 | − .owner = THIS_MODULE, | |
| 235 | 234 | }, |
| 236 | 235 | }; |
| 237 | 236 | |
| @@ -331,7 +331,6 @@ free_rproc: · 330 unmodified lines | ||
| 331 | 331 | static struct platform_driver sproc_driver = { |
| 332 | 332 | .driver = { |
| 333 | 333 | .name = SPROC_MODEM_NAME, |
| 334 | − .owner = THIS_MODULE, | |
| 335 | 334 | }, |
| 336 | 335 | .probe = sproc_probe, |
| 337 | 336 | .remove = sproc_drv_remove, |
| @@ -150,7 +150,6 @@ static struct platform_driver socfpga_reset_driver = { · 149 unmodified lines | ||
| 150 | 150 | .remove = socfpga_reset_remove, |
| 151 | 151 | .driver = { |
| 152 | 152 | .name = "socfpga-reset", |
| 153 | − .owner = THIS_MODULE, | |
| 154 | 153 | .of_match_table = socfpga_reset_dt_ids, |
| 155 | 154 | }, |
| 156 | 155 | }; |
| @@ -179,7 +179,6 @@ static struct platform_driver sunxi_reset_driver = { · 178 unmodified lines | ||
| 179 | 179 | .remove = sunxi_reset_remove, |
| 180 | 180 | .driver = { |
| 181 | 181 | .name = "sunxi-reset", |
| 182 | − .owner = THIS_MODULE, | |
| 183 | 182 | .of_match_table = sunxi_reset_dt_ids, |
| 184 | 183 | }, |
| 185 | 184 | }; |
| @@ -101,7 +101,6 @@ static struct platform_driver stih415_reset_driver = { · 100 unmodified lines | ||
| 101 | 101 | .probe = syscfg_reset_probe, |
| 102 | 102 | .driver = { |
| 103 | 103 | .name = "reset-stih415", |
| 104 | − .owner = THIS_MODULE, | |
| 105 | 104 | .of_match_table = stih415_reset_match, |
| 106 | 105 | }, |
| 107 | 106 | }; |
| @@ -132,7 +132,6 @@ static struct platform_driver stih416_reset_driver = { · 131 unmodified lines | ||
| 132 | 132 | .probe = syscfg_reset_probe, |
| 133 | 133 | .driver = { |
| 134 | 134 | .name = "reset-stih416", |
| 135 | − .owner = THIS_MODULE, | |
| 136 | 135 | .of_match_table = stih416_reset_match, |
| 137 | 136 | }, |
| 138 | 137 | }; |
| @@ -352,7 +352,6 @@ static int pm80x_rtc_remove(struct platform_device *pdev) · 351 unmodified lines | ||
| 352 | 352 | static struct platform_driver pm80x_rtc_driver = { |
| 353 | 353 | .driver = { |
| 354 | 354 | .name = "88pm80x-rtc", |
| 355 | − .owner = THIS_MODULE, | |
| 356 | 355 | .pm = &pm80x_rtc_pm_ops, |
| 357 | 356 | }, |
| 358 | 357 | .probe = pm80x_rtc_probe, |
| @@ -448,7 +448,6 @@ static SIMPLE_DEV_PM_OPS(pm860x_rtc_pm_ops, pm860x_rtc_suspend, pm860x_rtc_resum · 447 unmodified lines | ||
| 448 | 448 | static struct platform_driver pm860x_rtc_driver = { |
| 449 | 449 | .driver = { |
| 450 | 450 | .name = "88pm860x-rtc", |
| 451 | − .owner = THIS_MODULE, | |
| 452 | 451 | .pm = &pm860x_rtc_pm_ops, |
| 453 | 452 | }, |
| 454 | 453 | .probe = pm860x_rtc_probe, |
| @@ -243,7 +243,6 @@ static int __init ab3100_rtc_probe(struct platform_device *pdev) · 242 unmodified lines | ||
| 243 | 243 | static struct platform_driver ab3100_rtc_driver = { |
| 244 | 244 | .driver = { |
| 245 | 245 | .name = "ab3100-rtc", |
| 246 | − .owner = THIS_MODULE, | |
| 247 | 246 | }, |
| 248 | 247 | }; |
| 249 | 248 | |
| @@ -519,7 +519,6 @@ static int ab8500_rtc_remove(struct platform_device *pdev) · 518 unmodified lines | ||
| 519 | 519 | static struct platform_driver ab8500_rtc_driver = { |
| 520 | 520 | .driver = { |
| 521 | 521 | .name = "ab8500-rtc", |
| 522 | − .owner = THIS_MODULE, | |
| 523 | 522 | }, |
| 524 | 523 | .probe = ab8500_rtc_probe, |
| 525 | 524 | .remove = ab8500_rtc_remove, |
| @@ -277,7 +277,6 @@ static struct platform_driver at32_rtc_driver = { · 276 unmodified lines | ||
| 277 | 277 | .remove = __exit_p(at32_rtc_remove), |
| 278 | 278 | .driver = { |
| 279 | 279 | .name = "at32ap700x_rtc", |
| 280 | − .owner = THIS_MODULE, | |
| 281 | 280 | }, |
| 282 | 281 | }; |
| 283 | 282 | |
| @@ -491,7 +491,6 @@ static struct platform_driver at91_rtc_driver = { · 490 unmodified lines | ||
| 491 | 491 | .shutdown = at91_rtc_shutdown, |
| 492 | 492 | .driver = { |
| 493 | 493 | .name = "at91_rtc", |
| 494 | − .owner = THIS_MODULE, | |
| 495 | 494 | .pm = &at91_rtc_pm_ops, |
| 496 | 495 | .of_match_table = of_match_ptr(at91_rtc_dt_ids), |
| 497 | 496 | }, |
| @@ -525,7 +525,6 @@ static struct platform_driver at91_rtc_driver = { · 524 unmodified lines | ||
| 525 | 525 | .shutdown = at91_rtc_shutdown, |
| 526 | 526 | .driver = { |
| 527 | 527 | .name = "rtc-at91sam9", |
| 528 | − .owner = THIS_MODULE, | |
| 529 | 528 | .pm = &at91_rtc_pm_ops, |
| 530 | 529 | .of_match_table = of_match_ptr(at91_rtc_dt_ids), |
| 531 | 530 | }, |
| @@ -117,7 +117,6 @@ out_err: · 116 unmodified lines | ||
| 117 | 117 | static struct platform_driver au1xrtc_driver = { |
| 118 | 118 | .driver = { |
| 119 | 119 | .name = "rtc-au1xxx", |
| 120 | − .owner = THIS_MODULE, | |
| 121 | 120 | }, |
| 122 | 121 | }; |
| 123 | 122 | |
| @@ -434,7 +434,6 @@ static SIMPLE_DEV_PM_OPS(bfin_rtc_pm_ops, bfin_rtc_suspend, bfin_rtc_resume); · 433 unmodified lines | ||
| 434 | 434 | static struct platform_driver bfin_rtc_driver = { |
| 435 | 435 | .driver = { |
| 436 | 436 | .name = "rtc-bfin", |
| 437 | − .owner = THIS_MODULE, | |
| 438 | 437 | .pm = &bfin_rtc_pm_ops, |
| 439 | 438 | }, |
| 440 | 439 | .probe = bfin_rtc_probe, |
| @@ -192,7 +192,6 @@ MODULE_ALIAS("platform:rtc-bq4802"); · 191 unmodified lines | ||
| 192 | 192 | static struct platform_driver bq4802_driver = { |
| 193 | 193 | .driver = { |
| 194 | 194 | .name = "rtc-bq4802", |
| 195 | − .owner = THIS_MODULE, | |
| 196 | 195 | }, |
| 197 | 196 | .probe = bq4802_probe, |
| 198 | 197 | }; |
| @@ -267,7 +267,6 @@ static const struct of_device_id coh901331_dt_match[] = { · 266 unmodified lines | ||
| 267 | 267 | static struct platform_driver coh901331_driver = { |
| 268 | 268 | .driver = { |
| 269 | 269 | .name = "rtc-coh901331", |
| 270 | − .owner = THIS_MODULE, | |
| 271 | 270 | .pm = &coh901331_pm_ops, |
| 272 | 271 | .of_match_table = coh901331_dt_match, |
| 273 | 272 | }, |
| @@ -265,7 +265,6 @@ static struct platform_driver da9052_rtc_driver = { · 264 unmodified lines | ||
| 265 | 265 | .probe = da9052_rtc_probe, |
| 266 | 266 | .driver = { |
| 267 | 267 | .name = "da9052-rtc", |
| 268 | − .owner = THIS_MODULE, | |
| 269 | 268 | }, |
| 270 | 269 | }; |
| 271 | 270 | |
| @@ -391,7 +391,6 @@ static struct platform_driver da9055_rtc_driver = { · 390 unmodified lines | ||
| 391 | 391 | .probe = da9055_rtc_probe, |
| 392 | 392 | .driver = { |
| 393 | 393 | .name = "da9055-rtc", |
| 394 | − .owner = THIS_MODULE, | |
| 395 | 394 | .pm = &da9055_rtc_pm_ops, |
| 396 | 395 | }, |
| 397 | 396 | }; |
| @@ -341,7 +341,6 @@ static struct platform_driver da9063_rtc_driver = { · 340 unmodified lines | ||
| 341 | 341 | .probe = da9063_rtc_probe, |
| 342 | 342 | .driver = { |
| 343 | 343 | .name = DA9063_DRVNAME_RTC, |
| 344 | − .owner = THIS_MODULE, | |
| 345 | 344 | }, |
| 346 | 345 | }; |
| 347 | 346 | |
| @@ -550,7 +550,6 @@ static struct platform_driver davinci_rtc_driver = { · 549 unmodified lines | ||
| 550 | 550 | .remove = __exit_p(davinci_rtc_remove), |
| 551 | 551 | .driver = { |
| 552 | 552 | .name = "rtc_davinci", |
| 553 | − .owner = THIS_MODULE, | |
| 554 | 553 | }, |
| 555 | 554 | }; |
| 556 | 555 | |
| @@ -146,7 +146,6 @@ static int dm355evm_rtc_probe(struct platform_device *pdev) · 145 unmodified lines | ||
| 146 | 146 | static struct platform_driver rtc_dm355evm_driver = { |
| 147 | 147 | .probe = dm355evm_rtc_probe, |
| 148 | 148 | .driver = { |
| 149 | − .owner = THIS_MODULE, | |
| 150 | 149 | .name = "rtc-dm355evm", |
| 151 | 150 | }, |
| 152 | 151 | }; |
| @@ -170,7 +170,6 @@ static int __init ds1216_rtc_probe(struct platform_device *pdev) · 169 unmodified lines | ||
| 170 | 170 | static struct platform_driver ds1216_rtc_platform_driver = { |
| 171 | 171 | .driver = { |
| 172 | 172 | .name = "rtc-ds1216", |
| 173 | − .owner = THIS_MODULE, | |
| 174 | 173 | }, |
| 175 | 174 | }; |
| 176 | 175 | |
| @@ -356,7 +356,6 @@ static int ds1286_probe(struct platform_device *pdev) · 355 unmodified lines | ||
| 356 | 356 | static struct platform_driver ds1286_platform_driver = { |
| 357 | 357 | .driver = { |
| 358 | 358 | .name = "rtc-ds1286", |
| 359 | − .owner = THIS_MODULE, | |
| 360 | 359 | }, |
| 361 | 360 | .probe = ds1286_probe, |
| 362 | 361 | }; |
| @@ -244,7 +244,6 @@ static int __init ds1302_rtc_probe(struct platform_device *pdev) · 243 unmodified lines | ||
| 244 | 244 | static struct platform_driver ds1302_platform_driver = { |
| 245 | 245 | .driver = { |
| 246 | 246 | .name = DRV_NAME, |
| 247 | − .owner = THIS_MODULE, | |
| 248 | 247 | }, |
| 249 | 248 | }; |
| 250 | 249 | |
| @@ -561,7 +561,6 @@ static struct platform_driver ds1511_rtc_driver = { · 560 unmodified lines | ||
| 561 | 561 | .remove = ds1511_rtc_remove, |
| 562 | 562 | .driver = { |
| 563 | 563 | .name = "ds1511", |
| 564 | − .owner = THIS_MODULE, | |
| 565 | 564 | }, |
| 566 | 565 | }; |
| 567 | 566 | |
| @@ -351,7 +351,6 @@ static struct platform_driver ds1553_rtc_driver = { · 350 unmodified lines | ||
| 351 | 351 | .remove = ds1553_rtc_remove, |
| 352 | 352 | .driver = { |
| 353 | 353 | .name = "rtc-ds1553", |
| 354 | − .owner = THIS_MODULE, | |
| 355 | 354 | }, |
| 356 | 355 | }; |
| 357 | 356 | |
| @@ -230,7 +230,6 @@ static struct platform_driver ds1742_rtc_driver = { · 229 unmodified lines | ||
| 230 | 230 | .remove = ds1742_rtc_remove, |
| 231 | 231 | .driver = { |
| 232 | 232 | .name = "rtc-ds1742", |
| 233 | − .owner = THIS_MODULE, | |
| 234 | 233 | .of_match_table = of_match_ptr(ds1742_rtc_of_match), |
| 235 | 234 | }, |
| 236 | 235 | }; |
| @@ -274,7 +274,6 @@ static struct platform_driver rtc_device_driver = { · 273 unmodified lines | ||
| 274 | 274 | .remove = rtc_remove, |
| 275 | 275 | .driver = { |
| 276 | 276 | .name = "ds2404", |
| 277 | − .owner = THIS_MODULE, | |
| 278 | 277 | }, |
| 279 | 278 | }; |
| 280 | 279 | module_platform_driver(rtc_device_driver); |
| @@ -226,7 +226,6 @@ static int __init efi_rtc_probe(struct platform_device *dev) · 225 unmodified lines | ||
| 226 | 226 | static struct platform_driver efi_rtc_driver = { |
| 227 | 227 | .driver = { |
| 228 | 228 | .name = "rtc-efi", |
| 229 | − .owner = THIS_MODULE, | |
| 230 | 229 | }, |
| 231 | 230 | }; |
| 232 | 231 | |
| @@ -174,7 +174,6 @@ static int ep93xx_rtc_remove(struct platform_device *pdev) · 173 unmodified lines | ||
| 174 | 174 | static struct platform_driver ep93xx_rtc_driver = { |
| 175 | 175 | .driver = { |
| 176 | 176 | .name = "ep93xx-rtc", |
| 177 | − .owner = THIS_MODULE, | |
| 178 | 177 | }, |
| 179 | 178 | .probe = ep93xx_rtc_probe, |
| 180 | 179 | .remove = ep93xx_rtc_remove, |
| @@ -51,7 +51,6 @@ static int __init generic_rtc_probe(struct platform_device *dev) · 50 unmodified lines | ||
| 51 | 51 | static struct platform_driver generic_rtc_driver = { |
| 52 | 52 | .driver = { |
| 53 | 53 | .name = "rtc-generic", |
| 54 | − .owner = THIS_MODULE, | |
| 55 | 54 | }, |
| 56 | 55 | }; |
| 57 | 56 | |
| @@ -331,7 +331,6 @@ static struct platform_driver hid_time_platform_driver = { · 330 unmodified lines | ||
| 331 | 331 | .id_table = hid_time_ids, |
| 332 | 332 | .driver = { |
| 333 | 333 | .name = KBUILD_MODNAME, |
| 334 | − .owner = THIS_MODULE, | |
| 335 | 334 | }, |
| 336 | 335 | .probe = hid_time_probe, |
| 337 | 336 | .remove = hid_time_remove, |
| @@ -499,7 +499,6 @@ MODULE_DEVICE_TABLE(of, dryice_dt_ids); · 498 unmodified lines | ||
| 499 | 499 | static struct platform_driver dryice_rtc_driver = { |
| 500 | 500 | .driver = { |
| 501 | 501 | .name = "imxdi_rtc", |
| 502 | − .owner = THIS_MODULE, | |
| 503 | 502 | .of_match_table = of_match_ptr(dryice_dt_ids), |
| 504 | 503 | }, |
| 505 | 504 | .remove = __exit_p(dryice_rtc_remove), |
| @@ -299,7 +299,6 @@ static struct platform_driver jz4740_rtc_driver = { · 298 unmodified lines | ||
| 299 | 299 | .probe = jz4740_rtc_probe, |
| 300 | 300 | .driver = { |
| 301 | 301 | .name = "jz4740-rtc", |
| 302 | − .owner = THIS_MODULE, | |
| 303 | 302 | .pm = JZ4740_RTC_PM_OPS, |
| 304 | 303 | }, |
| 305 | 304 | }; |
| @@ -316,7 +316,6 @@ static struct platform_driver lp8788_rtc_driver = { · 315 unmodified lines | ||
| 316 | 316 | .probe = lp8788_rtc_probe, |
| 317 | 317 | .driver = { |
| 318 | 318 | .name = LP8788_DEV_RTC, |
| 319 | − .owner = THIS_MODULE, | |
| 320 | 319 | }, |
| 321 | 320 | }; |
| 322 | 321 | module_platform_driver(lp8788_rtc_driver); |
| @@ -379,7 +379,6 @@ static struct platform_driver lpc32xx_rtc_driver = { · 378 unmodified lines | ||
| 379 | 379 | .remove = lpc32xx_rtc_remove, |
| 380 | 380 | .driver = { |
| 381 | 381 | .name = RTC_NAME, |
| 382 | − .owner = THIS_MODULE, | |
| 383 | 382 | .pm = LPC32XX_RTC_PM_OPS, |
| 384 | 383 | .of_match_table = of_match_ptr(lpc32xx_rtc_match), |
| 385 | 384 | }, |
| @@ -188,7 +188,6 @@ err: · 187 unmodified lines | ||
| 188 | 188 | static struct platform_driver ls1x_rtc_driver = { |
| 189 | 189 | .driver = { |
| 190 | 190 | .name = "ls1x-rtc", |
| 191 | − .owner = THIS_MODULE, | |
| 192 | 191 | }, |
| 193 | 192 | .probe = ls1x_rtc_probe, |
| 194 | 193 | }; |
| @@ -181,7 +181,6 @@ static int m48t35_probe(struct platform_device *pdev) · 180 unmodified lines | ||
| 181 | 181 | static struct platform_driver m48t35_platform_driver = { |
| 182 | 182 | .driver = { |
| 183 | 183 | .name = "rtc-m48t35", |
| 184 | − .owner = THIS_MODULE, | |
| 185 | 184 | }, |
| 186 | 185 | .probe = m48t35_probe, |
| 187 | 186 | }; |
| @@ -504,7 +504,6 @@ MODULE_ALIAS("platform:rtc-m48t59"); · 503 unmodified lines | ||
| 504 | 504 | static struct platform_driver m48t59_rtc_driver = { |
| 505 | 505 | .driver = { |
| 506 | 506 | .name = "rtc-m48t59", |
| 507 | − .owner = THIS_MODULE, | |
| 508 | 507 | }, |
| 509 | 508 | .probe = m48t59_rtc_probe, |
| 510 | 509 | .remove = m48t59_rtc_remove, |
| @@ -169,7 +169,6 @@ static int m48t86_rtc_probe(struct platform_device *dev) · 168 unmodified lines | ||
| 169 | 169 | static struct platform_driver m48t86_rtc_platform_driver = { |
| 170 | 170 | .driver = { |
| 171 | 171 | .name = "rtc-m48t86", |
| 172 | − .owner = THIS_MODULE, | |
| 173 | 172 | }, |
| 174 | 173 | .probe = m48t86_rtc_probe, |
| 175 | 174 | }; |
| @@ -513,7 +513,6 @@ static const struct platform_device_id rtc_id[] = { · 512 unmodified lines | ||
| 513 | 513 | static struct platform_driver max77686_rtc_driver = { |
| 514 | 514 | .driver = { |
| 515 | 515 | .name = "max77686-rtc", |
| 516 | − .owner = THIS_MODULE, | |
| 517 | 516 | .pm = &max77686_rtc_pm_ops, |
| 518 | 517 | }, |
| 519 | 518 | .probe = max77686_rtc_probe, |
| @@ -488,7 +488,6 @@ static const struct platform_device_id rtc_id[] = { · 487 unmodified lines | ||
| 488 | 488 | static struct platform_driver max77802_rtc_driver = { |
| 489 | 489 | .driver = { |
| 490 | 490 | .name = "max77802-rtc", |
| 491 | − .owner = THIS_MODULE, | |
| 492 | 491 | .pm = &max77802_rtc_pm_ops, |
| 493 | 492 | }, |
| 494 | 493 | .probe = max77802_rtc_probe, |
| @@ -215,7 +215,6 @@ static int max8907_rtc_probe(struct platform_device *pdev) · 214 unmodified lines | ||
| 215 | 215 | static struct platform_driver max8907_rtc_driver = { |
| 216 | 216 | .driver = { |
| 217 | 217 | .name = "max8907-rtc", |
| 218 | − .owner = THIS_MODULE, | |
| 219 | 218 | }, |
| 220 | 219 | .probe = max8907_rtc_probe, |
| 221 | 220 | }; |
| @@ -314,7 +314,6 @@ static SIMPLE_DEV_PM_OPS(max8925_rtc_pm_ops, max8925_rtc_suspend, max8925_rtc_re · 313 unmodified lines | ||
| 314 | 314 | static struct platform_driver max8925_rtc_driver = { |
| 315 | 315 | .driver = { |
| 316 | 316 | .name = "max8925-rtc", |
| 317 | − .owner = THIS_MODULE, | |
| 318 | 317 | .pm = &max8925_rtc_pm_ops, |
| 319 | 318 | }, |
| 320 | 319 | .probe = max8925_rtc_probe, |
| @@ -523,7 +523,6 @@ static const struct platform_device_id rtc_id[] = { · 522 unmodified lines | ||
| 523 | 523 | static struct platform_driver max8997_rtc_driver = { |
| 524 | 524 | .driver = { |
| 525 | 525 | .name = "max8997-rtc", |
| 526 | − .owner = THIS_MODULE, | |
| 527 | 526 | }, |
| 528 | 527 | .probe = max8997_rtc_probe, |
| 529 | 528 | .shutdown = max8997_rtc_shutdown, |
| @@ -313,7 +313,6 @@ static const struct platform_device_id max8998_rtc_id[] = { · 312 unmodified lines | ||
| 313 | 313 | static struct platform_driver max8998_rtc_driver = { |
| 314 | 314 | .driver = { |
| 315 | 315 | .name = "max8998-rtc", |
| 316 | − .owner = THIS_MODULE, | |
| 317 | 316 | }, |
| 318 | 317 | .probe = max8998_rtc_probe, |
| 319 | 318 | .id_table = max8998_rtc_id, |
| @@ -370,7 +370,6 @@ static struct platform_driver mc13xxx_rtc_driver = { · 369 unmodified lines | ||
| 370 | 370 | .remove = mc13xxx_rtc_remove, |
| 371 | 371 | .driver = { |
| 372 | 372 | .name = DRIVER_NAME, |
| 373 | − .owner = THIS_MODULE, | |
| 374 | 373 | }, |
| 375 | 374 | }; |
| 376 | 375 | |
| @@ -317,7 +317,6 @@ static struct platform_driver moxart_rtc_driver = { · 316 unmodified lines | ||
| 317 | 317 | .probe = moxart_rtc_probe, |
| 318 | 318 | .driver = { |
| 319 | 319 | .name = "moxart-rtc", |
| 320 | − .owner = THIS_MODULE, | |
| 321 | 320 | .of_match_table = moxart_rtc_match, |
| 322 | 321 | }, |
| 323 | 322 | }; |
| @@ -411,7 +411,6 @@ static const struct of_device_id mpc5121_rtc_match[] = { · 410 unmodified lines | ||
| 411 | 411 | static struct platform_driver mpc5121_rtc_driver = { |
| 412 | 412 | .driver = { |
| 413 | 413 | .name = "mpc5121-rtc", |
| 414 | − .owner = THIS_MODULE, | |
| 415 | 414 | .of_match_table = of_match_ptr(mpc5121_rtc_match), |
| 416 | 415 | }, |
| 417 | 416 | .probe = mpc5121_rtc_probe, |
| @@ -225,7 +225,6 @@ static int __init msm6242_rtc_probe(struct platform_device *pdev) · 224 unmodified lines | ||
| 225 | 225 | static struct platform_driver msm6242_rtc_driver = { |
| 226 | 226 | .driver = { |
| 227 | 227 | .name = "rtc-msm6242", |
| 228 | − .owner = THIS_MODULE, | |
| 229 | 228 | }, |
| 230 | 229 | }; |
| 231 | 230 | |
| @@ -329,7 +329,6 @@ static struct platform_driver mv_rtc_driver = { · 328 unmodified lines | ||
| 329 | 329 | .remove = __exit_p(mv_rtc_remove), |
| 330 | 330 | .driver = { |
| 331 | 331 | .name = "rtc-mv", |
| 332 | − .owner = THIS_MODULE, | |
| 333 | 332 | .of_match_table = of_match_ptr(rtc_mv_of_match_table), |
| 334 | 333 | }, |
| 335 | 334 | }; |
| @@ -489,7 +489,6 @@ static struct platform_driver mxc_rtc_driver = { · 488 unmodified lines | ||
| 489 | 489 | .driver = { |
| 490 | 490 | .name = "mxc_rtc", |
| 491 | 491 | .pm = &mxc_rtc_pm_ops, |
| 492 | − .owner = THIS_MODULE, | |
| 493 | 492 | }, |
| 494 | 493 | .id_table = imx_rtc_devtype, |
| 495 | 494 | .probe = mxc_rtc_probe, |
| @@ -262,7 +262,6 @@ static int __init nuc900_rtc_probe(struct platform_device *pdev) · 261 unmodified lines | ||
| 262 | 262 | static struct platform_driver nuc900_rtc_driver = { |
| 263 | 263 | .driver = { |
| 264 | 264 | .name = "nuc900-rtc", |
| 265 | − .owner = THIS_MODULE, | |
| 266 | 265 | }, |
| 267 | 266 | }; |
| 268 | 267 | |
| @@ -719,7 +719,6 @@ static struct platform_driver omap_rtc_driver = { · 718 unmodified lines | ||
| 719 | 719 | .shutdown = omap_rtc_shutdown, |
| 720 | 720 | .driver = { |
| 721 | 721 | .name = "omap_rtc", |
| 722 | − .owner = THIS_MODULE, | |
| 723 | 722 | .pm = &omap_rtc_pm_ops, |
| 724 | 723 | .of_match_table = omap_rtc_of_match, |
| 725 | 724 | }, |
| @@ -363,7 +363,6 @@ static struct platform_driver palmas_rtc_driver = { · 362 unmodified lines | ||
| 363 | 363 | .probe = palmas_rtc_probe, |
| 364 | 364 | .remove = palmas_rtc_remove, |
| 365 | 365 | .driver = { |
| 366 | − .owner = THIS_MODULE, | |
| 367 | 366 | .name = "palmas-rtc", |
| 368 | 367 | .pm = &palmas_rtc_pm_ops, |
| 369 | 368 | .of_match_table = of_match_ptr(of_palmas_rtc_match), |
| @@ -184,7 +184,6 @@ static struct platform_driver pcap_rtc_driver = { · 183 unmodified lines | ||
| 184 | 184 | .remove = __exit_p(pcap_rtc_remove), |
| 185 | 185 | .driver = { |
| 186 | 186 | .name = "pcap-rtc", |
| 187 | − .owner = THIS_MODULE, | |
| 188 | 187 | }, |
| 189 | 188 | }; |
| 190 | 189 | |
| @@ -531,7 +531,6 @@ static struct platform_driver pm8xxx_rtc_driver = { · 530 unmodified lines | ||
| 531 | 531 | .probe = pm8xxx_rtc_probe, |
| 532 | 532 | .driver = { |
| 533 | 533 | .name = "rtc-pm8xxx", |
| 534 | − .owner = THIS_MODULE, | |
| 535 | 534 | .pm = &pm8xxx_rtc_pm_ops, |
| 536 | 535 | .of_match_table = pm8xxx_id_table, |
| 537 | 536 | }, |
| @@ -74,7 +74,6 @@ static int __init ps3_rtc_probe(struct platform_device *dev) · 73 unmodified lines | ||
| 74 | 74 | static struct platform_driver ps3_rtc_driver = { |
| 75 | 75 | .driver = { |
| 76 | 76 | .name = "rtc-ps3", |
| 77 | − .owner = THIS_MODULE, | |
| 78 | 77 | }, |
| 79 | 78 | }; |
| 80 | 79 | |
| @@ -328,7 +328,6 @@ static struct platform_driver puv3_rtc_driver = { · 327 unmodified lines | ||
| 328 | 328 | .remove = puv3_rtc_remove, |
| 329 | 329 | .driver = { |
| 330 | 330 | .name = "PKUnity-v3-RTC", |
| 331 | − .owner = THIS_MODULE, | |
| 332 | 331 | .pm = &puv3_rtc_pm_ops, |
| 333 | 332 | } |
| 334 | 333 | }; |
| @@ -310,7 +310,6 @@ static struct platform_driver rc5t583_rtc_driver = { · 309 unmodified lines | ||
| 310 | 310 | .probe = rc5t583_rtc_probe, |
| 311 | 311 | .remove = rc5t583_rtc_remove, |
| 312 | 312 | .driver = { |
| 313 | − .owner = THIS_MODULE, | |
| 314 | 313 | .name = "rtc-rc5t583", |
| 315 | 314 | .pm = &rc5t583_rtc_pm_ops, |
| 316 | 315 | }, |
| @@ -273,7 +273,6 @@ static int __exit rp5c01_rtc_remove(struct platform_device *dev) · 272 unmodified lines | ||
| 273 | 273 | static struct platform_driver rp5c01_rtc_driver = { |
| 274 | 274 | .driver = { |
| 275 | 275 | .name = "rtc-rp5c01", |
| 276 | − .owner = THIS_MODULE, | |
| 277 | 276 | }, |
| 278 | 277 | .remove = __exit_p(rp5c01_rtc_remove), |
| 279 | 278 | }; |
| @@ -381,7 +381,6 @@ static int rs5c313_rtc_probe(struct platform_device *pdev) · 380 unmodified lines | ||
| 381 | 381 | static struct platform_driver rs5c313_rtc_platform_driver = { |
| 382 | 382 | .driver = { |
| 383 | 383 | .name = DRV_NAME, |
| 384 | − .owner = THIS_MODULE, | |
| 385 | 384 | }, |
| 386 | 385 | .probe = rs5c313_rtc_probe, |
| 387 | 386 | }; |
| @@ -896,7 +896,6 @@ static struct platform_driver s3c_rtc_driver = { · 895 unmodified lines | ||
| 896 | 896 | .remove = s3c_rtc_remove, |
| 897 | 897 | .driver = { |
| 898 | 898 | .name = "s3c-rtc", |
| 899 | − .owner = THIS_MODULE, | |
| 900 | 899 | .pm = &s3c_rtc_pm_ops, |
| 901 | 900 | .of_match_table = of_match_ptr(s3c_rtc_dt_match), |
| 902 | 901 | }, |
| @@ -837,7 +837,6 @@ static const struct platform_device_id s5m_rtc_id[] = { · 836 unmodified lines | ||
| 837 | 837 | static struct platform_driver s5m_rtc_driver = { |
| 838 | 838 | .driver = { |
| 839 | 839 | .name = "s5m-rtc", |
| 840 | − .owner = THIS_MODULE, | |
| 841 | 840 | .pm = &s5m_rtc_pm_ops, |
| 842 | 841 | }, |
| 843 | 842 | .probe = s5m_rtc_probe, |
| @@ -782,7 +782,6 @@ static SIMPLE_DEV_PM_OPS(sh_rtc_pm_ops, sh_rtc_suspend, sh_rtc_resume); · 781 unmodified lines | ||
| 782 | 782 | static struct platform_driver sh_rtc_platform_driver = { |
| 783 | 783 | .driver = { |
| 784 | 784 | .name = DRV_NAME, |
| 785 | − .owner = THIS_MODULE, | |
| 786 | 785 | .pm = &sh_rtc_pm_ops, |
| 787 | 786 | }, |
| 788 | 787 | .remove = __exit_p(sh_rtc_remove), |
| @@ -444,7 +444,6 @@ static SIMPLE_DEV_PM_OPS(sirfsoc_rtc_pm_ops, · 443 unmodified lines | ||
| 444 | 444 | static struct platform_driver sirfsoc_rtc_driver = { |
| 445 | 445 | .driver = { |
| 446 | 446 | .name = "sirfsoc-rtc", |
| 447 | − .owner = THIS_MODULE, | |
| 448 | 447 | .pm = &sirfsoc_rtc_pm_ops, |
| 449 | 448 | .of_match_table = sirfsoc_rtc_of_match, |
| 450 | 449 | }, |
| @@ -367,7 +367,6 @@ MODULE_DEVICE_TABLE(of, snvs_dt_ids); · 366 unmodified lines | ||
| 367 | 367 | static struct platform_driver snvs_rtc_driver = { |
| 368 | 368 | .driver = { |
| 369 | 369 | .name = "snvs_rtc", |
| 370 | − .owner = THIS_MODULE, | |
| 371 | 370 | .pm = SNVS_RTC_PM_OPS, |
| 372 | 371 | .of_match_table = snvs_dt_ids, |
| 373 | 372 | }, |
| @@ -54,7 +54,6 @@ static int __init starfire_rtc_probe(struct platform_device *pdev) · 53 unmodified lines | ||
| 54 | 54 | static struct platform_driver starfire_rtc_driver = { |
| 55 | 55 | .driver = { |
| 56 | 56 | .name = "rtc-starfire", |
| 57 | − .owner = THIS_MODULE, | |
| 58 | 57 | }, |
| 59 | 58 | }; |
| 60 | 59 | |
| @@ -358,7 +358,6 @@ static struct platform_driver stk17ta8_rtc_driver = { · 357 unmodified lines | ||
| 358 | 358 | .remove = stk17ta8_rtc_remove, |
| 359 | 359 | .driver = { |
| 360 | 360 | .name = "stk17ta8", |
| 361 | − .owner = THIS_MODULE, | |
| 362 | 361 | }, |
| 363 | 362 | }; |
| 364 | 363 | |
| @@ -341,7 +341,6 @@ static struct platform_driver stmp3xxx_rtcdrv = { · 340 unmodified lines | ||
| 341 | 341 | .remove = stmp3xxx_rtc_remove, |
| 342 | 342 | .driver = { |
| 343 | 343 | .name = "stmp3xxx-rtc", |
| 344 | − .owner = THIS_MODULE, | |
| 345 | 344 | .pm = &stmp3xxx_rtc_pm_ops, |
| 346 | 345 | .of_match_table = rtc_dt_ids, |
| 347 | 346 | }, |
| @@ -95,7 +95,6 @@ static int __init sun4v_rtc_probe(struct platform_device *pdev) · 94 unmodified lines | ||
| 95 | 95 | static struct platform_driver sun4v_rtc_driver = { |
| 96 | 96 | .driver = { |
| 97 | 97 | .name = "rtc-sun4v", |
| 98 | − .owner = THIS_MODULE, | |
| 99 | 98 | }, |
| 100 | 99 | }; |
| 101 | 100 | |
| @@ -511,7 +511,6 @@ static struct platform_driver sunxi_rtc_driver = { · 510 unmodified lines | ||
| 511 | 511 | .remove = sunxi_rtc_remove, |
| 512 | 512 | .driver = { |
| 513 | 513 | .name = "sunxi-rtc", |
| 514 | − .owner = THIS_MODULE, | |
| 515 | 514 | .of_match_table = sunxi_rtc_dt_ids, |
| 516 | 515 | }, |
| 517 | 516 | }; |
| @@ -420,7 +420,6 @@ static struct platform_driver tegra_rtc_driver = { · 419 unmodified lines | ||
| 420 | 420 | .shutdown = tegra_rtc_shutdown, |
| 421 | 421 | .driver = { |
| 422 | 422 | .name = "tegra_rtc", |
| 423 | − .owner = THIS_MODULE, | |
| 424 | 423 | .of_match_table = tegra_rtc_dt_match, |
| 425 | 424 | .pm = &tegra_rtc_pm_ops, |
| 426 | 425 | }, |
| @@ -129,7 +129,6 @@ static struct platform_driver test_driver = { · 128 unmodified lines | ||
| 129 | 129 | .remove = test_remove, |
| 130 | 130 | .driver = { |
| 131 | 131 | .name = "rtc-test", |
| 132 | − .owner = THIS_MODULE, | |
| 133 | 132 | }, |
| 134 | 133 | }; |
| 135 | 134 | |
| @@ -94,7 +94,6 @@ static int tile_rtc_probe(struct platform_device *dev) · 93 unmodified lines | ||
| 94 | 94 | static struct platform_driver tile_rtc_platform_driver = { |
| 95 | 95 | .driver = { |
| 96 | 96 | .name = "rtc-tile", |
| 97 | − .owner = THIS_MODULE, | |
| 98 | 97 | }, |
| 99 | 98 | .probe = tile_rtc_probe, |
| 100 | 99 | }; |
| @@ -337,7 +337,6 @@ static SIMPLE_DEV_PM_OPS(tps6586x_pm_ops, tps6586x_rtc_suspend, · 336 unmodified lines | ||
| 337 | 337 | static struct platform_driver tps6586x_rtc_driver = { |
| 338 | 338 | .driver = { |
| 339 | 339 | .name = "tps6586x-rtc", |
| 340 | − .owner = THIS_MODULE, | |
| 341 | 340 | .pm = &tps6586x_pm_ops, |
| 342 | 341 | }, |
| 343 | 342 | .probe = tps6586x_rtc_probe, |
| @@ -326,7 +326,6 @@ static struct platform_driver tps65910_rtc_driver = { · 325 unmodified lines | ||
| 326 | 326 | .probe = tps65910_rtc_probe, |
| 327 | 327 | .remove = tps65910_rtc_remove, |
| 328 | 328 | .driver = { |
| 329 | − .owner = THIS_MODULE, | |
| 330 | 329 | .name = "tps65910-rtc", |
| 331 | 330 | .pm = &tps65910_rtc_pm_ops, |
| 332 | 331 | }, |
| @@ -324,7 +324,6 @@ static SIMPLE_DEV_PM_OPS(tps80031_pm_ops, tps80031_rtc_suspend, · 323 unmodified lines | ||
| 324 | 324 | static struct platform_driver tps80031_rtc_driver = { |
| 325 | 325 | .driver = { |
| 326 | 326 | .name = "tps80031-rtc", |
| 327 | − .owner = THIS_MODULE, | |
| 328 | 327 | .pm = &tps80031_pm_ops, |
| 329 | 328 | }, |
| 330 | 329 | .probe = tps80031_rtc_probe, |
| @@ -608,7 +608,6 @@ static struct platform_driver twl4030rtc_driver = { · 607 unmodified lines | ||
| 608 | 608 | .remove = twl_rtc_remove, |
| 609 | 609 | .shutdown = twl_rtc_shutdown, |
| 610 | 610 | .driver = { |
| 611 | − .owner = THIS_MODULE, | |
| 612 | 611 | .name = "twl_rtc", |
| 613 | 612 | .pm = &twl_rtc_pm_ops, |
| 614 | 613 | .of_match_table = of_match_ptr(twl_rtc_of_match), |
| @@ -287,7 +287,6 @@ static struct platform_driver tx4939_rtc_driver = { · 286 unmodified lines | ||
| 287 | 287 | .remove = __exit_p(tx4939_rtc_remove), |
| 288 | 288 | .driver = { |
| 289 | 289 | .name = "tx4939rtc", |
| 290 | − .owner = THIS_MODULE, | |
| 291 | 290 | }, |
| 292 | 291 | }; |
| 293 | 292 | |
| @@ -382,7 +382,6 @@ static struct platform_driver rtc_device_driver = { · 381 unmodified lines | ||
| 382 | 382 | .remove = rtc_remove, |
| 383 | 383 | .driver = { |
| 384 | 384 | .name = "v3020", |
| 385 | − .owner = THIS_MODULE, | |
| 386 | 385 | }, |
| 387 | 386 | }; |
| 388 | 387 | |
| @@ -375,7 +375,6 @@ static struct platform_driver rtc_platform_driver = { · 374 unmodified lines | ||
| 375 | 375 | .probe = rtc_probe, |
| 376 | 376 | .driver = { |
| 377 | 377 | .name = rtc_name, |
| 378 | − .owner = THIS_MODULE, | |
| 379 | 378 | }, |
| 380 | 379 | }; |
| 381 | 380 | |
| @@ -277,7 +277,6 @@ static struct platform_driver vt8500_rtc_driver = { · 276 unmodified lines | ||
| 277 | 277 | .remove = vt8500_rtc_remove, |
| 278 | 278 | .driver = { |
| 279 | 279 | .name = "vt8500-rtc", |
| 280 | − .owner = THIS_MODULE, | |
| 281 | 280 | .of_match_table = wmt_dt_ids, |
| 282 | 281 | }, |
| 283 | 282 | }; |
| @@ -264,7 +264,6 @@ static struct platform_driver xgene_rtc_driver = { · 263 unmodified lines | ||
| 264 | 264 | .probe = xgene_rtc_probe, |
| 265 | 265 | .remove = xgene_rtc_remove, |
| 266 | 266 | .driver = { |
| 267 | − .owner = THIS_MODULE, | |
| 268 | 267 | .name = "xgene-rtc", |
| 269 | 268 | .pm = &xgene_rtc_pm_ops, |
| 270 | 269 | .of_match_table = of_match_ptr(xgene_rtc_of_match), |
| @@ -1003,7 +1003,6 @@ static const struct dev_pm_ops dcssblk_pm_ops = { · 1002 unmodified lines | ||
| 1003 | 1003 | static struct platform_driver dcssblk_pdrv = { |
| 1004 | 1004 | .driver = { |
| 1005 | 1005 | .name = "dcssblk", |
| 1006 | − .owner = THIS_MODULE, | |
| 1007 | 1006 | .pm = &dcssblk_pm_ops, |
| 1008 | 1007 | }, |
| 1009 | 1008 | }; |
| @@ -417,7 +417,6 @@ static const struct dev_pm_ops xpram_pm_ops = { · 416 unmodified lines | ||
| 417 | 417 | static struct platform_driver xpram_pdrv = { |
| 418 | 418 | .driver = { |
| 419 | 419 | .name = XPRAM_NAME, |
| 420 | − .owner = THIS_MODULE, | |
| 421 | 420 | .pm = &xpram_pm_ops, |
| 422 | 421 | }, |
| 423 | 422 | }; |
| @@ -334,7 +334,6 @@ static const struct dev_pm_ops monwriter_pm_ops = { · 333 unmodified lines | ||
| 334 | 334 | static struct platform_driver monwriter_pdrv = { |
| 335 | 335 | .driver = { |
| 336 | 336 | .name = "monwriter", |
| 337 | − .owner = THIS_MODULE, | |
| 338 | 337 | .pm = &monwriter_pm_ops, |
| 339 | 338 | }, |
| 340 | 339 | }; |
| @@ -1167,7 +1167,6 @@ static const struct attribute_group *sclp_drv_attr_groups[] = { · 1166 unmodified lines | ||
| 1167 | 1167 | static struct platform_driver sclp_pdrv = { |
| 1168 | 1168 | .driver = { |
| 1169 | 1169 | .name = "sclp", |
| 1170 | − .owner = THIS_MODULE, | |
| 1171 | 1170 | .pm = &sclp_pm_ops, |
| 1172 | 1171 | .groups = sclp_drv_attr_groups, |
| 1173 | 1172 | }, |
| @@ -413,7 +413,6 @@ MODULE_DEVICE_TABLE(of, bbc_i2c_match); · 412 unmodified lines | ||
| 413 | 413 | static struct platform_driver bbc_i2c_driver = { |
| 414 | 414 | .driver = { |
| 415 | 415 | .name = "bbc_i2c", |
| 416 | − .owner = THIS_MODULE, | |
| 417 | 416 | .of_match_table = bbc_i2c_match, |
| 418 | 417 | }, |
| 419 | 418 | .probe = bbc_i2c_probe, |
| @@ -263,7 +263,6 @@ MODULE_DEVICE_TABLE(of, d7s_match); · 262 unmodified lines | ||
| 263 | 263 | static struct platform_driver d7s_driver = { |
| 264 | 264 | .driver = { |
| 265 | 265 | .name = DRIVER_NAME, |
| 266 | − .owner = THIS_MODULE, | |
| 267 | 266 | .of_match_table = d7s_match, |
| 268 | 267 | }, |
| 269 | 268 | .probe = d7s_probe, |
| @@ -1130,7 +1130,6 @@ MODULE_DEVICE_TABLE(of, envctrl_match); · 1129 unmodified lines | ||
| 1130 | 1130 | static struct platform_driver envctrl_driver = { |
| 1131 | 1131 | .driver = { |
| 1132 | 1132 | .name = DRIVER_NAME, |
| 1133 | − .owner = THIS_MODULE, | |
| 1134 | 1133 | .of_match_table = envctrl_match, |
| 1135 | 1134 | }, |
| 1136 | 1135 | .probe = envctrl_probe, |
| @@ -207,7 +207,6 @@ MODULE_DEVICE_TABLE(of, flash_match); · 206 unmodified lines | ||
| 207 | 207 | static struct platform_driver flash_driver = { |
| 208 | 208 | .driver = { |
| 209 | 209 | .name = "flash", |
| 210 | − .owner = THIS_MODULE, | |
| 211 | 210 | .of_match_table = flash_match, |
| 212 | 211 | }, |
| 213 | 212 | .probe = flash_probe, |
| @@ -425,7 +425,6 @@ MODULE_DEVICE_TABLE(of, uctrl_match); · 424 unmodified lines | ||
| 425 | 425 | static struct platform_driver uctrl_driver = { |
| 426 | 426 | .driver = { |
| 427 | 427 | .name = "uctrl", |
| 428 | − .owner = THIS_MODULE, | |
| 429 | 428 | .of_match_table = uctrl_match, |
| 430 | 429 | }, |
| 431 | 430 | .probe = uctrl_probe, |
| @@ -276,7 +276,6 @@ static struct platform_driver amiga_a3000_scsi_driver = { · 275 unmodified lines | ||
| 276 | 276 | .remove = __exit_p(amiga_a3000_scsi_remove), |
| 277 | 277 | .driver = { |
| 278 | 278 | .name = "amiga-a3000-scsi", |
| 279 | − .owner = THIS_MODULE, | |
| 280 | 279 | }, |
| 281 | 280 | }; |
| 282 | 281 | |
| @@ -112,7 +112,6 @@ static struct platform_driver amiga_a4000t_scsi_driver = { · 111 unmodified lines | ||
| 112 | 112 | .remove = __exit_p(amiga_a4000t_scsi_remove), |
| 113 | 113 | .driver = { |
| 114 | 114 | .name = "amiga-a4000t-scsi", |
| 115 | − .owner = THIS_MODULE, | |
| 116 | 115 | }, |
| 117 | 116 | }; |
| 118 | 117 | |
| @@ -105,7 +105,6 @@ bvme6000_device_remove(struct platform_device *dev) · 104 unmodified lines | ||
| 105 | 105 | static struct platform_driver bvme6000_scsi_driver = { |
| 106 | 106 | .driver = { |
| 107 | 107 | .name = "bvme6000-scsi", |
| 108 | − .owner = THIS_MODULE, | |
| 109 | 108 | }, |
| 110 | 109 | .probe = bvme6000_probe, |
| 111 | 110 | .remove = bvme6000_device_remove, |
| @@ -226,7 +226,6 @@ static struct platform_driver esp_jazz_driver = { · 225 unmodified lines | ||
| 226 | 226 | .remove = esp_jazz_remove, |
| 227 | 227 | .driver = { |
| 228 | 228 | .name = "jazz_esp", |
| 229 | − .owner = THIS_MODULE, | |
| 230 | 229 | }, |
| 231 | 230 | }; |
| 232 | 231 | |
| @@ -617,7 +617,6 @@ static struct platform_driver esp_mac_driver = { · 616 unmodified lines | ||
| 617 | 617 | .remove = esp_mac_remove, |
| 618 | 618 | .driver = { |
| 619 | 619 | .name = DRV_MODULE_NAME, |
| 620 | − .owner = THIS_MODULE, | |
| 621 | 620 | }, |
| 622 | 621 | }; |
| 623 | 622 | |
| @@ -126,7 +126,6 @@ static int mvme16x_device_remove(struct platform_device *dev) · 125 unmodified lines | ||
| 126 | 126 | static struct platform_driver mvme16x_scsi_driver = { |
| 127 | 127 | .driver = { |
| 128 | 128 | .name = "mvme16x-scsi", |
| 129 | − .owner = THIS_MODULE, | |
| 130 | 129 | }, |
| 131 | 130 | .probe = mvme16x_probe, |
| 132 | 131 | .remove = mvme16x_device_remove, |
| @@ -1455,7 +1455,6 @@ MODULE_DEVICE_TABLE(of, qpti_match); · 1454 unmodified lines | ||
| 1455 | 1455 | static struct platform_driver qpti_sbus_driver = { |
| 1456 | 1456 | .driver = { |
| 1457 | 1457 | .name = "qpti", |
| 1458 | − .owner = THIS_MODULE, | |
| 1459 | 1458 | .of_match_table = qpti_match, |
| 1460 | 1459 | }, |
| 1461 | 1460 | .probe = qpti_sbus_probe, |
| @@ -315,7 +315,6 @@ static struct platform_driver sgiwd93_driver = { · 314 unmodified lines | ||
| 315 | 315 | .remove = sgiwd93_remove, |
| 316 | 316 | .driver = { |
| 317 | 317 | .name = "sgiwd93", |
| 318 | − .owner = THIS_MODULE, | |
| 319 | 318 | } |
| 320 | 319 | }; |
| 321 | 320 | |
| @@ -137,7 +137,6 @@ static struct platform_driver snirm710_driver = { · 136 unmodified lines | ||
| 137 | 137 | .remove = snirm710_driver_remove, |
| 138 | 138 | .driver = { |
| 139 | 139 | .name = "snirm_53c710", |
| 140 | − .owner = THIS_MODULE, | |
| 141 | 140 | }, |
| 142 | 141 | }; |
| 143 | 142 | |
| @@ -295,7 +295,6 @@ static struct platform_driver esp_sun3x_driver = { · 294 unmodified lines | ||
| 295 | 295 | .remove = esp_sun3x_remove, |
| 296 | 296 | .driver = { |
| 297 | 297 | .name = "sun3x_esp", |
| 298 | − .owner = THIS_MODULE, | |
| 299 | 298 | }, |
| 300 | 299 | }; |
| 301 | 300 | |
| @@ -633,7 +633,6 @@ MODULE_DEVICE_TABLE(of, esp_match); · 632 unmodified lines | ||
| 633 | 633 | static struct platform_driver esp_sbus_driver = { |
| 634 | 634 | .driver = { |
| 635 | 635 | .name = "esp", |
| 636 | − .owner = THIS_MODULE, | |
| 637 | 636 | .of_match_table = esp_match, |
| 638 | 637 | }, |
| 639 | 638 | .probe = esp_sbus_probe, |
| @@ -393,7 +393,6 @@ static struct platform_driver ufshcd_pltfrm_driver = { · 392 unmodified lines | ||
| 393 | 393 | .shutdown = ufshcd_pltfrm_shutdown, |
| 394 | 394 | .driver = { |
| 395 | 395 | .name = "ufshcd", |
| 396 | − .owner = THIS_MODULE, | |
| 397 | 396 | .pm = &ufshcd_dev_pm_ops, |
| 398 | 397 | .of_match_table = ufs_of_match, |
| 399 | 398 | }, |
| @@ -91,7 +91,6 @@ MODULE_DEVICE_TABLE(of, gsbi_dt_match); · 90 unmodified lines | ||
| 91 | 91 | static struct platform_driver gsbi_driver = { |
| 92 | 92 | .driver = { |
| 93 | 93 | .name = "gsbi", |
| 94 | − .owner = THIS_MODULE, | |
| 95 | 94 | .of_match_table = gsbi_dt_match, |
| 96 | 95 | }, |
| 97 | 96 | .probe = gsbi_probe, |
| @@ -158,7 +158,6 @@ static struct platform_driver tegra20_fuse_driver = { · 157 unmodified lines | ||
| 158 | 158 | .probe = tegra20_fuse_probe, |
| 159 | 159 | .driver = { |
| 160 | 160 | .name = "tegra20_fuse", |
| 161 | − .owner = THIS_MODULE, | |
| 162 | 161 | .of_match_table = tegra20_fuse_of_match, |
| 163 | 162 | } |
| 164 | 163 | }; |
| @@ -130,7 +130,6 @@ static struct platform_driver tegra30_fuse_driver = { · 129 unmodified lines | ||
| 130 | 130 | .probe = tegra30_fuse_probe, |
| 131 | 131 | .driver = { |
| 132 | 132 | .name = "tegra_fuse", |
| 133 | − .owner = THIS_MODULE, | |
| 134 | 133 | .of_match_table = tegra30_fuse_of_match, |
| 135 | 134 | } |
| 136 | 135 | }; |
| @@ -803,7 +803,6 @@ static struct platform_driver knav_dma_driver = { · 802 unmodified lines | ||
| 803 | 803 | .remove = knav_dma_remove, |
| 804 | 804 | .driver = { |
| 805 | 805 | .name = "keystone-navigator-dma", |
| 806 | − .owner = THIS_MODULE, | |
| 807 | 806 | .of_match_table = of_match, |
| 808 | 807 | }, |
| 809 | 808 | }; |
| @@ -1805,7 +1805,6 @@ static struct platform_driver keystone_qmss_driver = { · 1804 unmodified lines | ||
| 1805 | 1805 | .remove = knav_queue_remove, |
| 1806 | 1806 | .driver = { |
| 1807 | 1807 | .name = "keystone-navigator-qmss", |
| 1808 | − .owner = THIS_MODULE, | |
| 1809 | 1808 | .of_match_table = keystone_qmss_of_match, |
| 1810 | 1809 | }, |
| 1811 | 1810 | }; |
| @@ -972,7 +972,6 @@ MODULE_ALIAS("platform:adi-spi3"); · 971 unmodified lines | ||
| 972 | 972 | static struct platform_driver adi_spi_driver = { |
| 973 | 973 | .driver = { |
| 974 | 974 | .name = "adi-spi3", |
| 975 | − .owner = THIS_MODULE, | |
| 976 | 975 | .pm = &adi_spi_pm_ops, |
| 977 | 976 | }, |
| 978 | 977 | .remove = adi_spi_remove, |
| @@ -282,7 +282,6 @@ static struct platform_driver altera_spi_driver = { · 281 unmodified lines | ||
| 282 | 282 | .remove = altera_spi_remove, |
| 283 | 283 | .driver = { |
| 284 | 284 | .name = DRV_NAME, |
| 285 | − .owner = THIS_MODULE, | |
| 286 | 285 | .pm = NULL, |
| 287 | 286 | .of_match_table = of_match_ptr(altera_spi_match), |
| 288 | 287 | }, |
| @@ -307,7 +307,6 @@ static struct platform_driver ath79_spi_driver = { · 306 unmodified lines | ||
| 307 | 307 | .shutdown = ath79_spi_shutdown, |
| 308 | 308 | .driver = { |
| 309 | 309 | .name = DRV_NAME, |
| 310 | − .owner = THIS_MODULE, | |
| 311 | 310 | }, |
| 312 | 311 | }; |
| 313 | 312 | module_platform_driver(ath79_spi_driver); |
| @@ -1522,7 +1522,6 @@ MODULE_DEVICE_TABLE(of, atmel_spi_dt_ids); · 1521 unmodified lines | ||
| 1522 | 1522 | static struct platform_driver atmel_spi_driver = { |
| 1523 | 1523 | .driver = { |
| 1524 | 1524 | .name = "atmel_spi", |
| 1525 | − .owner = THIS_MODULE, | |
| 1526 | 1525 | .pm = ATMEL_SPI_PM_OPS, |
| 1527 | 1526 | .of_match_table = of_match_ptr(atmel_spi_dt_ids), |
| 1528 | 1527 | }, |
| @@ -965,7 +965,6 @@ static struct platform_driver au1550_spi_drv = { · 964 unmodified lines | ||
| 965 | 965 | .remove = au1550_spi_remove, |
| 966 | 966 | .driver = { |
| 967 | 967 | .name = "au1550-spi", |
| 968 | − .owner = THIS_MODULE, | |
| 969 | 968 | }, |
| 970 | 969 | }; |
| 971 | 970 | |
| @@ -395,7 +395,6 @@ MODULE_DEVICE_TABLE(of, bcm2835_spi_match); · 394 unmodified lines | ||
| 395 | 395 | static struct platform_driver bcm2835_spi_driver = { |
| 396 | 396 | .driver = { |
| 397 | 397 | .name = DRV_NAME, |
| 398 | − .owner = THIS_MODULE, | |
| 399 | 398 | .of_match_table = bcm2835_spi_match, |
| 400 | 399 | }, |
| 401 | 400 | .probe = bcm2835_spi_probe, |
| @@ -459,7 +459,6 @@ static SIMPLE_DEV_PM_OPS(bcm63xx_hsspi_pm_ops, bcm63xx_hsspi_suspend, · 458 unmodified lines | ||
| 459 | 459 | static struct platform_driver bcm63xx_hsspi_driver = { |
| 460 | 460 | .driver = { |
| 461 | 461 | .name = "bcm63xx-hsspi", |
| 462 | − .owner = THIS_MODULE, | |
| 463 | 462 | .pm = &bcm63xx_hsspi_pm_ops, |
| 464 | 463 | }, |
| 465 | 464 | .probe = bcm63xx_hsspi_probe, |
| @@ -469,7 +469,6 @@ static const struct dev_pm_ops bcm63xx_spi_pm_ops = { · 468 unmodified lines | ||
| 469 | 469 | static struct platform_driver bcm63xx_spi_driver = { |
| 470 | 470 | .driver = { |
| 471 | 471 | .name = "bcm63xx-spi", |
| 472 | − .owner = THIS_MODULE, | |
| 473 | 472 | .pm = &bcm63xx_spi_pm_ops, |
| 474 | 473 | }, |
| 475 | 474 | .probe = bcm63xx_spi_probe, |
| @@ -921,7 +921,6 @@ static SIMPLE_DEV_PM_OPS(bfin_sport_spi_pm_ops, bfin_sport_spi_suspend, · 920 unmodified lines | ||
| 921 | 921 | static struct platform_driver bfin_sport_spi_driver = { |
| 922 | 922 | .driver = { |
| 923 | 923 | .name = DRV_NAME, |
| 924 | − .owner = THIS_MODULE, | |
| 925 | 924 | .pm = BFIN_SPORT_SPI_PM_OPS, |
| 926 | 925 | }, |
| 927 | 926 | .probe = bfin_sport_spi_probe, |
| @@ -1455,7 +1455,6 @@ MODULE_ALIAS("platform:bfin-spi"); · 1454 unmodified lines | ||
| 1455 | 1455 | static struct platform_driver bfin_spi_driver = { |
| 1456 | 1456 | .driver = { |
| 1457 | 1457 | .name = DRV_NAME, |
| 1458 | − .owner = THIS_MODULE, | |
| 1459 | 1458 | .pm = BFIN_SPI_PM_OPS, |
| 1460 | 1459 | }, |
| 1461 | 1460 | .probe = bfin_spi_probe, |
| @@ -203,7 +203,6 @@ err_out: · 202 unmodified lines | ||
| 203 | 203 | static struct platform_driver clps711x_spi_driver = { |
| 204 | 204 | .driver = { |
| 205 | 205 | .name = DRIVER_NAME, |
| 206 | − .owner = THIS_MODULE, | |
| 207 | 206 | }, |
| 208 | 207 | .probe = spi_clps711x_probe, |
| 209 | 208 | }; |
| @@ -1119,7 +1119,6 @@ static int davinci_spi_remove(struct platform_device *pdev) · 1118 unmodified lines | ||
| 1119 | 1119 | static struct platform_driver davinci_spi_driver = { |
| 1120 | 1120 | .driver = { |
| 1121 | 1121 | .name = "spi_davinci", |
| 1122 | − .owner = THIS_MODULE, | |
| 1123 | 1122 | .of_match_table = of_match_ptr(davinci_spi_of_match), |
| 1124 | 1123 | }, |
| 1125 | 1124 | .probe = davinci_spi_probe, |
| @@ -135,7 +135,6 @@ static struct platform_driver dw_spi_mmio_driver = { · 134 unmodified lines | ||
| 135 | 135 | .remove = dw_spi_mmio_remove, |
| 136 | 136 | .driver = { |
| 137 | 137 | .name = DRIVER_NAME, |
| 138 | − .owner = THIS_MODULE, | |
| 139 | 138 | .of_match_table = dw_spi_mmio_of_match, |
| 140 | 139 | }, |
| 141 | 140 | }; |
| @@ -494,7 +494,6 @@ static struct platform_driver efm32_spi_driver = { · 493 unmodified lines | ||
| 494 | 494 | |
| 495 | 495 | .driver = { |
| 496 | 496 | .name = DRIVER_NAME, |
| 497 | − .owner = THIS_MODULE, | |
| 498 | 497 | .of_match_table = efm32_spi_dt_ids, |
| 499 | 498 | }, |
| 500 | 499 | }; |
| @@ -964,7 +964,6 @@ static int ep93xx_spi_remove(struct platform_device *pdev) · 963 unmodified lines | ||
| 964 | 964 | static struct platform_driver ep93xx_spi_driver = { |
| 965 | 965 | .driver = { |
| 966 | 966 | .name = "ep93xx-spi", |
| 967 | − .owner = THIS_MODULE, | |
| 968 | 967 | }, |
| 969 | 968 | .probe = ep93xx_spi_probe, |
| 970 | 969 | .remove = ep93xx_spi_remove, |
| @@ -441,7 +441,6 @@ static struct platform_driver falcon_sflash_driver = { · 440 unmodified lines | ||
| 441 | 441 | .probe = falcon_sflash_probe, |
| 442 | 442 | .driver = { |
| 443 | 443 | .name = DRV_NAME, |
| 444 | − .owner = THIS_MODULE, | |
| 445 | 444 | .of_match_table = falcon_sflash_match, |
| 446 | 445 | } |
| 447 | 446 | }; |
| @@ -850,7 +850,6 @@ MODULE_DEVICE_TABLE(of, of_fsl_espi_match); · 849 unmodified lines | ||
| 850 | 850 | static struct platform_driver fsl_espi_driver = { |
| 851 | 851 | .driver = { |
| 852 | 852 | .name = "fsl_espi", |
| 853 | − .owner = THIS_MODULE, | |
| 854 | 853 | .of_match_table = of_fsl_espi_match, |
| 855 | 854 | .pm = &espi_pm, |
| 856 | 855 | }, |
| @@ -879,7 +879,6 @@ static int of_fsl_spi_remove(struct platform_device *ofdev) · 878 unmodified lines | ||
| 879 | 879 | static struct platform_driver of_fsl_spi_driver = { |
| 880 | 880 | .driver = { |
| 881 | 881 | .name = "fsl_spi", |
| 882 | − .owner = THIS_MODULE, | |
| 883 | 882 | .of_match_table = of_fsl_spi_match, |
| 884 | 883 | }, |
| 885 | 884 | .probe = of_fsl_spi_probe, |
| @@ -926,7 +925,6 @@ static struct platform_driver mpc8xxx_spi_driver = { · 40 unmodified lines | ||
| 926 | 925 | .remove = plat_mpc8xxx_spi_remove, |
| 927 | 926 | .driver = { |
| 928 | 927 | .name = "mpc8xxx_spi", |
| 929 | − .owner = THIS_MODULE, | |
| 930 | 928 | }, |
| 931 | 929 | }; |
| 932 | 930 | |
| @@ -539,7 +539,6 @@ MODULE_ALIAS("platform:" DRIVER_NAME); · 538 unmodified lines | ||
| 539 | 539 | static struct platform_driver spi_gpio_driver = { |
| 540 | 540 | .driver = { |
| 541 | 541 | .name = DRIVER_NAME, |
| 542 | − .owner = THIS_MODULE, | |
| 543 | 542 | .of_match_table = of_match_ptr(spi_gpio_dt_ids), |
| 544 | 543 | }, |
| 545 | 544 | .probe = spi_gpio_probe, |
| @@ -1231,7 +1231,6 @@ static int spi_imx_remove(struct platform_device *pdev) · 1230 unmodified lines | ||
| 1231 | 1231 | static struct platform_driver spi_imx_driver = { |
| 1232 | 1232 | .driver = { |
| 1233 | 1233 | .name = DRIVER_NAME, |
| 1234 | − .owner = THIS_MODULE, | |
| 1235 | 1234 | .of_match_table = spi_imx_dt_ids, |
| 1236 | 1235 | }, |
| 1237 | 1236 | .id_table = spi_imx_devtype, |
| @@ -600,7 +600,6 @@ static struct platform_driver mpc512x_psc_spi_of_driver = { · 599 unmodified lines | ||
| 600 | 600 | .remove = mpc512x_psc_spi_of_remove, |
| 601 | 601 | .driver = { |
| 602 | 602 | .name = "mpc512x-psc-spi", |
| 603 | − .owner = THIS_MODULE, | |
| 604 | 603 | .of_match_table = mpc512x_psc_spi_of_match, |
| 605 | 604 | }, |
| 606 | 605 | }; |
| @@ -508,7 +508,6 @@ static struct platform_driver mpc52xx_psc_spi_of_driver = { · 507 unmodified lines | ||
| 508 | 508 | .remove = mpc52xx_psc_spi_of_remove, |
| 509 | 509 | .driver = { |
| 510 | 510 | .name = "mpc52xx-psc-spi", |
| 511 | − .owner = THIS_MODULE, | |
| 512 | 511 | .of_match_table = mpc52xx_psc_spi_of_match, |
| 513 | 512 | }, |
| 514 | 513 | }; |
| @@ -543,7 +543,6 @@ MODULE_DEVICE_TABLE(of, mpc52xx_spi_match); · 542 unmodified lines | ||
| 543 | 543 | static struct platform_driver mpc52xx_spi_of_driver = { |
| 544 | 544 | .driver = { |
| 545 | 545 | .name = "mpc52xx-spi", |
| 546 | − .owner = THIS_MODULE, | |
| 547 | 546 | .of_match_table = mpc52xx_spi_match, |
| 548 | 547 | }, |
| 549 | 548 | .probe = mpc52xx_spi_probe, |
| @@ -572,7 +572,6 @@ static struct platform_driver mxs_spi_driver = { · 571 unmodified lines | ||
| 572 | 572 | .remove = mxs_spi_remove, |
| 573 | 573 | .driver = { |
| 574 | 574 | .name = DRIVER_NAME, |
| 575 | − .owner = THIS_MODULE, | |
| 576 | 575 | .of_match_table = mxs_spi_dt_ids, |
| 577 | 576 | }, |
| 578 | 577 | }; |
| @@ -423,7 +423,6 @@ static struct platform_driver nuc900_spi_driver = { · 422 unmodified lines | ||
| 423 | 423 | .remove = nuc900_spi_remove, |
| 424 | 424 | .driver = { |
| 425 | 425 | .name = "nuc900-spi", |
| 426 | − .owner = THIS_MODULE, | |
| 427 | 426 | }, |
| 428 | 427 | }; |
| 429 | 428 | module_platform_driver(nuc900_spi_driver); |
| @@ -351,7 +351,6 @@ static struct platform_driver tiny_spi_driver = { · 350 unmodified lines | ||
| 351 | 351 | .remove = tiny_spi_remove, |
| 352 | 352 | .driver = { |
| 353 | 353 | .name = DRV_NAME, |
| 354 | − .owner = THIS_MODULE, | |
| 355 | 354 | .pm = NULL, |
| 356 | 355 | .of_match_table = of_match_ptr(tiny_spi_match), |
| 357 | 356 | }, |
| @@ -247,7 +247,6 @@ MODULE_DEVICE_TABLE(of, octeon_spi_match); · 246 unmodified lines | ||
| 247 | 247 | static struct platform_driver octeon_spi_driver = { |
| 248 | 248 | .driver = { |
| 249 | 249 | .name = "spi-octeon", |
| 250 | − .owner = THIS_MODULE, | |
| 251 | 250 | .of_match_table = octeon_spi_match, |
| 252 | 251 | }, |
| 253 | 252 | .probe = octeon_spi_probe, |
| @@ -453,7 +453,6 @@ err: · 452 unmodified lines | ||
| 453 | 453 | static struct platform_driver omap1_spi100k_driver = { |
| 454 | 454 | .driver = { |
| 455 | 455 | .name = "omap1_spi100k", |
| 456 | − .owner = THIS_MODULE, | |
| 457 | 456 | }, |
| 458 | 457 | .probe = omap1_spi100k_probe, |
| 459 | 458 | }; |
| @@ -527,7 +527,6 @@ MODULE_ALIAS("platform:omap_uwire"); · 526 unmodified lines | ||
| 527 | 527 | static struct platform_driver uwire_driver = { |
| 528 | 528 | .driver = { |
| 529 | 529 | .name = "omap_uwire", |
| 530 | − .owner = THIS_MODULE, | |
| 531 | 530 | }, |
| 532 | 531 | .probe = uwire_probe, |
| 533 | 532 | .remove = uwire_remove, |
| @@ -1521,7 +1521,6 @@ static const struct dev_pm_ops omap2_mcspi_pm_ops = { · 1520 unmodified lines | ||
| 1521 | 1521 | static struct platform_driver omap2_mcspi_driver = { |
| 1522 | 1522 | .driver = { |
| 1523 | 1523 | .name = "omap2_mcspi", |
| 1524 | − .owner = THIS_MODULE, | |
| 1525 | 1524 | .pm = &omap2_mcspi_pm_ops, |
| 1526 | 1525 | .of_match_table = omap_mcspi_of_match, |
| 1527 | 1526 | }, |
| @@ -551,7 +551,6 @@ static const struct dev_pm_ops orion_spi_pm_ops = { · 550 unmodified lines | ||
| 551 | 551 | static struct platform_driver orion_spi_driver = { |
| 552 | 552 | .driver = { |
| 553 | 553 | .name = DRIVER_NAME, |
| 554 | − .owner = THIS_MODULE, | |
| 555 | 554 | .pm = &orion_spi_pm_ops, |
| 556 | 555 | .of_match_table = of_match_ptr(orion_spi_of_match_table), |
| 557 | 556 | }, |
| @@ -575,7 +575,6 @@ static struct platform_driver spi_ppc4xx_of_driver = { · 574 unmodified lines | ||
| 575 | 575 | .remove = spi_ppc4xx_of_remove, |
| 576 | 576 | .driver = { |
| 577 | 577 | .name = DRIVER_NAME, |
| 578 | − .owner = THIS_MODULE, | |
| 579 | 578 | .of_match_table = spi_ppc4xx_of_match, |
| 580 | 579 | }, |
| 581 | 580 | }; |
| @@ -1558,7 +1558,6 @@ static const struct dev_pm_ops pxa2xx_spi_pm_ops = { · 1557 unmodified lines | ||
| 1558 | 1558 | static struct platform_driver driver = { |
| 1559 | 1559 | .driver = { |
| 1560 | 1560 | .name = "pxa2xx-spi", |
| 1561 | − .owner = THIS_MODULE, | |
| 1562 | 1561 | .pm = &pxa2xx_spi_pm_ops, |
| 1563 | 1562 | .acpi_match_table = ACPI_PTR(pxa2xx_spi_acpi_match), |
| 1564 | 1563 | }, |
| @@ -756,7 +756,6 @@ static const struct dev_pm_ops spi_qup_dev_pm_ops = { · 755 unmodified lines | ||
| 756 | 756 | static struct platform_driver spi_qup_driver = { |
| 757 | 757 | .driver = { |
| 758 | 758 | .name = "spi_qup", |
| 759 | − .owner = THIS_MODULE, | |
| 760 | 759 | .pm = &spi_qup_dev_pm_ops, |
| 761 | 760 | .of_match_table = spi_qup_dt_match, |
| 762 | 761 | }, |
| @@ -846,7 +846,6 @@ MODULE_DEVICE_TABLE(of, rockchip_spi_dt_match); · 845 unmodified lines | ||
| 846 | 846 | static struct platform_driver rockchip_spi_driver = { |
| 847 | 847 | .driver = { |
| 848 | 848 | .name = DRIVER_NAME, |
| 849 | − .owner = THIS_MODULE, | |
| 850 | 849 | .pm = &rockchip_spi_pm, |
| 851 | 850 | .of_match_table = of_match_ptr(rockchip_spi_dt_match), |
| 852 | 851 | }, |
| @@ -1211,7 +1211,6 @@ static struct platform_driver rspi_driver = { · 1210 unmodified lines | ||
| 1211 | 1211 | .id_table = spi_driver_ids, |
| 1212 | 1212 | .driver = { |
| 1213 | 1213 | .name = "renesas_spi", |
| 1214 | − .owner = THIS_MODULE, | |
| 1215 | 1214 | .of_match_table = of_match_ptr(rspi_of_match), |
| 1216 | 1215 | }, |
| 1217 | 1216 | }; |
| @@ -663,7 +663,6 @@ static struct platform_driver s3c24xx_spi_driver = { · 662 unmodified lines | ||
| 663 | 663 | .remove = s3c24xx_spi_remove, |
| 664 | 664 | .driver = { |
| 665 | 665 | .name = "s3c2410-spi", |
| 666 | − .owner = THIS_MODULE, | |
| 667 | 666 | .pm = S3C24XX_SPI_PMOPS, |
| 668 | 667 | }, |
| 669 | 668 | }; |
| @@ -1394,7 +1394,6 @@ MODULE_DEVICE_TABLE(of, s3c64xx_spi_dt_match); · 1393 unmodified lines | ||
| 1394 | 1394 | static struct platform_driver s3c64xx_spi_driver = { |
| 1395 | 1395 | .driver = { |
| 1396 | 1396 | .name = "s3c64xx-spi", |
| 1397 | − .owner = THIS_MODULE, | |
| 1398 | 1397 | .pm = &s3c64xx_spi_pm, |
| 1399 | 1398 | .of_match_table = of_match_ptr(s3c64xx_spi_dt_match), |
| 1400 | 1399 | }, |
| @@ -315,7 +315,6 @@ static struct platform_driver hspi_driver = { · 314 unmodified lines | ||
| 315 | 315 | .remove = hspi_remove, |
| 316 | 316 | .driver = { |
| 317 | 317 | .name = "sh-hspi", |
| 318 | − .owner = THIS_MODULE, | |
| 319 | 318 | .of_match_table = hspi_of_match, |
| 320 | 319 | }, |
| 321 | 320 | }; |
| @@ -1235,7 +1235,6 @@ static struct platform_driver sh_msiof_spi_drv = { · 1234 unmodified lines | ||
| 1235 | 1235 | .id_table = spi_driver_ids, |
| 1236 | 1236 | .driver = { |
| 1237 | 1237 | .name = "spi_sh_msiof", |
| 1238 | − .owner = THIS_MODULE, | |
| 1239 | 1238 | .of_match_table = of_match_ptr(sh_msiof_match), |
| 1240 | 1239 | }, |
| 1241 | 1240 | }; |
| @@ -187,7 +187,6 @@ static struct platform_driver sh_sci_spi_drv = { · 186 unmodified lines | ||
| 187 | 187 | .remove = sh_sci_spi_remove, |
| 188 | 188 | .driver = { |
| 189 | 189 | .name = "spi_sh_sci", |
| 190 | − .owner = THIS_MODULE, | |
| 191 | 190 | }, |
| 192 | 191 | }; |
| 193 | 192 | module_platform_driver(sh_sci_spi_drv); |
| @@ -532,7 +532,6 @@ static struct platform_driver spi_sh_driver = { · 531 unmodified lines | ||
| 532 | 532 | .remove = spi_sh_remove, |
| 533 | 533 | .driver = { |
| 534 | 534 | .name = "sh_spi", |
| 535 | − .owner = THIS_MODULE, | |
| 536 | 535 | }, |
| 537 | 536 | }; |
| 538 | 537 | module_platform_driver(spi_sh_driver); |
| @@ -826,7 +826,6 @@ MODULE_DEVICE_TABLE(of, spi_sirfsoc_of_match); · 825 unmodified lines | ||
| 826 | 826 | static struct platform_driver spi_sirfsoc_driver = { |
| 827 | 827 | .driver = { |
| 828 | 828 | .name = DRIVER_NAME, |
| 829 | − .owner = THIS_MODULE, | |
| 830 | 829 | .pm = &spi_sirfsoc_pm_ops, |
| 831 | 830 | .of_match_table = spi_sirfsoc_of_match, |
| 832 | 831 | }, |
| @@ -464,7 +464,6 @@ static struct platform_driver sun4i_spi_driver = { · 463 unmodified lines | ||
| 464 | 464 | .remove = sun4i_spi_remove, |
| 465 | 465 | .driver = { |
| 466 | 466 | .name = "sun4i-spi", |
| 467 | − .owner = THIS_MODULE, | |
| 468 | 467 | .of_match_table = sun4i_spi_match, |
| 469 | 468 | .pm = &sun4i_spi_pm_ops, |
| 470 | 469 | }, |
| @@ -470,7 +470,6 @@ static struct platform_driver sun6i_spi_driver = { · 469 unmodified lines | ||
| 470 | 470 | .remove = sun6i_spi_remove, |
| 471 | 471 | .driver = { |
| 472 | 472 | .name = "sun6i-spi", |
| 473 | − .owner = THIS_MODULE, | |
| 474 | 473 | .of_match_table = sun6i_spi_match, |
| 475 | 474 | .pm = &sun6i_spi_pm_ops, |
| 476 | 475 | }, |
| @@ -1223,7 +1223,6 @@ static const struct dev_pm_ops tegra_spi_pm_ops = { · 1222 unmodified lines | ||
| 1223 | 1223 | static struct platform_driver tegra_spi_driver = { |
| 1224 | 1224 | .driver = { |
| 1225 | 1225 | .name = "spi-tegra114", |
| 1226 | − .owner = THIS_MODULE, | |
| 1227 | 1226 | .pm = &tegra_spi_pm_ops, |
| 1228 | 1227 | .of_match_table = tegra_spi_of_match, |
| 1229 | 1228 | }, |
| @@ -608,7 +608,6 @@ static const struct dev_pm_ops slink_pm_ops = { · 607 unmodified lines | ||
| 608 | 608 | static struct platform_driver tegra_sflash_driver = { |
| 609 | 609 | .driver = { |
| 610 | 610 | .name = "spi-tegra-sflash", |
| 611 | − .owner = THIS_MODULE, | |
| 612 | 611 | .pm = &slink_pm_ops, |
| 613 | 612 | .of_match_table = tegra_sflash_of_match, |
| 614 | 613 | }, |
| @@ -1224,7 +1224,6 @@ static const struct dev_pm_ops slink_pm_ops = { · 1223 unmodified lines | ||
| 1224 | 1224 | static struct platform_driver tegra_slink_driver = { |
| 1225 | 1225 | .driver = { |
| 1226 | 1226 | .name = "spi-tegra-slink", |
| 1227 | − .owner = THIS_MODULE, | |
| 1228 | 1227 | .pm = &slink_pm_ops, |
| 1229 | 1228 | .of_match_table = tegra_slink_of_match, |
| 1230 | 1229 | }, |
| @@ -567,7 +567,6 @@ static struct platform_driver ti_qspi_driver = { · 566 unmodified lines | ||
| 567 | 567 | .remove = ti_qspi_remove, |
| 568 | 568 | .driver = { |
| 569 | 569 | .name = "ti-qspi", |
| 570 | − .owner = THIS_MODULE, | |
| 571 | 570 | .pm = &ti_qspi_pm_ops, |
| 572 | 571 | .of_match_table = ti_qspi_match, |
| 573 | 572 | } |
| @@ -1561,7 +1561,6 @@ static int pch_spi_pd_resume(struct platform_device *pd_dev) · 1560 unmodified lines | ||
| 1561 | 1561 | static struct platform_driver pch_spi_pd_driver = { |
| 1562 | 1562 | .driver = { |
| 1563 | 1563 | .name = "pch-spi", |
| 1564 | − .owner = THIS_MODULE, | |
| 1565 | 1564 | }, |
| 1566 | 1565 | .probe = pch_spi_pd_probe, |
| 1567 | 1566 | .remove = pch_spi_pd_remove, |
| @@ -425,7 +425,6 @@ static struct platform_driver txx9spi_driver = { · 424 unmodified lines | ||
| 425 | 425 | .remove = txx9spi_remove, |
| 426 | 426 | .driver = { |
| 427 | 427 | .name = "spi_txx9", |
| 428 | − .owner = THIS_MODULE, | |
| 429 | 428 | }, |
| 430 | 429 | }; |
| 431 | 430 | |
| @@ -160,7 +160,6 @@ static struct platform_driver xtfpga_spi_driver = { · 159 unmodified lines | ||
| 160 | 160 | .remove = xtfpga_spi_remove, |
| 161 | 161 | .driver = { |
| 162 | 162 | .name = XTFPGA_SPI_NAME, |
| 163 | − .owner = THIS_MODULE, | |
| 164 | 163 | .of_match_table = of_match_ptr(xtfpga_spi_of_match), |
| 165 | 164 | }, |
| 166 | 165 | }; |
| @@ -768,7 +768,6 @@ static struct platform_driver spmi_pmic_arb_driver = { · 767 unmodified lines | ||
| 768 | 768 | .remove = spmi_pmic_arb_remove, |
| 769 | 769 | .driver = { |
| 770 | 770 | .name = "spmi_pmic_arb", |
| 771 | − .owner = THIS_MODULE, | |
| 772 | 771 | .of_match_table = spmi_pmic_arb_match_table, |
| 773 | 772 | }, |
| 774 | 773 | }; |
| @@ -157,7 +157,6 @@ static struct platform_driver timed_gpio_driver = { · 156 unmodified lines | ||
| 157 | 157 | .remove = timed_gpio_remove, |
| 158 | 158 | .driver = { |
| 159 | 159 | .name = TIMED_GPIO_NAME, |
| 160 | − .owner = THIS_MODULE, | |
| 161 | 160 | }, |
| 162 | 161 | }; |
| 163 | 162 | |
| @@ -3491,7 +3491,6 @@ static struct platform_driver udc_driver = { · 3490 unmodified lines | ||
| 3491 | 3491 | .suspend = nbu2ss_drv_suspend, |
| 3492 | 3492 | .resume = nbu2ss_drv_resume, |
| 3493 | 3493 | .driver = { |
| 3494 | − .owner = THIS_MODULE, | |
| 3495 | 3494 | .name = driver_name, |
| 3496 | 3495 | }, |
| 3497 | 3496 | }; |
| @@ -141,7 +141,6 @@ static struct platform_driver ad7606_driver = { · 140 unmodified lines | ||
| 141 | 141 | .id_table = ad7606_driver_ids, |
| 142 | 142 | .driver = { |
| 143 | 143 | .name = "ad7606", |
| 144 | − .owner = THIS_MODULE, | |
| 145 | 144 | .pm = AD7606_PAR_PM_OPS, |
| 146 | 145 | }, |
| 147 | 146 | }; |
| @@ -204,7 +204,6 @@ static struct platform_driver lpc32xx_adc_driver = { · 203 unmodified lines | ||
| 204 | 204 | .probe = lpc32xx_adc_probe, |
| 205 | 205 | .driver = { |
| 206 | 206 | .name = MOD_NAME, |
| 207 | − .owner = THIS_MODULE, | |
| 208 | 207 | .of_match_table = of_match_ptr(lpc32xx_adc_match), |
| 209 | 208 | }, |
| 210 | 209 | }; |
| @@ -1668,7 +1668,6 @@ static int mxs_lradc_remove(struct platform_device *pdev) · 1667 unmodified lines | ||
| 1668 | 1668 | static struct platform_driver mxs_lradc_driver = { |
| 1669 | 1669 | .driver = { |
| 1670 | 1670 | .name = DRIVER_NAME, |
| 1671 | − .owner = THIS_MODULE, | |
| 1672 | 1671 | .of_match_table = mxs_lradc_dt_ids, |
| 1673 | 1672 | }, |
| 1674 | 1673 | .probe = mxs_lradc_probe, |
| @@ -389,7 +389,6 @@ static struct platform_driver spear_adc_driver = { · 388 unmodified lines | ||
| 389 | 389 | .remove = spear_adc_remove, |
| 390 | 390 | .driver = { |
| 391 | 391 | .name = SPEAR_ADC_MOD_NAME, |
| 392 | − .owner = THIS_MODULE, | |
| 393 | 392 | .of_match_table = of_match_ptr(spear_adc_dt_ids), |
| 394 | 393 | }, |
| 395 | 394 | }; |
| @@ -279,7 +279,6 @@ static int iio_bfin_tmr_trigger_remove(struct platform_device *pdev) · 278 unmodified lines | ||
| 279 | 279 | static struct platform_driver iio_bfin_tmr_trigger_driver = { |
| 280 | 280 | .driver = { |
| 281 | 281 | .name = "iio_bfin_tmr_trigger", |
| 282 | − .owner = THIS_MODULE, | |
| 283 | 282 | }, |
| 284 | 283 | .probe = iio_bfin_tmr_trigger_probe, |
| 285 | 284 | .remove = iio_bfin_tmr_trigger_remove, |
| @@ -206,7 +206,6 @@ static struct platform_driver iio_trig_periodic_rtc_driver = { · 205 unmodified lines | ||
| 206 | 206 | .remove = iio_trig_periodic_rtc_remove, |
| 207 | 207 | .driver = { |
| 208 | 208 | .name = "iio_prtc_trigger", |
| 209 | − .owner = THIS_MODULE, | |
| 210 | 209 | }, |
| 211 | 210 | }; |
| 212 | 211 | |
| @@ -691,7 +691,6 @@ static struct platform_driver imx_drm_pdrv = { · 690 unmodified lines | ||
| 691 | 691 | .probe = imx_drm_platform_probe, |
| 692 | 692 | .remove = imx_drm_platform_remove, |
| 693 | 693 | .driver = { |
| 694 | − .owner = THIS_MODULE, | |
| 695 | 694 | .name = "imx-drm", |
| 696 | 695 | .pm = &imx_drm_pm_ops, |
| 697 | 696 | .of_match_table = imx_drm_dt_ids, |
| @@ -1754,7 +1754,6 @@ static struct platform_driver imx_hdmi_driver = { · 1753 unmodified lines | ||
| 1754 | 1754 | .remove = imx_hdmi_platform_remove, |
| 1755 | 1755 | .driver = { |
| 1756 | 1756 | .name = "imx-hdmi", |
| 1757 | − .owner = THIS_MODULE, | |
| 1758 | 1757 | .of_match_table = imx_hdmi_dt_ids, |
| 1759 | 1758 | }, |
| 1760 | 1759 | }; |
| @@ -604,7 +604,6 @@ static struct platform_driver imx_ldb_driver = { · 603 unmodified lines | ||
| 604 | 604 | .driver = { |
| 605 | 605 | .of_match_table = imx_ldb_dt_ids, |
| 606 | 606 | .name = DRIVER_NAME, |
| 607 | − .owner = THIS_MODULE, | |
| 608 | 607 | }, |
| 609 | 608 | }; |
| 610 | 609 | |
| @@ -724,7 +724,6 @@ static struct platform_driver imx_tve_driver = { · 723 unmodified lines | ||
| 724 | 724 | .driver = { |
| 725 | 725 | .of_match_table = imx_tve_dt_ids, |
| 726 | 726 | .name = "imx-tve", |
| 727 | − .owner = THIS_MODULE, | |
| 728 | 727 | }, |
| 729 | 728 | }; |
| 730 | 729 | |
| @@ -284,7 +284,6 @@ static struct platform_driver imx_pd_driver = { · 283 unmodified lines | ||
| 284 | 284 | .driver = { |
| 285 | 285 | .of_match_table = imx_pd_dt_ids, |
| 286 | 286 | .name = "imx-parallel-display", |
| 287 | − .owner = THIS_MODULE, | |
| 288 | 287 | }, |
| 289 | 288 | }; |
| 290 | 289 | |
| @@ -707,7 +707,6 @@ static int vpfe_remove(struct platform_device *pdev) · 706 unmodified lines | ||
| 707 | 707 | static struct platform_driver vpfe_driver = { |
| 708 | 708 | .driver = { |
| 709 | 709 | .name = CAPTURE_DRV_NAME, |
| 710 | − .owner = THIS_MODULE, | |
| 711 | 710 | }, |
| 712 | 711 | .probe = vpfe_probe, |
| 713 | 712 | .remove = vpfe_remove, |
| @@ -605,7 +605,6 @@ static struct platform_driver lirc_parallel_driver = { · 604 unmodified lines | ||
| 605 | 605 | .resume = lirc_parallel_resume, |
| 606 | 606 | .driver = { |
| 607 | 607 | .name = LIRC_DRIVER_NAME, |
| 608 | − .owner = THIS_MODULE, | |
| 609 | 608 | }, |
| 610 | 609 | }; |
| 611 | 610 | |
| @@ -1060,7 +1060,6 @@ static struct platform_driver lirc_serial_driver = { · 1059 unmodified lines | ||
| 1060 | 1060 | .resume = lirc_serial_resume, |
| 1061 | 1061 | .driver = { |
| 1062 | 1062 | .name = "lirc_serial", |
| 1063 | − .owner = THIS_MODULE, | |
| 1064 | 1063 | }, |
| 1065 | 1064 | }; |
| 1066 | 1065 | |
| @@ -931,7 +931,6 @@ static struct platform_driver lirc_sir_driver = { · 930 unmodified lines | ||
| 931 | 931 | .remove = lirc_sir_remove, |
| 932 | 932 | .driver = { |
| 933 | 933 | .name = "lirc_sir", |
| 934 | − .owner = THIS_MODULE, | |
| 935 | 934 | }, |
| 936 | 935 | }; |
| 937 | 936 | |
| @@ -1476,7 +1476,6 @@ static struct platform_driver iss_driver = { · 1475 unmodified lines | ||
| 1476 | 1476 | .remove = iss_remove, |
| 1477 | 1477 | .id_table = omap4iss_id_table, |
| 1478 | 1478 | .driver = { |
| 1479 | − .owner = THIS_MODULE, | |
| 1480 | 1479 | .name = "omap4iss", |
| 1481 | 1480 | }, |
| 1482 | 1481 | }; |
| @@ -1133,7 +1133,6 @@ static struct platform_driver xlr_net_driver = { · 1132 unmodified lines | ||
| 1133 | 1133 | .remove = xlr_net_remove, |
| 1134 | 1134 | .driver = { |
| 1135 | 1135 | .name = "xlr-net", |
| 1136 | − .owner = THIS_MODULE, | |
| 1137 | 1136 | }, |
| 1138 | 1137 | }; |
| 1139 | 1138 | |
| @@ -973,7 +973,6 @@ static struct platform_driver nvec_device_driver = { · 972 unmodified lines | ||
| 973 | 973 | .remove = tegra_nvec_remove, |
| 974 | 974 | .driver = { |
| 975 | 975 | .name = "nvec", |
| 976 | − .owner = THIS_MODULE, | |
| 977 | 976 | .pm = &nvec_pm_ops, |
| 978 | 977 | .of_match_table = nvidia_nvec_of_match, |
| 979 | 978 | } |
| @@ -181,7 +181,6 @@ static struct platform_driver nvec_kbd_driver = { · 180 unmodified lines | ||
| 181 | 181 | .remove = nvec_kbd_remove, |
| 182 | 182 | .driver = { |
| 183 | 183 | .name = "nvec-kbd", |
| 184 | − .owner = THIS_MODULE, | |
| 185 | 184 | }, |
| 186 | 185 | }; |
| 187 | 186 | |
| @@ -87,7 +87,6 @@ static struct platform_driver nvec_paz00_driver = { · 86 unmodified lines | ||
| 87 | 87 | .remove = nvec_paz00_remove, |
| 88 | 88 | .driver = { |
| 89 | 89 | .name = "nvec-paz00", |
| 90 | − .owner = THIS_MODULE, | |
| 91 | 90 | }, |
| 92 | 91 | }; |
| 93 | 92 | |
| @@ -432,7 +432,6 @@ static struct platform_driver nvec_power_driver = { · 431 unmodified lines | ||
| 432 | 432 | .remove = nvec_power_remove, |
| 433 | 433 | .driver = { |
| 434 | 434 | .name = "nvec-power", |
| 435 | − .owner = THIS_MODULE, | |
| 436 | 435 | } |
| 437 | 436 | }; |
| 438 | 437 | |
| @@ -177,7 +177,6 @@ static struct platform_driver nvec_mouse_driver = { · 176 unmodified lines | ||
| 177 | 177 | .remove = nvec_mouse_remove, |
| 178 | 178 | .driver = { |
| 179 | 179 | .name = "nvec-mouse", |
| 180 | − .owner = THIS_MODULE, | |
| 181 | 180 | .pm = &nvec_mouse_pm_ops, |
| 182 | 181 | }, |
| 183 | 182 | }; |
| @@ -3882,7 +3882,6 @@ static struct of_device_id octeon_usb_match[] = { · 3881 unmodified lines | ||
| 3882 | 3882 | static struct platform_driver octeon_usb_driver = { |
| 3883 | 3883 | .driver = { |
| 3884 | 3884 | .name = "OcteonUSB", |
| 3885 | − .owner = THIS_MODULE, | |
| 3886 | 3885 | .of_match_table = octeon_usb_match, |
| 3887 | 3886 | }, |
| 3888 | 3887 | .probe = octeon_usb_probe, |
| @@ -877,7 +877,6 @@ static struct platform_driver cvm_oct_driver = { · 876 unmodified lines | ||
| 877 | 877 | .probe = cvm_oct_probe, |
| 878 | 878 | .remove = cvm_oct_remove, |
| 879 | 879 | .driver = { |
| 880 | − .owner = THIS_MODULE, | |
| 881 | 880 | .name = KBUILD_MODNAME, |
| 882 | 881 | .of_match_table = cvm_oct_match, |
| 883 | 882 | }, |
| @@ -224,7 +224,6 @@ static struct platform_driver g_oz_plat_drv = { · 223 unmodified lines | ||
| 224 | 224 | .resume = oz_plat_resume, |
| 225 | 225 | .driver = { |
| 226 | 226 | .name = OZ_PLAT_DEV_NAME, |
| 227 | − .owner = THIS_MODULE, | |
| 228 | 227 | }, |
| 229 | 228 | }; |
| 230 | 229 | |
| @@ -329,7 +329,6 @@ static struct platform_driver armada_thermal_driver = { · 328 unmodified lines | ||
| 329 | 329 | .remove = armada_thermal_exit, |
| 330 | 330 | .driver = { |
| 331 | 331 | .name = "armada_thermal", |
| 332 | − .owner = THIS_MODULE, | |
| 333 | 332 | .of_match_table = armada_thermal_id_table, |
| 334 | 333 | }, |
| 335 | 334 | }; |
| @@ -78,7 +78,6 @@ static const struct of_device_id db8500_cpufreq_cooling_match[] = { · 77 unmodified lines | ||
| 78 | 78 | |
| 79 | 79 | static struct platform_driver db8500_cpufreq_cooling_driver = { |
| 80 | 80 | .driver = { |
| 81 | − .owner = THIS_MODULE, | |
| 82 | 81 | .name = "db8500-cpufreq-cooling", |
| 83 | 82 | .of_match_table = of_match_ptr(db8500_cpufreq_cooling_match), |
| 84 | 83 | }, |
| @@ -517,7 +517,6 @@ static const struct of_device_id db8500_thermal_match[] = { · 516 unmodified lines | ||
| 517 | 517 | |
| 518 | 518 | static struct platform_driver db8500_thermal_driver = { |
| 519 | 519 | .driver = { |
| 520 | − .owner = THIS_MODULE, | |
| 521 | 520 | .name = "db8500-thermal", |
| 522 | 521 | .of_match_table = of_match_ptr(db8500_thermal_match), |
| 523 | 522 | }, |
| @@ -184,7 +184,6 @@ static struct platform_driver dove_thermal_driver = { · 183 unmodified lines | ||
| 184 | 184 | .remove = dove_thermal_exit, |
| 185 | 185 | .driver = { |
| 186 | 186 | .name = "dove_thermal", |
| 187 | − .owner = THIS_MODULE, | |
| 188 | 187 | .of_match_table = dove_thermal_id_table, |
| 189 | 188 | }, |
| 190 | 189 | }; |
| @@ -637,7 +637,6 @@ static SIMPLE_DEV_PM_OPS(imx_thermal_pm_ops, · 636 unmodified lines | ||
| 637 | 637 | static struct platform_driver imx_thermal = { |
| 638 | 638 | .driver = { |
| 639 | 639 | .name = "imx_thermal", |
| 640 | − .owner = THIS_MODULE, | |
| 641 | 640 | .pm = &imx_thermal_pm_ops, |
| 642 | 641 | .of_match_table = of_imx_thermal_match, |
| 643 | 642 | }, |
| @@ -114,7 +114,6 @@ static struct platform_driver kirkwood_thermal_driver = { · 113 unmodified lines | ||
| 114 | 114 | .remove = kirkwood_thermal_exit, |
| 115 | 115 | .driver = { |
| 116 | 116 | .name = "kirkwood_thermal", |
| 117 | − .owner = THIS_MODULE, | |
| 118 | 117 | .of_match_table = kirkwood_thermal_id_table, |
| 119 | 118 | }, |
| 120 | 119 | }; |
| @@ -750,7 +750,6 @@ static SIMPLE_DEV_PM_OPS(exynos_tmu_pm, · 749 unmodified lines | ||
| 750 | 750 | static struct platform_driver exynos_tmu_driver = { |
| 751 | 751 | .driver = { |
| 752 | 752 | .name = "exynos-tmu", |
| 753 | − .owner = THIS_MODULE, | |
| 754 | 753 | .pm = EXYNOS_TMU_PM, |
| 755 | 754 | .of_match_table = exynos_tmu_match, |
| 756 | 755 | }, |
| @@ -186,7 +186,6 @@ static struct platform_driver spear_thermal_driver = { · 185 unmodified lines | ||
| 186 | 186 | .remove = spear_thermal_exit, |
| 187 | 187 | .driver = { |
| 188 | 188 | .name = "spear_thermal", |
| 189 | − .owner = THIS_MODULE, | |
| 190 | 189 | .pm = &spear_thermal_pm_ops, |
| 191 | 190 | .of_match_table = spear_thermal_id_table, |
| 192 | 191 | }, |
| @@ -194,7 +194,6 @@ int st_mmap_remove(struct platform_device *pdev) · 193 unmodified lines | ||
| 194 | 194 | static struct platform_driver st_mmap_thermal_driver = { |
| 195 | 195 | .driver = { |
| 196 | 196 | .name = "st_thermal_mmap", |
| 197 | − .owner = THIS_MODULE, | |
| 198 | 197 | .pm = &st_thermal_pm_ops, |
| 199 | 198 | .of_match_table = st_mmap_thermal_of_match, |
| 200 | 199 | }, |
| @@ -165,7 +165,6 @@ int st_syscfg_remove(struct platform_device *pdev) · 164 unmodified lines | ||
| 165 | 165 | static struct platform_driver st_syscfg_thermal_driver = { |
| 166 | 166 | .driver = { |
| 167 | 167 | .name = "st_syscfg_thermal", |
| 168 | − .owner = THIS_MODULE, | |
| 169 | 168 | .pm = &st_thermal_pm_ops, |
| 170 | 169 | .of_match_table = st_syscfg_thermal_of_match, |
| 171 | 170 | }, |
| @@ -1802,7 +1802,6 @@ static struct platform_driver amiga_serial_driver = { · 1801 unmodified lines | ||
| 1802 | 1802 | .remove = __exit_p(amiga_serial_remove), |
| 1803 | 1803 | .driver = { |
| 1804 | 1804 | .name = "amiga-serial", |
| 1805 | − .owner = THIS_MODULE, | |
| 1806 | 1805 | }, |
| 1807 | 1806 | }; |
| 1808 | 1807 | |
| @@ -740,7 +740,6 @@ static const struct of_device_id ehv_bc_tty_of_ids[] = { · 739 unmodified lines | ||
| 740 | 740 | |
| 741 | 741 | static struct platform_driver ehv_bc_tty_driver = { |
| 742 | 742 | .driver = { |
| 743 | − .owner = THIS_MODULE, | |
| 744 | 743 | .name = "ehv-bc", |
| 745 | 744 | .of_match_table = ehv_bc_tty_of_ids, |
| 746 | 745 | }, |
| @@ -262,7 +262,6 @@ static struct platform_driver hvc_opal_driver = { · 261 unmodified lines | ||
| 262 | 262 | .remove = hvc_opal_remove, |
| 263 | 263 | .driver = { |
| 264 | 264 | .name = hvc_opal_name, |
| 265 | − .owner = THIS_MODULE, | |
| 266 | 265 | .of_match_table = hvc_opal_match, |
| 267 | 266 | } |
| 268 | 267 | }; |
| @@ -178,7 +178,6 @@ static struct platform_driver hvc_tile_driver = { · 177 unmodified lines | ||
| 178 | 178 | .shutdown = hvc_tile_shutdown, |
| 179 | 179 | .driver = { |
| 180 | 180 | .name = "hvc-tile", |
| 181 | − .owner = THIS_MODULE, | |
| 182 | 181 | } |
| 183 | 182 | }; |
| 184 | 183 | #endif |
| @@ -3483,7 +3483,6 @@ static struct platform_driver serial8250_isa_driver = { · 3482 unmodified lines | ||
| 3483 | 3483 | .resume = serial8250_resume, |
| 3484 | 3484 | .driver = { |
| 3485 | 3485 | .name = "serial8250", |
| 3486 | − .owner = THIS_MODULE, | |
| 3487 | 3486 | }, |
| 3488 | 3487 | }; |
| 3489 | 3488 | |
| @@ -584,7 +584,6 @@ MODULE_DEVICE_TABLE(acpi, dw8250_acpi_match); · 583 unmodified lines | ||
| 584 | 584 | static struct platform_driver dw8250_platform_driver = { |
| 585 | 585 | .driver = { |
| 586 | 586 | .name = "dw-apb-uart", |
| 587 | − .owner = THIS_MODULE, | |
| 588 | 587 | .pm = &dw8250_pm_ops, |
| 589 | 588 | .of_match_table = dw8250_of_match, |
| 590 | 589 | .acpi_match_table = ACPI_PTR(dw8250_acpi_match), |
| @@ -159,7 +159,6 @@ static struct platform_driver serial8250_em_platform_driver = { · 158 unmodified lines | ||
| 159 | 159 | .driver = { |
| 160 | 160 | .name = "serial8250-em", |
| 161 | 161 | .of_match_table = serial8250_em_dt_ids, |
| 162 | − .owner = THIS_MODULE, | |
| 163 | 162 | }, |
| 164 | 163 | .probe = serial8250_em_probe, |
| 165 | 164 | .remove = serial8250_em_remove, |
| @@ -475,7 +475,6 @@ static struct platform_driver altera_jtaguart_platform_driver = { · 474 unmodified lines | ||
| 475 | 475 | .remove = altera_jtaguart_remove, |
| 476 | 476 | .driver = { |
| 477 | 477 | .name = DRV_NAME, |
| 478 | − .owner = THIS_MODULE, | |
| 479 | 478 | .of_match_table = of_match_ptr(altera_jtaguart_match), |
| 480 | 479 | }, |
| 481 | 480 | }; |
| @@ -623,7 +623,6 @@ static struct platform_driver altera_uart_platform_driver = { · 622 unmodified lines | ||
| 623 | 623 | .remove = altera_uart_remove, |
| 624 | 624 | .driver = { |
| 625 | 625 | .name = DRV_NAME, |
| 626 | − .owner = THIS_MODULE, | |
| 627 | 626 | .of_match_table = of_match_ptr(altera_uart_match), |
| 628 | 627 | }, |
| 629 | 628 | }; |
| @@ -585,7 +585,6 @@ static struct of_device_id apbuart_match[] = { · 584 unmodified lines | ||
| 585 | 585 | static struct platform_driver grlib_apbuart_of_driver = { |
| 586 | 586 | .probe = apbuart_probe, |
| 587 | 587 | .driver = { |
| 588 | − .owner = THIS_MODULE, | |
| 589 | 588 | .name = "grlib-apbuart", |
| 590 | 589 | .of_match_table = apbuart_match, |
| 591 | 590 | }, |
| @@ -744,7 +744,6 @@ static struct platform_driver ar933x_uart_platform_driver = { · 743 unmodified lines | ||
| 744 | 744 | .remove = ar933x_uart_remove, |
| 745 | 745 | .driver = { |
| 746 | 746 | .name = DRIVER_NAME, |
| 747 | − .owner = THIS_MODULE, | |
| 748 | 747 | .of_match_table = of_match_ptr(ar933x_uart_of_ids), |
| 749 | 748 | }, |
| 750 | 749 | }; |
| @@ -653,7 +653,6 @@ static struct platform_driver arc_platform_driver = { · 652 unmodified lines | ||
| 653 | 653 | .remove = arc_serial_remove, |
| 654 | 654 | .driver = { |
| 655 | 655 | .name = DRIVER_NAME, |
| 656 | − .owner = THIS_MODULE, | |
| 657 | 656 | .of_match_table = arc_uart_dt_ids, |
| 658 | 657 | }, |
| 659 | 658 | }; |
| @@ -2650,7 +2650,6 @@ static struct platform_driver atmel_serial_driver = { · 2649 unmodified lines | ||
| 2650 | 2650 | .resume = atmel_serial_resume, |
| 2651 | 2651 | .driver = { |
| 2652 | 2652 | .name = "atmel_usart", |
| 2653 | − .owner = THIS_MODULE, | |
| 2654 | 2653 | .of_match_table = of_match_ptr(atmel_serial_dt_ids), |
| 2655 | 2654 | }, |
| 2656 | 2655 | }; |
| @@ -885,7 +885,6 @@ static struct platform_driver bcm_uart_platform_driver = { · 884 unmodified lines | ||
| 885 | 885 | .probe = bcm_uart_probe, |
| 886 | 886 | .remove = bcm_uart_remove, |
| 887 | 887 | .driver = { |
| 888 | − .owner = THIS_MODULE, | |
| 889 | 888 | .name = "bcm63xx_uart", |
| 890 | 889 | .of_match_table = bcm63xx_of_match, |
| 891 | 890 | }, |
| @@ -1387,7 +1387,6 @@ static struct platform_driver bfin_serial_driver = { · 1386 unmodified lines | ||
| 1387 | 1387 | .resume = bfin_serial_resume, |
| 1388 | 1388 | .driver = { |
| 1389 | 1389 | .name = DRIVER_NAME, |
| 1390 | − .owner = THIS_MODULE, | |
| 1391 | 1390 | }, |
| 1392 | 1391 | }; |
| 1393 | 1392 | |
| @@ -543,7 +543,6 @@ MODULE_DEVICE_TABLE(of, clps711x_uart_dt_ids); · 542 unmodified lines | ||
| 543 | 543 | static struct platform_driver clps711x_uart_platform = { |
| 544 | 544 | .driver = { |
| 545 | 545 | .name = "clps711x-uart", |
| 546 | − .owner = THIS_MODULE, | |
| 547 | 546 | .of_match_table = of_match_ptr(clps711x_uart_dt_ids), |
| 548 | 547 | }, |
| 549 | 548 | .probe = uart_clps711x_probe, |
| @@ -1454,7 +1454,6 @@ static struct of_device_id cpm_uart_match[] = { · 1453 unmodified lines | ||
| 1454 | 1454 | static struct platform_driver cpm_uart_driver = { |
| 1455 | 1455 | .driver = { |
| 1456 | 1456 | .name = "cpm_uart", |
| 1457 | − .owner = THIS_MODULE, | |
| 1458 | 1457 | .of_match_table = cpm_uart_match, |
| 1459 | 1458 | }, |
| 1460 | 1459 | .probe = cpm_uart_probe, |
| @@ -814,7 +814,6 @@ static struct platform_driver efm32_uart_driver = { · 813 unmodified lines | ||
| 814 | 814 | |
| 815 | 815 | .driver = { |
| 816 | 816 | .name = DRIVER_NAME, |
| 817 | − .owner = THIS_MODULE, | |
| 818 | 817 | .of_match_table = efm32_uart_dt_ids, |
| 819 | 818 | }, |
| 820 | 819 | }; |
| @@ -1888,7 +1888,6 @@ static struct platform_driver lpuart_driver = { · 1887 unmodified lines | ||
| 1888 | 1888 | .remove = lpuart_remove, |
| 1889 | 1889 | .driver = { |
| 1890 | 1890 | .name = "fsl-lpuart", |
| 1891 | − .owner = THIS_MODULE, | |
| 1892 | 1891 | .of_match_table = lpuart_dt_ids, |
| 1893 | 1892 | .pm = &lpuart_pm_ops, |
| 1894 | 1893 | }, |
| @@ -1952,7 +1952,6 @@ static struct platform_driver serial_imx_driver = { · 1951 unmodified lines | ||
| 1952 | 1952 | .id_table = imx_uart_devtype, |
| 1953 | 1953 | .driver = { |
| 1954 | 1954 | .name = "imx-uart", |
| 1955 | − .owner = THIS_MODULE, | |
| 1956 | 1955 | .of_match_table = imx_uart_dt_ids, |
| 1957 | 1956 | }, |
| 1958 | 1957 | }; |
| @@ -745,7 +745,6 @@ MODULE_DEVICE_TABLE(of, ltq_asc_match); · 744 unmodified lines | ||
| 745 | 745 | static struct platform_driver lqasc_driver = { |
| 746 | 746 | .driver = { |
| 747 | 747 | .name = DRVNAME, |
| 748 | − .owner = THIS_MODULE, | |
| 749 | 748 | .of_match_table = ltq_asc_match, |
| 750 | 749 | }, |
| 751 | 750 | }; |
| @@ -768,7 +768,6 @@ static struct platform_driver serial_hs_lpc32xx_driver = { · 767 unmodified lines | ||
| 768 | 768 | .resume = serial_hs_lpc32xx_resume, |
| 769 | 769 | .driver = { |
| 770 | 770 | .name = MODNAME, |
| 771 | − .owner = THIS_MODULE, | |
| 772 | 771 | .of_match_table = serial_hs_lpc32xx_dt_ids, |
| 773 | 772 | }, |
| 774 | 773 | }; |
| @@ -667,7 +667,6 @@ static struct platform_driver mcf_platform_driver = { · 666 unmodified lines | ||
| 667 | 667 | .remove = mcf_remove, |
| 668 | 668 | .driver = { |
| 669 | 669 | .name = "mcfuart", |
| 670 | − .owner = THIS_MODULE, | |
| 671 | 670 | }, |
| 672 | 671 | }; |
| 673 | 672 | |
| @@ -599,7 +599,6 @@ static struct platform_driver meson_uart_platform_driver = { · 598 unmodified lines | ||
| 599 | 599 | .probe = meson_uart_probe, |
| 600 | 600 | .remove = meson_uart_remove, |
| 601 | 601 | .driver = { |
| 602 | − .owner = THIS_MODULE, | |
| 603 | 602 | .name = "meson_uart", |
| 604 | 603 | .of_match_table = meson_uart_dt_match, |
| 605 | 604 | }, |
| @@ -1889,7 +1889,6 @@ static struct platform_driver mpc52xx_uart_of_driver = { · 1888 unmodified lines | ||
| 1889 | 1889 | #endif |
| 1890 | 1890 | .driver = { |
| 1891 | 1891 | .name = "mpc52xx-psc-uart", |
| 1892 | − .owner = THIS_MODULE, | |
| 1893 | 1892 | .of_match_table = mpc52xx_uart_of_match, |
| 1894 | 1893 | }, |
| 1895 | 1894 | }; |
| @@ -2124,7 +2124,6 @@ static struct platform_driver mpsc_driver = { · 2123 unmodified lines | ||
| 2124 | 2124 | .remove = mpsc_drv_remove, |
| 2125 | 2125 | .driver = { |
| 2126 | 2126 | .name = MPSC_CTLR_NAME, |
| 2127 | − .owner = THIS_MODULE, | |
| 2128 | 2127 | }, |
| 2129 | 2128 | }; |
| 2130 | 2129 | |
| @@ -1119,7 +1119,6 @@ static struct platform_driver msm_platform_driver = { · 1118 unmodified lines | ||
| 1119 | 1119 | .probe = msm_serial_probe, |
| 1120 | 1120 | .driver = { |
| 1121 | 1121 | .name = "msm_serial", |
| 1122 | − .owner = THIS_MODULE, | |
| 1123 | 1122 | .of_match_table = msm_match_table, |
| 1124 | 1123 | }, |
| 1125 | 1124 | }; |
| @@ -1838,7 +1838,6 @@ static struct platform_driver msm_serial_hs_platform_driver = { · 1837 unmodified lines | ||
| 1838 | 1838 | .remove = msm_hs_remove, |
| 1839 | 1839 | .driver = { |
| 1840 | 1840 | .name = "msm_serial_hs", |
| 1841 | − .owner = THIS_MODULE, | |
| 1842 | 1841 | .pm = &msm_hs_dev_pm_ops, |
| 1843 | 1842 | }, |
| 1844 | 1843 | }; |
| @@ -1339,7 +1339,6 @@ static struct platform_driver mxs_auart_driver = { · 1338 unmodified lines | ||
| 1339 | 1339 | .remove = mxs_auart_remove, |
| 1340 | 1340 | .driver = { |
| 1341 | 1341 | .name = "mxs-auart", |
| 1342 | − .owner = THIS_MODULE, | |
| 1343 | 1342 | .of_match_table = mxs_auart_dt_ids, |
| 1344 | 1343 | }, |
| 1345 | 1344 | }; |
| @@ -710,7 +710,6 @@ static struct platform_driver serial_netx_driver = { · 709 unmodified lines | ||
| 710 | 710 | |
| 711 | 711 | .driver = { |
| 712 | 712 | .name = DRIVER_NAME, |
| 713 | − .owner = THIS_MODULE, | |
| 714 | 713 | }, |
| 715 | 714 | }; |
| 716 | 715 | |
| @@ -342,7 +342,6 @@ static struct of_device_id of_platform_serial_table[] = { · 341 unmodified lines | ||
| 342 | 342 | static struct platform_driver of_platform_serial_driver = { |
| 343 | 343 | .driver = { |
| 344 | 344 | .name = "of_serial", |
| 345 | − .owner = THIS_MODULE, | |
| 346 | 345 | .of_match_table = of_platform_serial_table, |
| 347 | 346 | }, |
| 348 | 347 | .probe = of_platform_serial_probe, |
| @@ -1876,7 +1876,6 @@ static struct platform_driver pmz_driver = { · 1875 unmodified lines | ||
| 1876 | 1876 | .remove = __exit_p(pmz_detach), |
| 1877 | 1877 | .driver = { |
| 1878 | 1878 | .name = "scc", |
| 1879 | − .owner = THIS_MODULE, | |
| 1880 | 1879 | }, |
| 1881 | 1880 | }; |
| 1882 | 1881 | |
| @@ -829,7 +829,6 @@ static int pnx8xxx_serial_remove(struct platform_device *pdev) · 828 unmodified lines | ||
| 829 | 829 | static struct platform_driver pnx8xxx_serial_driver = { |
| 830 | 830 | .driver = { |
| 831 | 831 | .name = "pnx8xxx-uart", |
| 832 | − .owner = THIS_MODULE, | |
| 833 | 832 | }, |
| 834 | 833 | .probe = pnx8xxx_serial_probe, |
| 835 | 834 | .remove = pnx8xxx_serial_remove, |
| @@ -933,7 +933,6 @@ static struct platform_driver serial_pxa_driver = { · 932 unmodified lines | ||
| 933 | 933 | |
| 934 | 934 | .driver = { |
| 935 | 935 | .name = "pxa2xx-uart", |
| 936 | − .owner = THIS_MODULE, | |
| 937 | 936 | #ifdef CONFIG_PM |
| 938 | 937 | .pm = &serial_pxa_pm_ops, |
| 939 | 938 | #endif |
| @@ -898,7 +898,6 @@ static struct platform_driver sa11x0_serial_driver = { · 897 unmodified lines | ||
| 898 | 898 | .resume = sa1100_serial_resume, |
| 899 | 899 | .driver = { |
| 900 | 900 | .name = "sa11x0-uart", |
| 901 | − .owner = THIS_MODULE, | |
| 902 | 901 | }, |
| 903 | 902 | }; |
| 904 | 903 | |
| @@ -1834,7 +1834,6 @@ static struct platform_driver samsung_serial_driver = { · 1833 unmodified lines | ||
| 1834 | 1834 | .id_table = s3c24xx_serial_driver_ids, |
| 1835 | 1835 | .driver = { |
| 1836 | 1836 | .name = "samsung-uart", |
| 1837 | − .owner = THIS_MODULE, | |
| 1838 | 1837 | .pm = SERIAL_SAMSUNG_PM_OPS, |
| 1839 | 1838 | .of_match_table = of_match_ptr(s3c24xx_uart_dt_match), |
| 1840 | 1839 | }, |
| @@ -1012,7 +1012,6 @@ static int sccnxp_remove(struct platform_device *pdev) · 1011 unmodified lines | ||
| 1012 | 1012 | static struct platform_driver sccnxp_uart_driver = { |
| 1013 | 1013 | .driver = { |
| 1014 | 1014 | .name = SCCNXP_NAME, |
| 1015 | − .owner = THIS_MODULE, | |
| 1016 | 1015 | }, |
| 1017 | 1016 | .probe = sccnxp_probe, |
| 1018 | 1017 | .remove = sccnxp_remove, |
| @@ -1165,7 +1165,6 @@ static struct platform_driver serial_txx9_plat_driver = { · 1164 unmodified lines | ||
| 1165 | 1165 | #endif |
| 1166 | 1166 | .driver = { |
| 1167 | 1167 | .name = "serial_txx9", |
| 1168 | − .owner = THIS_MODULE, | |
| 1169 | 1168 | }, |
| 1170 | 1169 | }; |
| 1171 | 1170 | |
| @@ -2635,7 +2635,6 @@ static struct platform_driver sci_driver = { · 2634 unmodified lines | ||
| 2635 | 2635 | .remove = sci_remove, |
| 2636 | 2636 | .driver = { |
| 2637 | 2637 | .name = "sh-sci", |
| 2638 | − .owner = THIS_MODULE, | |
| 2639 | 2638 | .pm = &sci_dev_pm_ops, |
| 2640 | 2639 | .of_match_table = of_match_ptr(of_sci_match), |
| 2641 | 2640 | }, |
| @@ -1497,7 +1497,6 @@ static struct platform_driver sirfsoc_uart_driver = { · 1496 unmodified lines | ||
| 1497 | 1497 | .remove = sirfsoc_uart_remove, |
| 1498 | 1498 | .driver = { |
| 1499 | 1499 | .name = SIRFUART_PORT_NAME, |
| 1500 | − .owner = THIS_MODULE, | |
| 1501 | 1500 | .of_match_table = sirfsoc_uart_ids, |
| 1502 | 1501 | .pm = &sirfsoc_uart_pm_ops, |
| 1503 | 1502 | }, |
| @@ -895,7 +895,6 @@ static struct platform_driver asc_serial_driver = { · 894 unmodified lines | ||
| 895 | 895 | .driver = { |
| 896 | 896 | .name = DRIVER_NAME, |
| 897 | 897 | .pm = &asc_serial_pm_ops, |
| 898 | − .owner = THIS_MODULE, | |
| 899 | 898 | .of_match_table = of_match_ptr(asc_match), |
| 900 | 899 | }, |
| 901 | 900 | }; |
| @@ -626,7 +626,6 @@ MODULE_DEVICE_TABLE(of, hv_match); · 625 unmodified lines | ||
| 626 | 626 | static struct platform_driver hv_driver = { |
| 627 | 627 | .driver = { |
| 628 | 628 | .name = "hv", |
| 629 | − .owner = THIS_MODULE, | |
| 630 | 629 | .of_match_table = hv_match, |
| 631 | 630 | }, |
| 632 | 631 | .probe = hv_probe, |
| @@ -1104,7 +1104,6 @@ MODULE_DEVICE_TABLE(of, sab_match); · 1103 unmodified lines | ||
| 1104 | 1104 | static struct platform_driver sab_driver = { |
| 1105 | 1105 | .driver = { |
| 1106 | 1106 | .name = "sab", |
| 1107 | − .owner = THIS_MODULE, | |
| 1108 | 1107 | .of_match_table = sab_match, |
| 1109 | 1108 | }, |
| 1110 | 1109 | .probe = sab_probe, |
| @@ -1550,7 +1550,6 @@ MODULE_DEVICE_TABLE(of, su_match); · 1549 unmodified lines | ||
| 1550 | 1550 | static struct platform_driver su_driver = { |
| 1551 | 1551 | .driver = { |
| 1552 | 1552 | .name = "su", |
| 1553 | − .owner = THIS_MODULE, | |
| 1554 | 1553 | .of_match_table = su_match, |
| 1555 | 1554 | }, |
| 1556 | 1555 | .probe = su_probe, |
| @@ -1541,7 +1541,6 @@ MODULE_DEVICE_TABLE(of, zs_match); · 1540 unmodified lines | ||
| 1541 | 1541 | static struct platform_driver zs_driver = { |
| 1542 | 1542 | .driver = { |
| 1543 | 1543 | .name = "zs", |
| 1544 | − .owner = THIS_MODULE, | |
| 1545 | 1544 | .of_match_table = zs_match, |
| 1546 | 1545 | }, |
| 1547 | 1546 | .probe = zs_probe, |
| @@ -503,7 +503,6 @@ static int timbuart_remove(struct platform_device *dev) · 502 unmodified lines | ||
| 503 | 503 | static struct platform_driver timbuart_platform_driver = { |
| 504 | 504 | .driver = { |
| 505 | 505 | .name = "timb-uart", |
| 506 | − .owner = THIS_MODULE, | |
| 507 | 506 | }, |
| 508 | 507 | .probe = timbuart_probe, |
| 509 | 508 | .remove = timbuart_remove, |
| @@ -1485,7 +1485,6 @@ MODULE_DEVICE_TABLE(of, ucc_uart_match); · 1484 unmodified lines | ||
| 1485 | 1485 | static struct platform_driver ucc_uart_of_driver = { |
| 1486 | 1486 | .driver = { |
| 1487 | 1487 | .name = "ucc_uart", |
| 1488 | − .owner = THIS_MODULE, | |
| 1489 | 1488 | .of_match_table = ucc_uart_match, |
| 1490 | 1489 | }, |
| 1491 | 1490 | .probe = ucc_uart_probe, |
| @@ -954,7 +954,6 @@ static struct platform_driver siu_device_driver = { · 953 unmodified lines | ||
| 954 | 954 | .resume = siu_resume, |
| 955 | 955 | .driver = { |
| 956 | 956 | .name = "SIU", |
| 957 | − .owner = THIS_MODULE, | |
| 958 | 957 | }, |
| 959 | 958 | }; |
| 960 | 959 | |
| @@ -745,7 +745,6 @@ static struct platform_driver vt8500_platform_driver = { · 744 unmodified lines | ||
| 745 | 745 | .remove = vt8500_serial_remove, |
| 746 | 746 | .driver = { |
| 747 | 747 | .name = "vt8500_serial", |
| 748 | − .owner = THIS_MODULE, | |
| 749 | 748 | .of_match_table = wmt_dt_ids, |
| 750 | 749 | }, |
| 751 | 750 | }; |
| @@ -343,7 +343,6 @@ static struct platform_driver uio_dmem_genirq = { · 342 unmodified lines | ||
| 343 | 343 | .remove = uio_dmem_genirq_remove, |
| 344 | 344 | .driver = { |
| 345 | 345 | .name = DRIVER_NAME, |
| 346 | − .owner = THIS_MODULE, | |
| 347 | 346 | .pm = &uio_dmem_genirq_dev_pm_ops, |
| 348 | 347 | .of_match_table = of_match_ptr(uio_of_genirq_match), |
| 349 | 348 | }, |
| @@ -266,7 +266,6 @@ static struct platform_driver uio_pdrv_genirq = { · 265 unmodified lines | ||
| 266 | 266 | .remove = uio_pdrv_genirq_remove, |
| 267 | 267 | .driver = { |
| 268 | 268 | .name = DRIVER_NAME, |
| 269 | − .owner = THIS_MODULE, | |
| 270 | 269 | .pm = &uio_pdrv_genirq_dev_pm_ops, |
| 271 | 270 | .of_match_table = of_match_ptr(uio_of_genirq_match), |
| 272 | 271 | }, |
| @@ -231,7 +231,6 @@ static struct platform_driver pruss_driver = { · 230 unmodified lines | ||
| 231 | 231 | .remove = pruss_remove, |
| 232 | 232 | .driver = { |
| 233 | 233 | .name = DRV_NAME, |
| 234 | − .owner = THIS_MODULE, | |
| 235 | 234 | }, |
| 236 | 235 | }; |
| 237 | 236 | |
| @@ -221,7 +221,6 @@ static struct platform_driver c67x00_driver = { · 220 unmodified lines | ||
| 221 | 221 | .probe = c67x00_drv_probe, |
| 222 | 222 | .remove = c67x00_drv_remove, |
| 223 | 223 | .driver = { |
| 224 | − .owner = THIS_MODULE, | |
| 225 | 224 | .name = "c67x00", |
| 226 | 225 | }, |
| 227 | 226 | }; |
| @@ -247,7 +247,6 @@ static struct platform_driver ci_hdrc_imx_driver = { · 246 unmodified lines | ||
| 247 | 247 | .remove = ci_hdrc_imx_remove, |
| 248 | 248 | .driver = { |
| 249 | 249 | .name = "imx_usb", |
| 250 | − .owner = THIS_MODULE, | |
| 251 | 250 | .of_match_table = ci_hdrc_imx_dt_ids, |
| 252 | 251 | .pm = &ci_hdrc_imx_pm_ops, |
| 253 | 252 | }, |
| @@ -61,7 +61,6 @@ static struct platform_driver ci_hdrc_zevio_driver = { · 60 unmodified lines | ||
| 61 | 61 | .remove = ci_hdrc_zevio_remove, |
| 62 | 62 | .driver = { |
| 63 | 63 | .name = "zevio_usb", |
| 64 | − .owner = THIS_MODULE, | |
| 65 | 64 | .of_match_table = ci_hdrc_zevio_dt_ids, |
| 66 | 65 | }, |
| 67 | 66 | }; |
| @@ -868,7 +868,6 @@ static struct platform_driver ci_hdrc_driver = { · 867 unmodified lines | ||
| 868 | 868 | .driver = { |
| 869 | 869 | .name = "ci_hdrc", |
| 870 | 870 | .pm = &ci_pm_ops, |
| 871 | − .owner = THIS_MODULE, | |
| 872 | 871 | }, |
| 873 | 872 | }; |
| 874 | 873 | |
| @@ -370,7 +370,6 @@ static struct platform_driver usbmisc_imx_driver = { · 369 unmodified lines | ||
| 370 | 370 | .remove = usbmisc_imx_remove, |
| 371 | 371 | .driver = { |
| 372 | 372 | .name = "usbmisc_imx", |
| 373 | − .owner = THIS_MODULE, | |
| 374 | 373 | .of_match_table = usbmisc_imx_dt_ids, |
| 375 | 374 | }, |
| 376 | 375 | }; |
| @@ -264,7 +264,6 @@ static __refdata struct usb_composite_driver hidg_driver = { · 263 unmodified lines | ||
| 264 | 264 | static struct platform_driver hidg_plat_driver = { |
| 265 | 265 | .remove = hidg_plat_driver_remove, |
| 266 | 266 | .driver = { |
| 267 | − .owner = THIS_MODULE, | |
| 268 | 267 | .name = "hidg", |
| 269 | 268 | }, |
| 270 | 269 | }; |
| @@ -2005,7 +2005,6 @@ static struct platform_driver at91_udc_driver = { · 2004 unmodified lines | ||
| 2005 | 2005 | .resume = at91udc_resume, |
| 2006 | 2006 | .driver = { |
| 2007 | 2007 | .name = (char *) driver_name, |
| 2008 | − .owner = THIS_MODULE, | |
| 2009 | 2008 | .of_match_table = of_match_ptr(at91_udc_dt_ids), |
| 2010 | 2009 | }, |
| 2011 | 2010 | }; |
| @@ -2105,7 +2105,6 @@ static struct platform_driver udc_driver = { · 2104 unmodified lines | ||
| 2105 | 2105 | .remove = __exit_p(usba_udc_remove), |
| 2106 | 2106 | .driver = { |
| 2107 | 2107 | .name = "atmel_usba_udc", |
| 2108 | − .owner = THIS_MODULE, | |
| 2109 | 2108 | .of_match_table = of_match_ptr(atmel_udc_dt_ids), |
| 2110 | 2109 | }, |
| 2111 | 2110 | }; |
| @@ -2424,7 +2424,6 @@ static struct platform_driver bcm63xx_udc_driver = { · 2423 unmodified lines | ||
| 2424 | 2424 | .remove = bcm63xx_udc_remove, |
| 2425 | 2425 | .driver = { |
| 2426 | 2426 | .name = DRV_MODULE_NAME, |
| 2427 | − .owner = THIS_MODULE, | |
| 2428 | 2427 | }, |
| 2429 | 2428 | }; |
| 2430 | 2429 | module_platform_driver(bcm63xx_udc_driver); |
| @@ -1037,7 +1037,6 @@ static struct platform_driver dummy_udc_driver = { · 1036 unmodified lines | ||
| 1037 | 1037 | .resume = dummy_udc_resume, |
| 1038 | 1038 | .driver = { |
| 1039 | 1039 | .name = (char *) gadget_name, |
| 1040 | − .owner = THIS_MODULE, | |
| 1041 | 1040 | }, |
| 1042 | 1041 | }; |
| 1043 | 1042 | |
| @@ -2606,7 +2605,6 @@ static struct platform_driver dummy_hcd_driver = { · 1562 unmodified lines | ||
| 2606 | 2605 | .resume = dummy_hcd_resume, |
| 2607 | 2606 | .driver = { |
| 2608 | 2607 | .name = (char *) driver_name, |
| 2609 | − .owner = THIS_MODULE, | |
| 2610 | 2608 | }, |
| 2611 | 2609 | }; |
| 2612 | 2610 | |
| @@ -1202,7 +1202,6 @@ err_alloc: · 1201 unmodified lines | ||
| 1202 | 1202 | static struct platform_driver fotg210_driver = { |
| 1203 | 1203 | .driver = { |
| 1204 | 1204 | .name = (char *)udc_name, |
| 1205 | − .owner = THIS_MODULE, | |
| 1206 | 1205 | }, |
| 1207 | 1206 | .probe = fotg210_udc_probe, |
| 1208 | 1207 | .remove = fotg210_udc_remove, |
| @@ -2702,7 +2702,6 @@ MODULE_DEVICE_TABLE(of, qe_udc_match); · 2701 unmodified lines | ||
| 2702 | 2702 | static struct platform_driver udc_driver = { |
| 2703 | 2703 | .driver = { |
| 2704 | 2704 | .name = driver_name, |
| 2705 | − .owner = THIS_MODULE, | |
| 2706 | 2705 | .of_match_table = qe_udc_match, |
| 2707 | 2706 | }, |
| 2708 | 2707 | .probe = qe_udc_probe, |
| @@ -2670,7 +2670,6 @@ static struct platform_driver udc_driver = { · 2669 unmodified lines | ||
| 2670 | 2670 | .resume = fsl_udc_resume, |
| 2671 | 2671 | .driver = { |
| 2672 | 2672 | .name = driver_name, |
| 2673 | − .owner = THIS_MODULE, | |
| 2674 | 2673 | /* udc suspend/resume called from OTG driver */ |
| 2675 | 2674 | .suspend = fsl_udc_otg_suspend, |
| 2676 | 2675 | .resume = fsl_udc_otg_resume, |
| @@ -1495,7 +1495,6 @@ static struct platform_driver fusb300_driver = { · 1494 unmodified lines | ||
| 1495 | 1495 | .remove = __exit_p(fusb300_remove), |
| 1496 | 1496 | .driver = { |
| 1497 | 1497 | .name = (char *) udc_name, |
| 1498 | − .owner = THIS_MODULE, | |
| 1499 | 1498 | }, |
| 1500 | 1499 | }; |
| 1501 | 1500 | |
| @@ -2256,7 +2256,6 @@ MODULE_DEVICE_TABLE(of, gr_match); · 2255 unmodified lines | ||
| 2256 | 2256 | static struct platform_driver gr_driver = { |
| 2257 | 2257 | .driver = { |
| 2258 | 2258 | .name = DRIVER_NAME, |
| 2259 | − .owner = THIS_MODULE, | |
| 2260 | 2259 | .of_match_table = gr_match, |
| 2261 | 2260 | }, |
| 2262 | 2261 | .probe = gr_probe, |
| @@ -3405,7 +3405,6 @@ static struct platform_driver lpc32xx_udc_driver = { · 3404 unmodified lines | ||
| 3405 | 3405 | .resume = lpc32xx_udc_resume, |
| 3406 | 3406 | .driver = { |
| 3407 | 3407 | .name = (char *) driver_name, |
| 3408 | − .owner = THIS_MODULE, | |
| 3409 | 3408 | .of_match_table = of_match_ptr(lpc32xx_udc_of_match), |
| 3410 | 3409 | }, |
| 3411 | 3410 | }; |
| @@ -1698,7 +1698,6 @@ static struct platform_driver m66592_driver = { · 1697 unmodified lines | ||
| 1698 | 1698 | .remove = __exit_p(m66592_remove), |
| 1699 | 1699 | .driver = { |
| 1700 | 1700 | .name = (char *) udc_name, |
| 1701 | − .owner = THIS_MODULE, | |
| 1702 | 1701 | }, |
| 1703 | 1702 | }; |
| 1704 | 1703 | |
| @@ -2052,7 +2052,6 @@ static struct platform_driver mv_u3d_driver = { · 2051 unmodified lines | ||
| 2052 | 2052 | .remove = mv_u3d_remove, |
| 2053 | 2053 | .shutdown = mv_u3d_shutdown, |
| 2054 | 2054 | .driver = { |
| 2055 | − .owner = THIS_MODULE, | |
| 2056 | 2055 | .name = "mv-u3d", |
| 2057 | 2056 | .pm = &mv_u3d_pm_ops, |
| 2058 | 2057 | }, |
| @@ -2415,7 +2415,6 @@ static struct platform_driver udc_driver = { · 2414 unmodified lines | ||
| 2415 | 2415 | .remove = mv_udc_remove, |
| 2416 | 2416 | .shutdown = mv_udc_shutdown, |
| 2417 | 2417 | .driver = { |
| 2418 | − .owner = THIS_MODULE, | |
| 2419 | 2418 | .name = "mv-udc", |
| 2420 | 2419 | #ifdef CONFIG_PM |
| 2421 | 2420 | .pm = &mv_udc_pm_ops, |
| @@ -2684,7 +2684,6 @@ static struct platform_driver net2272_plat_driver = { · 2683 unmodified lines | ||
| 2684 | 2684 | .remove = net2272_plat_remove, |
| 2685 | 2685 | .driver = { |
| 2686 | 2686 | .name = driver_name, |
| 2687 | − .owner = THIS_MODULE, | |
| 2688 | 2687 | }, |
| 2689 | 2688 | /* FIXME .suspend, .resume */ |
| 2690 | 2689 | }; |
| @@ -3024,7 +3024,6 @@ static struct platform_driver udc_driver = { · 3023 unmodified lines | ||
| 3024 | 3024 | .suspend = omap_udc_suspend, |
| 3025 | 3025 | .resume = omap_udc_resume, |
| 3026 | 3026 | .driver = { |
| 3027 | − .owner = THIS_MODULE, | |
| 3028 | 3027 | .name = (char *) driver_name, |
| 3029 | 3028 | }, |
| 3030 | 3029 | }; |
| @@ -2292,7 +2292,6 @@ static struct platform_driver udc_driver = { · 2291 unmodified lines | ||
| 2292 | 2292 | .suspend = pxa25x_udc_suspend, |
| 2293 | 2293 | .resume = pxa25x_udc_resume, |
| 2294 | 2294 | .driver = { |
| 2295 | − .owner = THIS_MODULE, | |
| 2296 | 2295 | .name = "pxa25x-udc", |
| 2297 | 2296 | }, |
| 2298 | 2297 | }; |
| @@ -2591,7 +2591,6 @@ MODULE_ALIAS("platform:pxa27x-udc"); · 2590 unmodified lines | ||
| 2591 | 2591 | static struct platform_driver udc_driver = { |
| 2592 | 2592 | .driver = { |
| 2593 | 2593 | .name = "pxa27x-udc", |
| 2594 | − .owner = THIS_MODULE, | |
| 2595 | 2594 | .of_match_table = of_match_ptr(udc_pxa_dt_ids), |
| 2596 | 2595 | }, |
| 2597 | 2596 | .probe = pxa_udc_probe, |
| @@ -1344,7 +1344,6 @@ err_supplies: · 1343 unmodified lines | ||
| 1344 | 1344 | |
| 1345 | 1345 | static struct platform_driver s3c_hsudc_driver = { |
| 1346 | 1346 | .driver = { |
| 1347 | − .owner = THIS_MODULE, | |
| 1348 | 1347 | .name = "s3c-hsudc", |
| 1349 | 1348 | }, |
| 1350 | 1349 | .probe = s3c_hsudc_probe, |
| @@ -1995,7 +1995,6 @@ MODULE_DEVICE_TABLE(platform, s3c_udc_ids); · 1994 unmodified lines | ||
| 1995 | 1995 | static struct platform_driver udc_driver_24x0 = { |
| 1996 | 1996 | .driver = { |
| 1997 | 1997 | .name = "s3c24x0-usbgadget", |
| 1998 | − .owner = THIS_MODULE, | |
| 1999 | 1998 | }, |
| 2000 | 1999 | .probe = s3c2410_udc_probe, |
| 2001 | 2000 | .remove = s3c2410_udc_remove, |
| @@ -317,7 +317,6 @@ static struct platform_driver exynos_ehci_driver = { · 316 unmodified lines | ||
| 317 | 317 | .shutdown = usb_hcd_platform_shutdown, |
| 318 | 318 | .driver = { |
| 319 | 319 | .name = "exynos-ehci", |
| 320 | − .owner = THIS_MODULE, | |
| 321 | 320 | .pm = &exynos_ehci_pm_ops, |
| 322 | 321 | .of_match_table = of_match_ptr(exynos_ehci_match), |
| 323 | 322 | } |
| @@ -313,7 +313,6 @@ static struct platform_driver ehci_orion_driver = { · 312 unmodified lines | ||
| 313 | 313 | .shutdown = usb_hcd_platform_shutdown, |
| 314 | 314 | .driver = { |
| 315 | 315 | .name = "orion-ehci", |
| 316 | − .owner = THIS_MODULE, | |
| 317 | 316 | .of_match_table = ehci_orion_dt_ids, |
| 318 | 317 | }, |
| 319 | 318 | }; |
| @@ -368,7 +368,6 @@ static struct platform_driver ehci_platform_driver = { · 367 unmodified lines | ||
| 368 | 368 | .remove = ehci_platform_remove, |
| 369 | 369 | .shutdown = usb_hcd_platform_shutdown, |
| 370 | 370 | .driver = { |
| 371 | − .owner = THIS_MODULE, | |
| 372 | 371 | .name = "ehci-platform", |
| 373 | 372 | .pm = &ehci_platform_pm_ops, |
| 374 | 373 | .of_match_table = vt8500_ehci_ids, |
| @@ -121,7 +121,6 @@ static struct platform_driver ehci_hcd_w90x900_driver = { · 120 unmodified lines | ||
| 121 | 121 | .remove = ehci_w90x900_remove, |
| 122 | 122 | .driver = { |
| 123 | 123 | .name = "w90x900-ehci", |
| 124 | − .owner = THIS_MODULE, | |
| 125 | 124 | }, |
| 126 | 125 | }; |
| 127 | 126 | |
| @@ -821,7 +821,6 @@ MODULE_DEVICE_TABLE(of, of_fhci_match); · 820 unmodified lines | ||
| 821 | 821 | static struct platform_driver of_fhci_driver = { |
| 822 | 822 | .driver = { |
| 823 | 823 | .name = "fsl,usb-fhci", |
| 824 | − .owner = THIS_MODULE, | |
| 825 | 824 | .of_match_table = of_fhci_match, |
| 826 | 825 | }, |
| 827 | 826 | .probe = of_fhci_probe, |
| @@ -326,7 +326,6 @@ static const struct of_device_id fsl_usb2_mph_dr_of_match[] = { · 325 unmodified lines | ||
| 326 | 326 | static struct platform_driver fsl_usb2_mph_dr_driver = { |
| 327 | 327 | .driver = { |
| 328 | 328 | .name = "fsl-usb2-mph-dr", |
| 329 | − .owner = THIS_MODULE, | |
| 330 | 329 | .of_match_table = fsl_usb2_mph_dr_of_match, |
| 331 | 330 | }, |
| 332 | 331 | .probe = fsl_usb2_mph_dr_of_probe, |
| @@ -1707,7 +1707,6 @@ static struct platform_driver isp116x_driver = { · 1706 unmodified lines | ||
| 1707 | 1707 | .resume = isp116x_resume, |
| 1708 | 1708 | .driver = { |
| 1709 | 1709 | .name = hcd_name, |
| 1710 | − .owner = THIS_MODULE, | |
| 1711 | 1710 | }, |
| 1712 | 1711 | }; |
| 1713 | 1712 | |
| @@ -2778,7 +2778,6 @@ static struct platform_driver isp1362_driver = { · 2777 unmodified lines | ||
| 2778 | 2778 | .resume = isp1362_resume, |
| 2779 | 2779 | .driver = { |
| 2780 | 2780 | .name = hcd_name, |
| 2781 | − .owner = THIS_MODULE, | |
| 2782 | 2781 | }, |
| 2783 | 2782 | }; |
| 2784 | 2783 | |
| @@ -161,7 +161,6 @@ MODULE_DEVICE_TABLE(of, of_isp1760_match); · 160 unmodified lines | ||
| 161 | 161 | static struct platform_driver isp1760_of_driver = { |
| 162 | 162 | .driver = { |
| 163 | 163 | .name = "nxp-isp1760", |
| 164 | − .owner = THIS_MODULE, | |
| 165 | 164 | .of_match_table = of_isp1760_match, |
| 166 | 165 | }, |
| 167 | 166 | .probe = of_isp1760_probe, |
| @@ -655,7 +655,6 @@ static struct platform_driver ohci_hcd_at91_driver = { · 654 unmodified lines | ||
| 655 | 655 | .resume = ohci_hcd_at91_drv_resume, |
| 656 | 656 | .driver = { |
| 657 | 657 | .name = "at91_ohci", |
| 658 | − .owner = THIS_MODULE, | |
| 659 | 658 | .of_match_table = of_match_ptr(at91_ohci_dt_ids), |
| 660 | 659 | }, |
| 661 | 660 | }; |
| @@ -285,7 +285,6 @@ static struct platform_driver exynos_ohci_driver = { · 284 unmodified lines | ||
| 285 | 285 | .shutdown = exynos_ohci_shutdown, |
| 286 | 286 | .driver = { |
| 287 | 287 | .name = "exynos-ohci", |
| 288 | − .owner = THIS_MODULE, | |
| 289 | 288 | .pm = &exynos_ohci_pm_ops, |
| 290 | 289 | .of_match_table = of_match_ptr(exynos_ohci_match), |
| 291 | 290 | } |
| @@ -322,7 +322,6 @@ MODULE_DEVICE_TABLE(of, ohci_hcd_nxp_match); · 321 unmodified lines | ||
| 322 | 322 | static struct platform_driver ohci_hcd_nxp_driver = { |
| 323 | 323 | .driver = { |
| 324 | 324 | .name = "usb-ohci", |
| 325 | − .owner = THIS_MODULE, | |
| 326 | 325 | .of_match_table = of_match_ptr(ohci_hcd_nxp_match), |
| 327 | 326 | }, |
| 328 | 327 | .probe = ohci_hcd_nxp_probe, |
| @@ -481,7 +481,6 @@ static struct platform_driver ohci_hcd_omap_driver = { · 480 unmodified lines | ||
| 481 | 481 | .resume = ohci_omap_resume, |
| 482 | 482 | #endif |
| 483 | 483 | .driver = { |
| 484 | − .owner = THIS_MODULE, | |
| 485 | 484 | .name = "ohci", |
| 486 | 485 | }, |
| 487 | 486 | }; |
| @@ -347,7 +347,6 @@ static struct platform_driver ohci_platform_driver = { · 346 unmodified lines | ||
| 347 | 347 | .remove = ohci_platform_remove, |
| 348 | 348 | .shutdown = usb_hcd_platform_shutdown, |
| 349 | 349 | .driver = { |
| 350 | − .owner = THIS_MODULE, | |
| 351 | 350 | .name = "ohci-platform", |
| 352 | 351 | .pm = &ohci_platform_pm_ops, |
| 353 | 352 | .of_match_table = ohci_platform_ids, |
| @@ -603,7 +603,6 @@ static struct platform_driver ohci_hcd_pxa27x_driver = { · 602 unmodified lines | ||
| 603 | 603 | .shutdown = usb_hcd_platform_shutdown, |
| 604 | 604 | .driver = { |
| 605 | 605 | .name = "pxa27x-ohci", |
| 606 | − .owner = THIS_MODULE, | |
| 607 | 606 | .of_match_table = of_match_ptr(pxa_ohci_dt_ids), |
| 608 | 607 | #ifdef CONFIG_PM |
| 609 | 608 | .pm = &ohci_hcd_pxa27x_pm_ops, |
| @@ -462,7 +462,6 @@ static struct platform_driver ohci_hcd_s3c2410_driver = { · 461 unmodified lines | ||
| 462 | 462 | .remove = ohci_hcd_s3c2410_drv_remove, |
| 463 | 463 | .shutdown = usb_hcd_platform_shutdown, |
| 464 | 464 | .driver = { |
| 465 | − .owner = THIS_MODULE, | |
| 466 | 465 | .name = "s3c2410-ohci", |
| 467 | 466 | .pm = &ohci_hcd_s3c2410_pm_ops, |
| 468 | 467 | }, |
| @@ -171,7 +171,6 @@ static struct platform_driver spear_ohci_hcd_driver = { · 170 unmodified lines | ||
| 171 | 171 | .resume = spear_ohci_hcd_drv_resume, |
| 172 | 172 | #endif |
| 173 | 173 | .driver = { |
| 174 | − .owner = THIS_MODULE, | |
| 175 | 174 | .name = "spear-ohci", |
| 176 | 175 | .of_match_table = spear_ohci_id_table, |
| 177 | 176 | }, |
| @@ -2535,7 +2535,6 @@ static struct platform_driver r8a66597_driver = { · 2534 unmodified lines | ||
| 2535 | 2535 | .remove = r8a66597_remove, |
| 2536 | 2536 | .driver = { |
| 2537 | 2537 | .name = hcd_name, |
| 2538 | − .owner = THIS_MODULE, | |
| 2539 | 2538 | .pm = R8A66597_DEV_PM_OPS, |
| 2540 | 2539 | }, |
| 2541 | 2540 | }; |
| @@ -3218,7 +3218,6 @@ static struct platform_driver u132_platform_driver = { · 3217 unmodified lines | ||
| 3218 | 3218 | .resume = u132_resume, |
| 3219 | 3219 | .driver = { |
| 3220 | 3220 | .name = hcd_name, |
| 3221 | − .owner = THIS_MODULE, | |
| 3222 | 3221 | }, |
| 3223 | 3222 | }; |
| 3224 | 3223 | static int __init u132_hcd_init(void) |
| @@ -401,7 +401,6 @@ static struct platform_driver usb3503_platform_driver = { · 400 unmodified lines | ||
| 401 | 401 | .driver = { |
| 402 | 402 | .name = USB3503_I2C_NAME, |
| 403 | 403 | .of_match_table = of_match_ptr(usb3503_of_match), |
| 404 | − .owner = THIS_MODULE, | |
| 405 | 404 | }, |
| 406 | 405 | .probe = usb3503_platform_probe, |
| 407 | 406 | }; |
| @@ -2519,7 +2519,6 @@ static struct platform_driver musb_driver = { · 2518 unmodified lines | ||
| 2519 | 2519 | .driver = { |
| 2520 | 2520 | .name = (char *)musb_driver_name, |
| 2521 | 2521 | .bus = &platform_bus_type, |
| 2522 | − .owner = THIS_MODULE, | |
| 2523 | 2522 | .pm = MUSB_DEV_PM_OPS, |
| 2524 | 2523 | }, |
| 2525 | 2524 | .probe = musb_probe, |
| @@ -1518,7 +1518,6 @@ static struct platform_driver ab8500_usb_driver = { · 1517 unmodified lines | ||
| 1518 | 1518 | .id_table = ab8500_usb_devtype, |
| 1519 | 1519 | .driver = { |
| 1520 | 1520 | .name = "abx5x0-usb", |
| 1521 | − .owner = THIS_MODULE, | |
| 1522 | 1521 | }, |
| 1523 | 1522 | }; |
| 1524 | 1523 | |
| @@ -173,7 +173,6 @@ static struct platform_driver am335x_control_driver = { · 172 unmodified lines | ||
| 173 | 173 | .probe = am335x_control_usb_probe, |
| 174 | 174 | .driver = { |
| 175 | 175 | .name = "am335x-control-usb", |
| 176 | − .owner = THIS_MODULE, | |
| 177 | 176 | .of_match_table = omap_control_usb_id_table, |
| 178 | 177 | }, |
| 179 | 178 | }; |
| @@ -137,7 +137,6 @@ static struct platform_driver am335x_phy_driver = { · 136 unmodified lines | ||
| 137 | 137 | .remove = am335x_phy_remove, |
| 138 | 138 | .driver = { |
| 139 | 139 | .name = "am335x-phy-driver", |
| 140 | − .owner = THIS_MODULE, | |
| 141 | 140 | .pm = &am335x_pm_ops, |
| 142 | 141 | .of_match_table = am335x_phy_ids, |
| 143 | 142 | }, |
| @@ -284,7 +284,6 @@ static struct platform_driver usb_phy_generic_driver = { · 283 unmodified lines | ||
| 284 | 284 | .remove = usb_phy_generic_remove, |
| 285 | 285 | .driver = { |
| 286 | 286 | .name = "usb_phy_generic", |
| 287 | − .owner = THIS_MODULE, | |
| 288 | 287 | .of_match_table = nop_xceiv_dt_ids, |
| 289 | 288 | }, |
| 290 | 289 | }; |
| @@ -382,7 +382,6 @@ MODULE_ALIAS("platform:gpio-vbus"); · 381 unmodified lines | ||
| 382 | 382 | static struct platform_driver gpio_vbus_driver = { |
| 383 | 383 | .driver = { |
| 384 | 384 | .name = "gpio-vbus", |
| 385 | − .owner = THIS_MODULE, | |
| 386 | 385 | #ifdef CONFIG_PM |
| 387 | 386 | .pm = &gpio_vbus_dev_pm_ops, |
| 388 | 387 | #endif |
| @@ -878,7 +878,6 @@ static struct platform_driver omap_otg_driver = { · 877 unmodified lines | ||
| 878 | 878 | .probe = otg_probe, |
| 879 | 879 | .remove = otg_remove, |
| 880 | 880 | .driver = { |
| 881 | − .owner = THIS_MODULE, | |
| 882 | 881 | .name = "omap_otg", |
| 883 | 882 | }, |
| 884 | 883 | }; |
| @@ -123,7 +123,6 @@ static struct platform_driver keystone_usbphy_driver = { · 122 unmodified lines | ||
| 123 | 123 | .remove = keystone_usbphy_remove, |
| 124 | 124 | .driver = { |
| 125 | 125 | .name = "keystone-usbphy", |
| 126 | − .owner = THIS_MODULE, | |
| 127 | 126 | .of_match_table = keystone_usbphy_ids, |
| 128 | 127 | }, |
| 129 | 128 | }; |
| @@ -896,7 +896,6 @@ static struct platform_driver mv_otg_driver = { · 895 unmodified lines | ||
| 896 | 896 | .probe = mv_otg_probe, |
| 897 | 897 | .remove = mv_otg_remove, |
| 898 | 898 | .driver = { |
| 899 | − .owner = THIS_MODULE, | |
| 900 | 899 | .name = driver_name, |
| 901 | 900 | }, |
| 902 | 901 | #ifdef CONFIG_PM |
| @@ -489,7 +489,6 @@ static struct platform_driver mxs_phy_driver = { · 488 unmodified lines | ||
| 489 | 489 | .remove = mxs_phy_remove, |
| 490 | 490 | .driver = { |
| 491 | 491 | .name = DRIVER_NAME, |
| 492 | − .owner = THIS_MODULE, | |
| 493 | 492 | .of_match_table = mxs_phy_dt_ids, |
| 494 | 493 | .pm = &mxs_phy_pm, |
| 495 | 494 | }, |
| @@ -158,7 +158,6 @@ static struct platform_driver omap_otg_driver = { · 157 unmodified lines | ||
| 158 | 158 | .probe = omap_otg_probe, |
| 159 | 159 | .remove = omap_otg_remove, |
| 160 | 160 | .driver = { |
| 161 | − .owner = THIS_MODULE, | |
| 162 | 161 | .name = "omap_otg", |
| 163 | 162 | }, |
| 164 | 163 | }; |
| @@ -450,7 +450,6 @@ static struct platform_driver tahvo_usb_driver = { · 449 unmodified lines | ||
| 450 | 450 | .remove = tahvo_usb_remove, |
| 451 | 451 | .driver = { |
| 452 | 452 | .name = "tahvo-usb", |
| 453 | − .owner = THIS_MODULE, | |
| 454 | 453 | }, |
| 455 | 454 | }; |
| 456 | 455 | module_platform_driver(tahvo_usb_driver); |
| @@ -1081,7 +1081,6 @@ static struct platform_driver tegra_usb_phy_driver = { · 1080 unmodified lines | ||
| 1081 | 1081 | .remove = tegra_usb_phy_remove, |
| 1082 | 1082 | .driver = { |
| 1083 | 1083 | .name = "tegra-phy", |
| 1084 | − .owner = THIS_MODULE, | |
| 1085 | 1084 | .of_match_table = tegra_usb_phy_id_table, |
| 1086 | 1085 | }, |
| 1087 | 1086 | }; |
| @@ -430,7 +430,6 @@ static struct platform_driver twl6030_usb_driver = { · 429 unmodified lines | ||
| 430 | 430 | .remove = twl6030_usb_remove, |
| 431 | 431 | .driver = { |
| 432 | 432 | .name = "twl6030_usb", |
| 433 | − .owner = THIS_MODULE, | |
| 434 | 433 | .of_match_table = of_match_ptr(twl6030_usb_id_table), |
| 435 | 434 | }, |
| 436 | 435 | }; |
| @@ -1107,7 +1107,6 @@ static struct platform_driver vhci_driver = { · 1106 unmodified lines | ||
| 1107 | 1107 | .resume = vhci_hcd_resume, |
| 1108 | 1108 | .driver = { |
| 1109 | 1109 | .name = driver_name, |
| 1110 | − .owner = THIS_MODULE, | |
| 1111 | 1110 | }, |
| 1112 | 1111 | }; |
| 1113 | 1112 | |
| @@ -3782,7 +3782,6 @@ static struct platform_driver amifb_driver = { · 3781 unmodified lines | ||
| 3782 | 3782 | .remove = __exit_p(amifb_remove), |
| 3783 | 3783 | .driver = { |
| 3784 | 3784 | .name = "amiga-video", |
| 3785 | − .owner = THIS_MODULE, | |
| 3786 | 3785 | }, |
| 3787 | 3786 | }; |
| 3788 | 3787 | |
| @@ -1465,7 +1465,6 @@ static struct platform_driver atmel_lcdfb_driver = { · 1464 unmodified lines | ||
| 1465 | 1465 | .id_table = atmel_lcdfb_devtypes, |
| 1466 | 1466 | .driver = { |
| 1467 | 1467 | .name = "atmel_lcdfb", |
| 1468 | − .owner = THIS_MODULE, | |
| 1469 | 1468 | .of_match_table = of_match_ptr(atmel_lcdfb_dt_ids), |
| 1470 | 1469 | }, |
| 1471 | 1470 | }; |
| @@ -638,7 +638,6 @@ int au1100fb_drv_resume(struct platform_device *dev) · 637 unmodified lines | ||
| 638 | 638 | static struct platform_driver au1100fb_driver = { |
| 639 | 639 | .driver = { |
| 640 | 640 | .name = "au1100-lcd", |
| 641 | − .owner = THIS_MODULE, | |
| 642 | 641 | }, |
| 643 | 642 | .probe = au1100fb_drv_probe, |
| 644 | 643 | .remove = au1100fb_drv_remove, |
| @@ -1841,7 +1841,6 @@ static const struct dev_pm_ops au1200fb_pmops = { · 1840 unmodified lines | ||
| 1841 | 1841 | static struct platform_driver au1200fb_driver = { |
| 1842 | 1842 | .driver = { |
| 1843 | 1843 | .name = "au1200-lcd", |
| 1844 | − .owner = THIS_MODULE, | |
| 1845 | 1844 | .pm = AU1200FB_PMOPS, |
| 1846 | 1845 | }, |
| 1847 | 1846 | .probe = au1200fb_drv_probe, |
| @@ -193,7 +193,6 @@ static struct platform_driver auok1900fb_driver = { · 192 unmodified lines | ||
| 193 | 193 | .probe = auok1900fb_probe, |
| 194 | 194 | .remove = auok1900fb_remove, |
| 195 | 195 | .driver = { |
| 196 | − .owner = THIS_MODULE, | |
| 197 | 196 | .name = "auo_k1900fb", |
| 198 | 197 | .pm = &auok190x_pm, |
| 199 | 198 | }, |
| @@ -246,7 +246,6 @@ static struct platform_driver auok1901fb_driver = { · 245 unmodified lines | ||
| 246 | 246 | .probe = auok1901fb_probe, |
| 247 | 247 | .remove = auok1901fb_remove, |
| 248 | 248 | .driver = { |
| 249 | − .owner = THIS_MODULE, | |
| 250 | 249 | .name = "auo_k1901fb", |
| 251 | 250 | .pm = &auok190x_pm, |
| 252 | 251 | }, |
| @@ -894,7 +894,6 @@ static struct platform_driver bfin_lq035_driver = { · 893 unmodified lines | ||
| 894 | 894 | .resume = bfin_lq035_resume, |
| 895 | 895 | .driver = { |
| 896 | 896 | .name = KBUILD_MODNAME, |
| 897 | − .owner = THIS_MODULE, | |
| 898 | 897 | }, |
| 899 | 898 | }; |
| 900 | 899 | |
| @@ -756,7 +756,6 @@ static struct platform_driver bfin_bf54x_driver = { · 755 unmodified lines | ||
| 756 | 756 | .resume = bfin_bf54x_resume, |
| 757 | 757 | .driver = { |
| 758 | 758 | .name = DRIVER_NAME, |
| 759 | − .owner = THIS_MODULE, | |
| 760 | 759 | }, |
| 761 | 760 | }; |
| 762 | 761 | module_platform_driver(bfin_bf54x_driver); |
| @@ -661,7 +661,6 @@ static struct platform_driver bfin_t350mcqb_driver = { · 660 unmodified lines | ||
| 661 | 661 | .resume = bfin_t350mcqb_resume, |
| 662 | 662 | .driver = { |
| 663 | 663 | .name = DRIVER_NAME, |
| 664 | − .owner = THIS_MODULE, | |
| 665 | 664 | }, |
| 666 | 665 | }; |
| 667 | 666 | module_platform_driver(bfin_t350mcqb_driver); |
| @@ -1212,7 +1212,6 @@ static struct platform_driver broadsheetfb_driver = { · 1211 unmodified lines | ||
| 1212 | 1212 | .probe = broadsheetfb_probe, |
| 1213 | 1213 | .remove = broadsheetfb_remove, |
| 1214 | 1214 | .driver = { |
| 1215 | − .owner = THIS_MODULE, | |
| 1216 | 1215 | .name = "broadsheetfb", |
| 1217 | 1216 | }, |
| 1218 | 1217 | }; |
| @@ -377,7 +377,6 @@ MODULE_DEVICE_TABLE(of, bw2_match); · 376 unmodified lines | ||
| 377 | 377 | static struct platform_driver bw2_driver = { |
| 378 | 378 | .driver = { |
| 379 | 379 | .name = "bw2", |
| 380 | − .owner = THIS_MODULE, | |
| 381 | 380 | .of_match_table = bw2_match, |
| 382 | 381 | }, |
| 383 | 382 | .probe = bw2_probe, |
| @@ -597,7 +597,6 @@ MODULE_DEVICE_TABLE(of, cg14_match); · 596 unmodified lines | ||
| 597 | 597 | static struct platform_driver cg14_driver = { |
| 598 | 598 | .driver = { |
| 599 | 599 | .name = "cg14", |
| 600 | − .owner = THIS_MODULE, | |
| 601 | 600 | .of_match_table = cg14_match, |
| 602 | 601 | }, |
| 603 | 602 | .probe = cg14_probe, |
| @@ -463,7 +463,6 @@ MODULE_DEVICE_TABLE(of, cg3_match); · 462 unmodified lines | ||
| 463 | 463 | static struct platform_driver cg3_driver = { |
| 464 | 464 | .driver = { |
| 465 | 465 | .name = "cg3", |
| 466 | − .owner = THIS_MODULE, | |
| 467 | 466 | .of_match_table = cg3_match, |
| 468 | 467 | }, |
| 469 | 468 | .probe = cg3_probe, |
| @@ -856,7 +856,6 @@ MODULE_DEVICE_TABLE(of, cg6_match); · 855 unmodified lines | ||
| 856 | 856 | static struct platform_driver cg6_driver = { |
| 857 | 857 | .driver = { |
| 858 | 858 | .name = "cg6", |
| 859 | − .owner = THIS_MODULE, | |
| 860 | 859 | .of_match_table = cg6_match, |
| 861 | 860 | }, |
| 862 | 861 | .probe = cg6_probe, |
| @@ -384,7 +384,6 @@ MODULE_DEVICE_TABLE(of, clps711x_fb_dt_ids); · 383 unmodified lines | ||
| 384 | 384 | static struct platform_driver clps711x_fb_driver = { |
| 385 | 385 | .driver = { |
| 386 | 386 | .name = CLPS711X_FB_NAME, |
| 387 | − .owner = THIS_MODULE, | |
| 388 | 387 | .of_match_table = clps711x_fb_dt_ids, |
| 389 | 388 | }, |
| 390 | 389 | .probe = clps711x_fb_probe, |
| @@ -303,7 +303,6 @@ static int clps711x_fb_remove(struct platform_device *pdev) · 302 unmodified lines | ||
| 303 | 303 | static struct platform_driver clps711x_fb_driver = { |
| 304 | 304 | .driver = { |
| 305 | 305 | .name = "video-clps711x", |
| 306 | − .owner = THIS_MODULE, | |
| 307 | 306 | }, |
| 308 | 307 | .probe = clps711x_fb_probe, |
| 309 | 308 | .remove = clps711x_fb_remove, |
| @@ -391,7 +391,6 @@ static struct platform_driver cobalt_lcdfb_driver = { · 390 unmodified lines | ||
| 391 | 391 | .remove = cobalt_lcdfb_remove, |
| 392 | 392 | .driver = { |
| 393 | 393 | .name = "cobalt-lcd", |
| 394 | − .owner = THIS_MODULE, | |
| 395 | 394 | }, |
| 396 | 395 | }; |
| 397 | 396 | module_platform_driver(cobalt_lcdfb_driver); |
| @@ -1659,7 +1659,6 @@ static struct platform_driver da8xx_fb_driver = { · 1658 unmodified lines | ||
| 1659 | 1659 | .remove = fb_remove, |
| 1660 | 1660 | .driver = { |
| 1661 | 1661 | .name = DRIVER_NAME, |
| 1662 | − .owner = THIS_MODULE, | |
| 1663 | 1662 | .pm = &fb_pm_ops, |
| 1664 | 1663 | }, |
| 1665 | 1664 | }; |
| @@ -311,7 +311,6 @@ static int efifb_remove(struct platform_device *pdev) · 310 unmodified lines | ||
| 311 | 311 | static struct platform_driver efifb_driver = { |
| 312 | 312 | .driver = { |
| 313 | 313 | .name = "efi-framebuffer", |
| 314 | − .owner = THIS_MODULE, | |
| 315 | 314 | }, |
| 316 | 315 | .probe = efifb_probe, |
| 317 | 316 | .remove = efifb_remove, |
| @@ -622,7 +622,6 @@ static struct platform_driver ep93xxfb_driver = { · 621 unmodified lines | ||
| 622 | 622 | .remove = ep93xxfb_remove, |
| 623 | 623 | .driver = { |
| 624 | 624 | .name = "ep93xx-fb", |
| 625 | − .owner = THIS_MODULE, | |
| 626 | 625 | }, |
| 627 | 626 | }; |
| 628 | 627 | module_platform_driver(ep93xxfb_driver); |
| @@ -562,7 +562,6 @@ static struct platform_driver exynos_mipi_dsi_driver = { · 561 unmodified lines | ||
| 562 | 562 | .remove = exynos_mipi_dsi_remove, |
| 563 | 563 | .driver = { |
| 564 | 564 | .name = "exynos-mipi-dsim", |
| 565 | − .owner = THIS_MODULE, | |
| 566 | 565 | .pm = &exynos_mipi_dsi_pm_ops, |
| 567 | 566 | }, |
| 568 | 567 | }; |
| @@ -1052,7 +1052,6 @@ MODULE_DEVICE_TABLE(of, ffb_match); · 1051 unmodified lines | ||
| 1052 | 1052 | static struct platform_driver ffb_driver = { |
| 1053 | 1053 | .driver = { |
| 1054 | 1054 | .name = "ffb", |
| 1055 | − .owner = THIS_MODULE, | |
| 1056 | 1055 | .of_match_table = ffb_match, |
| 1057 | 1056 | }, |
| 1058 | 1057 | .probe = ffb_probe, |
| @@ -1881,7 +1881,6 @@ MODULE_DEVICE_TABLE(of, fsl_diu_match); · 1880 unmodified lines | ||
| 1881 | 1881 | static struct platform_driver fsl_diu_driver = { |
| 1882 | 1882 | .driver = { |
| 1883 | 1883 | .name = "fsl-diu-fb", |
| 1884 | − .owner = THIS_MODULE, | |
| 1885 | 1884 | .of_match_table = fsl_diu_match, |
| 1886 | 1885 | }, |
| 1887 | 1886 | .probe = fsl_diu_probe, |
| @@ -549,7 +549,6 @@ MODULE_DEVICE_TABLE(of, svgactrl_of_match); · 548 unmodified lines | ||
| 549 | 549 | static struct platform_driver grvga_driver = { |
| 550 | 550 | .driver = { |
| 551 | 551 | .name = "grlib-svgactrl", |
| 552 | − .owner = THIS_MODULE, | |
| 553 | 552 | .of_match_table = svgactrl_of_match, |
| 554 | 553 | }, |
| 555 | 554 | .probe = grvga_probe, |
| @@ -300,7 +300,6 @@ static struct platform_driver hecubafb_driver = { · 299 unmodified lines | ||
| 300 | 300 | .probe = hecubafb_probe, |
| 301 | 301 | .remove = hecubafb_remove, |
| 302 | 302 | .driver = { |
| 303 | − .owner = THIS_MODULE, | |
| 304 | 303 | .name = "hecubafb", |
| 305 | 304 | }, |
| 306 | 305 | }; |
| @@ -464,7 +464,6 @@ static struct platform_driver hitfb_driver = { · 463 unmodified lines | ||
| 464 | 464 | .remove = hitfb_remove, |
| 465 | 465 | .driver = { |
| 466 | 466 | .name = "hitfb", |
| 467 | − .owner = THIS_MODULE, | |
| 468 | 467 | .pm = &hitfb_dev_pm_ops, |
| 469 | 468 | }, |
| 470 | 469 | }; |
| @@ -1061,7 +1061,6 @@ static struct platform_driver imxfb_driver = { · 1060 unmodified lines | ||
| 1061 | 1061 | .driver = { |
| 1062 | 1062 | .name = DRIVER_NAME, |
| 1063 | 1063 | .of_match_table = imxfb_of_dev_id, |
| 1064 | − .owner = THIS_MODULE, | |
| 1065 | 1064 | .pm = &imxfb_pm_ops, |
| 1066 | 1065 | }, |
| 1067 | 1066 | .probe = imxfb_probe, |
| @@ -662,7 +662,6 @@ MODULE_DEVICE_TABLE(of, leo_match); · 661 unmodified lines | ||
| 662 | 662 | static struct platform_driver leo_driver = { |
| 663 | 663 | .driver = { |
| 664 | 664 | .name = "leo", |
| 665 | − .owner = THIS_MODULE, | |
| 666 | 665 | .of_match_table = leo_match, |
| 667 | 666 | }, |
| 668 | 667 | .probe = leo_probe, |
| @@ -835,7 +835,6 @@ static struct of_device_id of_platform_mb862xx_tbl[] = { · 834 unmodified lines | ||
| 835 | 835 | static struct platform_driver of_platform_mb862xxfb_driver = { |
| 836 | 836 | .driver = { |
| 837 | 837 | .name = DRV_NAME, |
| 838 | − .owner = THIS_MODULE, | |
| 839 | 838 | .of_match_table = of_platform_mb862xx_tbl, |
| 840 | 839 | }, |
| 841 | 840 | .probe = of_platform_mb862xx_probe, |
| @@ -766,7 +766,6 @@ static struct platform_driver metronomefb_driver = { · 765 unmodified lines | ||
| 766 | 766 | .probe = metronomefb_probe, |
| 767 | 767 | .remove = metronomefb_remove, |
| 768 | 768 | .driver = { |
| 769 | − .owner = THIS_MODULE, | |
| 770 | 769 | .name = "metronomefb", |
| 771 | 770 | }, |
| 772 | 771 | }; |
| @@ -673,7 +673,6 @@ failed_destroy_mutex: · 672 unmodified lines | ||
| 673 | 673 | static struct platform_driver mmpfb_driver = { |
| 674 | 674 | .driver = { |
| 675 | 675 | .name = "mmp-fb", |
| 676 | − .owner = THIS_MODULE, | |
| 677 | 676 | }, |
| 678 | 677 | .probe = mmpfb_probe, |
| 679 | 678 | }; |
| @@ -571,7 +571,6 @@ failed: · 570 unmodified lines | ||
| 571 | 571 | static struct platform_driver mmphw_driver = { |
| 572 | 572 | .driver = { |
| 573 | 573 | .name = "mmp-disp", |
| 574 | − .owner = THIS_MODULE, | |
| 575 | 574 | }, |
| 576 | 575 | .probe = mmphw_probe, |
| 577 | 576 | }; |
| @@ -1645,7 +1645,6 @@ static int mx3fb_remove(struct platform_device *dev) · 1644 unmodified lines | ||
| 1645 | 1645 | static struct platform_driver mx3fb_driver = { |
| 1646 | 1646 | .driver = { |
| 1647 | 1647 | .name = MX3FB_NAME, |
| 1648 | − .owner = THIS_MODULE, | |
| 1649 | 1648 | }, |
| 1650 | 1649 | .probe = mx3fb_probe, |
| 1651 | 1650 | .remove = mx3fb_remove, |
| @@ -755,7 +755,6 @@ static struct platform_driver nuc900fb_driver = { · 754 unmodified lines | ||
| 755 | 755 | .resume = nuc900fb_resume, |
| 756 | 756 | .driver = { |
| 757 | 757 | .name = "nuc900-lcd", |
| 758 | − .owner = THIS_MODULE, | |
| 759 | 758 | }, |
| 760 | 759 | }; |
| 761 | 760 | |
| @@ -218,7 +218,6 @@ static struct platform_driver ams_delta_panel_driver = { · 217 unmodified lines | ||
| 218 | 218 | .resume = ams_delta_panel_resume, |
| 219 | 219 | .driver = { |
| 220 | 220 | .name = "lcd_ams_delta", |
| 221 | − .owner = THIS_MODULE, | |
| 222 | 221 | }, |
| 223 | 222 | }; |
| 224 | 223 | |
| @@ -120,7 +120,6 @@ static struct platform_driver h3_panel_driver = { · 119 unmodified lines | ||
| 120 | 120 | .resume = h3_panel_resume, |
| 121 | 121 | .driver = { |
| 122 | 122 | .name = "lcd_h3", |
| 123 | − .owner = THIS_MODULE, | |
| 124 | 123 | }, |
| 125 | 124 | }; |
| 126 | 125 | |
| @@ -111,7 +111,6 @@ static struct platform_driver htcherald_panel_driver = { · 110 unmodified lines | ||
| 111 | 111 | .resume = htcherald_panel_resume, |
| 112 | 112 | .driver = { |
| 113 | 113 | .name = "lcd_htcherald", |
| 114 | − .owner = THIS_MODULE, | |
| 115 | 114 | }, |
| 116 | 115 | }; |
| 117 | 116 | |
| @@ -106,7 +106,6 @@ static struct platform_driver innovator1510_panel_driver = { · 105 unmodified lines | ||
| 106 | 106 | .resume = innovator1510_panel_resume, |
| 107 | 107 | .driver = { |
| 108 | 108 | .name = "lcd_inn1510", |
| 109 | − .owner = THIS_MODULE, | |
| 110 | 109 | }, |
| 111 | 110 | }; |
| 112 | 111 | |
| @@ -127,7 +127,6 @@ static struct platform_driver innovator1610_panel_driver = { · 126 unmodified lines | ||
| 127 | 127 | .resume = innovator1610_panel_resume, |
| 128 | 128 | .driver = { |
| 129 | 129 | .name = "lcd_inn1610", |
| 130 | − .owner = THIS_MODULE, | |
| 131 | 130 | }, |
| 132 | 131 | }; |
| 133 | 132 | |
| @@ -126,7 +126,6 @@ static struct platform_driver osk_panel_driver = { · 125 unmodified lines | ||
| 126 | 126 | .resume = osk_panel_resume, |
| 127 | 127 | .driver = { |
| 128 | 128 | .name = "lcd_osk", |
| 129 | − .owner = THIS_MODULE, | |
| 130 | 129 | }, |
| 131 | 130 | }; |
| 132 | 131 | |
| @@ -103,7 +103,6 @@ static struct platform_driver palmte_panel_driver = { · 102 unmodified lines | ||
| 103 | 103 | .resume = palmte_panel_resume, |
| 104 | 104 | .driver = { |
| 105 | 105 | .name = "lcd_palmte", |
| 106 | − .owner = THIS_MODULE, | |
| 107 | 106 | }, |
| 108 | 107 | }; |
| 109 | 108 | |
| @@ -109,7 +109,6 @@ static struct platform_driver palmtt_panel_driver = { · 108 unmodified lines | ||
| 109 | 109 | .resume = palmtt_panel_resume, |
| 110 | 110 | .driver = { |
| 111 | 111 | .name = "lcd_palmtt", |
| 112 | − .owner = THIS_MODULE, | |
| 113 | 112 | }, |
| 114 | 113 | }; |
| 115 | 114 | |
| @@ -105,7 +105,6 @@ static struct platform_driver palmz71_panel_driver = { · 104 unmodified lines | ||
| 105 | 105 | .resume = palmz71_panel_resume, |
| 106 | 106 | .driver = { |
| 107 | 107 | .name = "lcd_palmz71", |
| 108 | − .owner = THIS_MODULE, | |
| 109 | 108 | }, |
| 110 | 109 | }; |
| 111 | 110 | |
| @@ -1869,7 +1869,6 @@ static struct platform_driver omapfb_driver = { · 1868 unmodified lines | ||
| 1869 | 1869 | .resume = omapfb_resume, |
| 1870 | 1870 | .driver = { |
| 1871 | 1871 | .name = MODULE_NAME, |
| 1872 | − .owner = THIS_MODULE, | |
| 1873 | 1872 | }, |
| 1874 | 1873 | }; |
| 1875 | 1874 | |
| @@ -308,7 +308,6 @@ static struct platform_driver tvc_connector_driver = { · 307 unmodified lines | ||
| 308 | 308 | .remove = __exit_p(tvc_remove), |
| 309 | 309 | .driver = { |
| 310 | 310 | .name = "connector-analog-tv", |
| 311 | − .owner = THIS_MODULE, | |
| 312 | 311 | .of_match_table = tvc_of_match, |
| 313 | 312 | .suppress_bind_attrs = true, |
| 314 | 313 | }, |
| @@ -386,7 +386,6 @@ static struct platform_driver dvi_connector_driver = { · 385 unmodified lines | ||
| 386 | 386 | .remove = __exit_p(dvic_remove), |
| 387 | 387 | .driver = { |
| 388 | 388 | .name = "connector-dvi", |
| 389 | − .owner = THIS_MODULE, | |
| 390 | 389 | .of_match_table = dvic_of_match, |
| 391 | 390 | .suppress_bind_attrs = true, |
| 392 | 391 | }, |
| @@ -336,7 +336,6 @@ static struct platform_driver hdmi_connector_driver = { · 335 unmodified lines | ||
| 336 | 336 | .remove = __exit_p(hdmic_remove), |
| 337 | 337 | .driver = { |
| 338 | 338 | .name = "connector-hdmi", |
| 339 | − .owner = THIS_MODULE, | |
| 340 | 339 | .of_match_table = hdmic_of_match, |
| 341 | 340 | .suppress_bind_attrs = true, |
| 342 | 341 | }, |
| @@ -297,7 +297,6 @@ static struct platform_driver tfp410_driver = { · 296 unmodified lines | ||
| 297 | 297 | .remove = __exit_p(tfp410_remove), |
| 298 | 298 | .driver = { |
| 299 | 299 | .name = "tfp410", |
| 300 | − .owner = THIS_MODULE, | |
| 301 | 300 | .of_match_table = tfp410_of_match, |
| 302 | 301 | .suppress_bind_attrs = true, |
| 303 | 302 | }, |
| @@ -404,7 +404,6 @@ static struct platform_driver tpd_driver = { · 403 unmodified lines | ||
| 404 | 404 | .remove = __exit_p(tpd_remove), |
| 405 | 405 | .driver = { |
| 406 | 406 | .name = "tpd12s015", |
| 407 | − .owner = THIS_MODULE, | |
| 408 | 407 | .of_match_table = tpd_of_match, |
| 409 | 408 | .suppress_bind_attrs = true, |
| 410 | 409 | }, |
| @@ -325,7 +325,6 @@ static struct platform_driver panel_dpi_driver = { · 324 unmodified lines | ||
| 325 | 325 | .remove = __exit_p(panel_dpi_remove), |
| 326 | 326 | .driver = { |
| 327 | 327 | .name = "panel-dpi", |
| 328 | − .owner = THIS_MODULE, | |
| 329 | 328 | .of_match_table = panel_dpi_of_match, |
| 330 | 329 | .suppress_bind_attrs = true, |
| 331 | 330 | }, |
| @@ -1376,7 +1376,6 @@ static struct platform_driver dsicm_driver = { · 1375 unmodified lines | ||
| 1376 | 1376 | .remove = __exit_p(dsicm_remove), |
| 1377 | 1377 | .driver = { |
| 1378 | 1378 | .name = "panel-dsi-cm", |
| 1379 | − .owner = THIS_MODULE, | |
| 1380 | 1379 | .of_match_table = dsicm_of_match, |
| 1381 | 1380 | .suppress_bind_attrs = true, |
| 1382 | 1381 | }, |
| @@ -408,7 +408,6 @@ static struct platform_driver sharp_ls_driver = { · 407 unmodified lines | ||
| 408 | 408 | .remove = __exit_p(sharp_ls_remove), |
| 409 | 409 | .driver = { |
| 410 | 410 | .name = "panel-sharp-ls037v7dw01", |
| 411 | − .owner = THIS_MODULE, | |
| 412 | 411 | .of_match_table = sharp_ls_of_match, |
| 413 | 412 | .suppress_bind_attrs = true, |
| 414 | 413 | }, |
| @@ -244,7 +244,6 @@ static struct platform_driver omap_dss_driver = { · 243 unmodified lines | ||
| 244 | 244 | .shutdown = omap_dss_shutdown, |
| 245 | 245 | .driver = { |
| 246 | 246 | .name = "omapdss", |
| 247 | − .owner = THIS_MODULE, | |
| 248 | 247 | }, |
| 249 | 248 | }; |
| 250 | 249 | |
| @@ -3839,7 +3839,6 @@ static struct platform_driver omap_dispchw_driver = { · 3838 unmodified lines | ||
| 3839 | 3839 | .remove = __exit_p(omap_dispchw_remove), |
| 3840 | 3840 | .driver = { |
| 3841 | 3841 | .name = "omapdss_dispc", |
| 3842 | − .owner = THIS_MODULE, | |
| 3843 | 3842 | .pm = &dispc_pm_ops, |
| 3844 | 3843 | .of_match_table = dispc_of_match, |
| 3845 | 3844 | .suppress_bind_attrs = true, |
| @@ -788,7 +788,6 @@ static struct platform_driver omap_dpi_driver = { · 787 unmodified lines | ||
| 788 | 788 | .remove = __exit_p(omap_dpi_remove), |
| 789 | 789 | .driver = { |
| 790 | 790 | .name = "omapdss_dpi", |
| 791 | − .owner = THIS_MODULE, | |
| 792 | 791 | .suppress_bind_attrs = true, |
| 793 | 792 | }, |
| 794 | 793 | }; |
| @@ -5572,7 +5572,6 @@ static struct platform_driver omap_dsihw_driver = { · 5571 unmodified lines | ||
| 5572 | 5572 | .remove = __exit_p(omap_dsihw_remove), |
| 5573 | 5573 | .driver = { |
| 5574 | 5574 | .name = "omapdss_dsi", |
| 5575 | − .owner = THIS_MODULE, | |
| 5576 | 5575 | .pm = &dsi_pm_ops, |
| 5577 | 5576 | .of_match_table = dsi_of_match, |
| 5578 | 5577 | .suppress_bind_attrs = true, |
| @@ -1012,7 +1012,6 @@ static struct platform_driver omap_dsshw_driver = { · 1011 unmodified lines | ||
| 1012 | 1012 | .remove = __exit_p(omap_dsshw_remove), |
| 1013 | 1013 | .driver = { |
| 1014 | 1014 | .name = "omapdss_dss", |
| 1015 | − .owner = THIS_MODULE, | |
| 1016 | 1015 | .pm = &dss_pm_ops, |
| 1017 | 1016 | .of_match_table = dss_of_match, |
| 1018 | 1017 | .suppress_bind_attrs = true, |
| @@ -760,7 +760,6 @@ static struct platform_driver omapdss_hdmihw_driver = { · 759 unmodified lines | ||
| 760 | 760 | .remove = __exit_p(omapdss_hdmihw_remove), |
| 761 | 761 | .driver = { |
| 762 | 762 | .name = "omapdss_hdmi", |
| 763 | − .owner = THIS_MODULE, | |
| 764 | 763 | .pm = &hdmi_pm_ops, |
| 765 | 764 | .of_match_table = hdmi_of_match, |
| 766 | 765 | .suppress_bind_attrs = true, |
| @@ -795,7 +795,6 @@ static struct platform_driver omapdss_hdmihw_driver = { · 794 unmodified lines | ||
| 795 | 795 | .remove = __exit_p(omapdss_hdmihw_remove), |
| 796 | 796 | .driver = { |
| 797 | 797 | .name = "omapdss_hdmi5", |
| 798 | − .owner = THIS_MODULE, | |
| 799 | 798 | .pm = &hdmi_pm_ops, |
| 800 | 799 | .of_match_table = hdmi_of_match, |
| 801 | 800 | .suppress_bind_attrs = true, |
| @@ -1042,7 +1042,6 @@ static struct platform_driver omap_rfbihw_driver = { · 1041 unmodified lines | ||
| 1042 | 1042 | .remove = __exit_p(omap_rfbihw_remove), |
| 1043 | 1043 | .driver = { |
| 1044 | 1044 | .name = "omapdss_rfbi", |
| 1045 | − .owner = THIS_MODULE, | |
| 1046 | 1045 | .pm = &rfbi_pm_ops, |
| 1047 | 1046 | .suppress_bind_attrs = true, |
| 1048 | 1047 | }, |
| @@ -376,7 +376,6 @@ static struct platform_driver omap_sdi_driver = { · 375 unmodified lines | ||
| 376 | 376 | .remove = __exit_p(omap_sdi_remove), |
| 377 | 377 | .driver = { |
| 378 | 378 | .name = "omapdss_sdi", |
| 379 | − .owner = THIS_MODULE, | |
| 380 | 379 | .suppress_bind_attrs = true, |
| 381 | 380 | }, |
| 382 | 381 | }; |
| @@ -963,7 +963,6 @@ static struct platform_driver omap_venchw_driver = { · 962 unmodified lines | ||
| 963 | 963 | .remove = __exit_p(omap_venchw_remove), |
| 964 | 964 | .driver = { |
| 965 | 965 | .name = "omapdss_venc", |
| 966 | − .owner = THIS_MODULE, | |
| 967 | 966 | .pm = &venc_pm_ops, |
| 968 | 967 | .of_match_table = venc_of_match, |
| 969 | 968 | .suppress_bind_attrs = true, |
| @@ -2638,7 +2638,6 @@ static struct platform_driver omapfb_driver = { · 2637 unmodified lines | ||
| 2638 | 2638 | .remove = omapfb_remove, |
| 2639 | 2639 | .driver = { |
| 2640 | 2640 | .name = "omapfb", |
| 2641 | − .owner = THIS_MODULE, | |
| 2642 | 2641 | }, |
| 2643 | 2642 | }; |
| 2644 | 2643 | |
| @@ -353,7 +353,6 @@ MODULE_DEVICE_TABLE(of, p9100_match); · 352 unmodified lines | ||
| 353 | 353 | static struct platform_driver p9100_driver = { |
| 354 | 354 | .driver = { |
| 355 | 355 | .name = "p9100", |
| 356 | − .owner = THIS_MODULE, | |
| 357 | 356 | .of_match_table = p9100_match, |
| 358 | 357 | }, |
| 359 | 358 | .probe = p9100_probe, |
| @@ -679,7 +679,6 @@ static struct platform_driver platinum_driver = · 678 unmodified lines | ||
| 679 | 679 | { |
| 680 | 680 | .driver = { |
| 681 | 681 | .name = "platinumfb", |
| 682 | − .owner = THIS_MODULE, | |
| 683 | 682 | .of_match_table = platinumfb_match, |
| 684 | 683 | }, |
| 685 | 684 | .probe = platinumfb_probe, |
| @@ -823,7 +823,6 @@ static int pxa168fb_remove(struct platform_device *pdev) · 822 unmodified lines | ||
| 823 | 823 | static struct platform_driver pxa168fb_driver = { |
| 824 | 824 | .driver = { |
| 825 | 825 | .name = "pxa168-fb", |
| 826 | − .owner = THIS_MODULE, | |
| 827 | 826 | }, |
| 828 | 827 | .probe = pxa168fb_probe, |
| 829 | 828 | .remove = pxa168fb_remove, |
| @@ -707,7 +707,6 @@ static struct platform_driver pxa3xx_gcu_driver = { · 706 unmodified lines | ||
| 707 | 707 | .probe = pxa3xx_gcu_probe, |
| 708 | 708 | .remove = pxa3xx_gcu_remove, |
| 709 | 709 | .driver = { |
| 710 | − .owner = THIS_MODULE, | |
| 711 | 710 | .name = DRV_NAME, |
| 712 | 711 | }, |
| 713 | 712 | }; |
| @@ -2304,7 +2304,6 @@ static struct platform_driver pxafb_driver = { · 2303 unmodified lines | ||
| 2304 | 2304 | .probe = pxafb_probe, |
| 2305 | 2305 | .remove = pxafb_remove, |
| 2306 | 2306 | .driver = { |
| 2307 | − .owner = THIS_MODULE, | |
| 2308 | 2307 | .name = "pxa2xx-fb", |
| 2309 | 2308 | #ifdef CONFIG_PM |
| 2310 | 2309 | .pm = &pxafb_pm_ops, |
| @@ -1971,7 +1971,6 @@ static struct platform_driver s3c_fb_driver = { · 1970 unmodified lines | ||
| 1971 | 1971 | .id_table = s3c_fb_driver_ids, |
| 1972 | 1972 | .driver = { |
| 1973 | 1973 | .name = "s3c-fb", |
| 1974 | − .owner = THIS_MODULE, | |
| 1975 | 1974 | .pm = &s3cfb_pm_ops, |
| 1976 | 1975 | }, |
| 1977 | 1976 | }; |
| @@ -1104,7 +1104,6 @@ static struct platform_driver s3c2410fb_driver = { · 1103 unmodified lines | ||
| 1104 | 1104 | .resume = s3c2410fb_resume, |
| 1105 | 1105 | .driver = { |
| 1106 | 1106 | .name = "s3c2410-lcd", |
| 1107 | − .owner = THIS_MODULE, | |
| 1108 | 1107 | }, |
| 1109 | 1108 | }; |
| 1110 | 1109 | |
| @@ -1115,7 +1114,6 @@ static struct platform_driver s3c2412fb_driver = { · 4 unmodified lines | ||
| 1115 | 1114 | .resume = s3c2410fb_resume, |
| 1116 | 1115 | .driver = { |
| 1117 | 1116 | .name = "s3c2412-lcd", |
| 1118 | − .owner = THIS_MODULE, | |
| 1119 | 1117 | }, |
| 1120 | 1118 | }; |
| 1121 | 1119 | |
| @@ -1304,7 +1304,6 @@ static struct platform_driver sa1100fb_driver = { · 1303 unmodified lines | ||
| 1304 | 1304 | .resume = sa1100fb_resume, |
| 1305 | 1305 | .driver = { |
| 1306 | 1306 | .name = "sa11x0-fb", |
| 1307 | − .owner = THIS_MODULE, | |
| 1308 | 1307 | }, |
| 1309 | 1308 | }; |
| 1310 | 1309 | |
| @@ -578,7 +578,6 @@ static int sh7760fb_remove(struct platform_device *dev) · 577 unmodified lines | ||
| 578 | 578 | static struct platform_driver sh7760_lcdc_driver = { |
| 579 | 579 | .driver = { |
| 580 | 580 | .name = "sh7760-lcdc", |
| 581 | − .owner = THIS_MODULE, | |
| 582 | 581 | }, |
| 583 | 582 | .probe = sh7760fb_probe, |
| 584 | 583 | .remove = sh7760fb_remove, |
| @@ -2848,7 +2848,6 @@ err1: · 2847 unmodified lines | ||
| 2848 | 2848 | static struct platform_driver sh_mobile_lcdc_driver = { |
| 2849 | 2849 | .driver = { |
| 2850 | 2850 | .name = "sh_mobile_lcdc_fb", |
| 2851 | − .owner = THIS_MODULE, | |
| 2852 | 2851 | .pm = &sh_mobile_lcdc_dev_pm_ops, |
| 2853 | 2852 | }, |
| 2854 | 2853 | .probe = sh_mobile_lcdc_probe, |
| @@ -745,7 +745,6 @@ static int sh_mobile_meram_remove(struct platform_device *pdev) · 744 unmodified lines | ||
| 745 | 745 | static struct platform_driver sh_mobile_meram_driver = { |
| 746 | 746 | .driver = { |
| 747 | 747 | .name = "sh_mobile_meram", |
| 748 | − .owner = THIS_MODULE, | |
| 749 | 748 | .pm = &sh_mobile_meram_dev_pm_ops, |
| 750 | 749 | }, |
| 751 | 750 | .probe = sh_mobile_meram_probe, |
| @@ -387,7 +387,6 @@ MODULE_DEVICE_TABLE(of, simplefb_of_match); · 386 unmodified lines | ||
| 387 | 387 | static struct platform_driver simplefb_driver = { |
| 388 | 388 | .driver = { |
| 389 | 389 | .name = "simple-framebuffer", |
| 390 | − .owner = THIS_MODULE, | |
| 391 | 390 | .of_match_table = simplefb_of_match, |
| 392 | 391 | }, |
| 393 | 392 | .probe = simplefb_probe, |
| @@ -2225,7 +2225,6 @@ static struct platform_driver sm501fb_driver = { · 2224 unmodified lines | ||
| 2225 | 2225 | .resume = sm501fb_resume, |
| 2226 | 2226 | .driver = { |
| 2227 | 2227 | .name = "sm501-fb", |
| 2228 | − .owner = THIS_MODULE, | |
| 2229 | 2228 | }, |
| 2230 | 2229 | }; |
| 2231 | 2230 | |
| @@ -202,7 +202,6 @@ static struct platform_driver gfb_driver = { · 201 unmodified lines | ||
| 202 | 202 | .remove = gfb_remove, |
| 203 | 203 | .driver = { |
| 204 | 204 | .name = "gfb", |
| 205 | − .owner = THIS_MODULE, | |
| 206 | 205 | .of_match_table = gfb_match, |
| 207 | 206 | }, |
| 208 | 207 | }; |
| @@ -512,7 +512,6 @@ MODULE_DEVICE_TABLE(of, tcx_match); · 511 unmodified lines | ||
| 512 | 512 | static struct platform_driver tcx_driver = { |
| 513 | 513 | .driver = { |
| 514 | 514 | .name = "tcx", |
| 515 | − .owner = THIS_MODULE, | |
| 516 | 515 | .of_match_table = tcx_match, |
| 517 | 516 | }, |
| 518 | 517 | .probe = tcx_probe, |
| @@ -512,7 +512,6 @@ static int vesafb_remove(struct platform_device *pdev) · 511 unmodified lines | ||
| 512 | 512 | static struct platform_driver vesafb_driver = { |
| 513 | 513 | .driver = { |
| 514 | 514 | .name = "vesa-framebuffer", |
| 515 | − .owner = THIS_MODULE, | |
| 516 | 515 | }, |
| 517 | 516 | .probe = vesafb_probe, |
| 518 | 517 | .remove = vesafb_remove, |
| @@ -486,7 +486,6 @@ static struct platform_driver vt8500lcd_driver = { · 485 unmodified lines | ||
| 486 | 486 | .probe = vt8500lcd_probe, |
| 487 | 487 | .remove = vt8500lcd_remove, |
| 488 | 488 | .driver = { |
| 489 | − .owner = THIS_MODULE, | |
| 490 | 489 | .name = "vt8500-lcd", |
| 491 | 490 | .of_match_table = of_match_ptr(via_dt_ids), |
| 492 | 491 | }, |
| @@ -407,7 +407,6 @@ static struct platform_driver wm8505fb_driver = { · 406 unmodified lines | ||
| 407 | 407 | .probe = wm8505fb_probe, |
| 408 | 408 | .remove = wm8505fb_remove, |
| 409 | 409 | .driver = { |
| 410 | − .owner = THIS_MODULE, | |
| 411 | 410 | .name = DRIVER_NAME, |
| 412 | 411 | .of_match_table = wmt_dt_ids, |
| 413 | 412 | }, |
| @@ -167,7 +167,6 @@ static struct platform_driver wmt_ge_rops_driver = { · 166 unmodified lines | ||
| 167 | 167 | .probe = wmt_ge_rops_probe, |
| 168 | 168 | .remove = wmt_ge_rops_remove, |
| 169 | 169 | .driver = { |
| 170 | − .owner = THIS_MODULE, | |
| 171 | 170 | .name = "wmt_ge_rops", |
| 172 | 171 | .of_match_table = wmt_dt_ids, |
| 173 | 172 | }, |
| @@ -497,7 +497,6 @@ static struct platform_driver xilinxfb_of_driver = { · 496 unmodified lines | ||
| 497 | 497 | .remove = xilinxfb_of_remove, |
| 498 | 498 | .driver = { |
| 499 | 499 | .name = DRIVER_NAME, |
| 500 | − .owner = THIS_MODULE, | |
| 501 | 500 | .of_match_table = xilinxfb_of_match, |
| 502 | 501 | }, |
| 503 | 502 | }; |
| @@ -640,7 +640,6 @@ static struct platform_driver virtio_mmio_driver = { · 639 unmodified lines | ||
| 640 | 640 | .remove = virtio_mmio_remove, |
| 641 | 641 | .driver = { |
| 642 | 642 | .name = "virtio-mmio", |
| 643 | − .owner = THIS_MODULE, | |
| 644 | 643 | .of_match_table = virtio_mmio_match, |
| 645 | 644 | }, |
| 646 | 645 | }; |
| @@ -175,7 +175,6 @@ MODULE_DEVICE_TABLE(of, mxc_w1_dt_ids); · 174 unmodified lines | ||
| 175 | 175 | static struct platform_driver mxc_w1_driver = { |
| 176 | 176 | .driver = { |
| 177 | 177 | .name = "mxc_w1", |
| 178 | − .owner = THIS_MODULE, | |
| 179 | 178 | .of_match_table = mxc_w1_dt_ids, |
| 180 | 179 | }, |
| 181 | 180 | .probe = mxc_w1_probe, |
| @@ -228,7 +228,6 @@ static int w1_gpio_resume(struct platform_device *pdev) · 227 unmodified lines | ||
| 228 | 228 | static struct platform_driver w1_gpio_driver = { |
| 229 | 229 | .driver = { |
| 230 | 230 | .name = "w1-gpio", |
| 231 | − .owner = THIS_MODULE, | |
| 232 | 231 | .of_match_table = of_match_ptr(w1_gpio_dt_ids), |
| 233 | 232 | }, |
| 234 | 233 | .probe = w1_gpio_probe, |
| @@ -294,7 +294,6 @@ static struct platform_driver acquirewdt_driver = { · 293 unmodified lines | ||
| 294 | 294 | .remove = acq_remove, |
| 295 | 295 | .shutdown = acq_shutdown, |
| 296 | 296 | .driver = { |
| 297 | − .owner = THIS_MODULE, | |
| 298 | 297 | .name = DRV_NAME, |
| 299 | 298 | }, |
| 300 | 299 | }; |
| @@ -302,7 +302,6 @@ static struct platform_driver advwdt_driver = { · 301 unmodified lines | ||
| 302 | 302 | .remove = advwdt_remove, |
| 303 | 303 | .shutdown = advwdt_shutdown, |
| 304 | 304 | .driver = { |
| 305 | − .owner = THIS_MODULE, | |
| 306 | 305 | .name = DRV_NAME, |
| 307 | 306 | }, |
| 308 | 307 | }; |
| @@ -324,7 +324,6 @@ static struct platform_driver ar7_wdt_driver = { · 323 unmodified lines | ||
| 324 | 324 | .remove = ar7_wdt_remove, |
| 325 | 325 | .shutdown = ar7_wdt_shutdown, |
| 326 | 326 | .driver = { |
| 327 | − .owner = THIS_MODULE, | |
| 328 | 327 | .name = "ar7_wdt", |
| 329 | 328 | }, |
| 330 | 329 | }; |
| @@ -422,7 +422,6 @@ static struct platform_driver at32_wdt_driver = { · 421 unmodified lines | ||
| 422 | 422 | .resume = at32_wdt_resume, |
| 423 | 423 | .driver = { |
| 424 | 424 | .name = "at32_wdt", |
| 425 | − .owner = THIS_MODULE, | |
| 426 | 425 | }, |
| 427 | 426 | .shutdown = at32_wdt_shutdown, |
| 428 | 427 | }; |
| @@ -268,7 +268,6 @@ static struct platform_driver at91wdt_driver = { · 267 unmodified lines | ||
| 268 | 268 | .resume = at91wdt_resume, |
| 269 | 269 | .driver = { |
| 270 | 270 | .name = "at91_wdt", |
| 271 | − .owner = THIS_MODULE, | |
| 272 | 271 | .of_match_table = at91_wdt_dt_ids, |
| 273 | 272 | }, |
| 274 | 273 | }; |
| @@ -393,7 +393,6 @@ static struct platform_driver at91wdt_driver = { · 392 unmodified lines | ||
| 393 | 393 | .remove = __exit_p(at91wdt_remove), |
| 394 | 394 | .driver = { |
| 395 | 395 | .name = "at91_wdt", |
| 396 | − .owner = THIS_MODULE, | |
| 397 | 396 | .of_match_table = of_match_ptr(at91_wdt_dt_ids), |
| 398 | 397 | }, |
| 399 | 398 | }; |
| @@ -326,7 +326,6 @@ static struct platform_driver ath79_wdt_driver = { · 325 unmodified lines | ||
| 326 | 326 | .shutdown = ath97_wdt_shutdown, |
| 327 | 327 | .driver = { |
| 328 | 328 | .name = DRIVER_NAME, |
| 329 | − .owner = THIS_MODULE, | |
| 330 | 329 | .of_match_table = of_match_ptr(ath79_wdt_match), |
| 331 | 330 | }, |
| 332 | 331 | }; |
| @@ -167,7 +167,6 @@ static struct platform_driver bcm2835_wdt_driver = { · 166 unmodified lines | ||
| 167 | 167 | .shutdown = bcm2835_wdt_shutdown, |
| 168 | 168 | .driver = { |
| 169 | 169 | .name = "bcm2835-wdt", |
| 170 | − .owner = THIS_MODULE, | |
| 171 | 170 | .of_match_table = bcm2835_wdt_of_match, |
| 172 | 171 | }, |
| 173 | 172 | }; |
| @@ -242,7 +242,6 @@ static int bcm47xx_wdt_remove(struct platform_device *pdev) · 241 unmodified lines | ||
| 242 | 242 | |
| 243 | 243 | static struct platform_driver bcm47xx_wdt_driver = { |
| 244 | 244 | .driver = { |
| 245 | − .owner = THIS_MODULE, | |
| 246 | 245 | .name = "bcm47xx-wdt", |
| 247 | 246 | }, |
| 248 | 247 | .probe = bcm47xx_wdt_probe, |
| @@ -304,7 +304,6 @@ static struct platform_driver bcm63xx_wdt_driver = { · 303 unmodified lines | ||
| 304 | 304 | .remove = bcm63xx_wdt_remove, |
| 305 | 305 | .shutdown = bcm63xx_wdt_shutdown, |
| 306 | 306 | .driver = { |
| 307 | − .owner = THIS_MODULE, | |
| 308 | 307 | .name = "bcm63xx-wdt", |
| 309 | 308 | } |
| 310 | 309 | }; |
| @@ -352,7 +352,6 @@ MODULE_DEVICE_TABLE(of, bcm_kona_wdt_of_match); · 351 unmodified lines | ||
| 352 | 352 | static struct platform_driver bcm_kona_wdt_driver = { |
| 353 | 353 | .driver = { |
| 354 | 354 | .name = BCM_KONA_WDT_NAME, |
| 355 | − .owner = THIS_MODULE, | |
| 356 | 355 | .of_match_table = bcm_kona_wdt_of_match, |
| 357 | 356 | }, |
| 358 | 357 | .probe = bcm_kona_wdt_probe, |
| @@ -407,7 +407,6 @@ static struct platform_driver bfin_wdt_driver = { · 406 unmodified lines | ||
| 407 | 407 | .resume = bfin_wdt_resume, |
| 408 | 408 | .driver = { |
| 409 | 409 | .name = WATCHDOG_NAME, |
| 410 | − .owner = THIS_MODULE, | |
| 411 | 410 | }, |
| 412 | 411 | }; |
| 413 | 412 | |
| @@ -448,7 +448,6 @@ static const struct of_device_id coh901327_dt_match[] = { · 447 unmodified lines | ||
| 448 | 448 | |
| 449 | 449 | static struct platform_driver coh901327_driver = { |
| 450 | 450 | .driver = { |
| 451 | − .owner = THIS_MODULE, | |
| 452 | 451 | .name = "coh901327_wdog", |
| 453 | 452 | .of_match_table = coh901327_dt_match, |
| 454 | 453 | }, |
| @@ -679,7 +679,6 @@ MODULE_DEVICE_TABLE(of, cpwd_match); · 678 unmodified lines | ||
| 679 | 679 | static struct platform_driver cpwd_driver = { |
| 680 | 680 | .driver = { |
| 681 | 681 | .name = DRIVER_NAME, |
| 682 | − .owner = THIS_MODULE, | |
| 683 | 682 | .of_match_table = cpwd_match, |
| 684 | 683 | }, |
| 685 | 684 | .probe = cpwd_probe, |
| @@ -218,7 +218,6 @@ MODULE_DEVICE_TABLE(of, davinci_wdt_of_match); · 217 unmodified lines | ||
| 218 | 218 | static struct platform_driver platform_wdt_driver = { |
| 219 | 219 | .driver = { |
| 220 | 220 | .name = "davinci-wdt", |
| 221 | − .owner = THIS_MODULE, | |
| 222 | 221 | .of_match_table = davinci_wdt_of_match, |
| 223 | 222 | }, |
| 224 | 223 | .probe = davinci_wdt_probe, |
| @@ -382,7 +382,6 @@ static struct platform_driver dw_wdt_driver = { · 381 unmodified lines | ||
| 382 | 382 | .remove = dw_wdt_drv_remove, |
| 383 | 383 | .driver = { |
| 384 | 384 | .name = "dw_wdt", |
| 385 | − .owner = THIS_MODULE, | |
| 386 | 385 | .of_match_table = of_match_ptr(dw_wdt_of_match), |
| 387 | 386 | .pm = &dw_wdt_pm_ops, |
| 388 | 387 | }, |
| @@ -156,7 +156,6 @@ static int ep93xx_wdt_remove(struct platform_device *pdev) · 155 unmodified lines | ||
| 156 | 156 | |
| 157 | 157 | static struct platform_driver ep93xx_wdt_driver = { |
| 158 | 158 | .driver = { |
| 159 | − .owner = THIS_MODULE, | |
| 160 | 159 | .name = "ep93xx-wdt", |
| 161 | 160 | }, |
| 162 | 161 | .probe = ep93xx_wdt_probe, |
| @@ -307,7 +307,6 @@ static const struct of_device_id gef_wdt_ids[] = { · 306 unmodified lines | ||
| 307 | 307 | static struct platform_driver gef_wdt_driver = { |
| 308 | 308 | .driver = { |
| 309 | 309 | .name = "gef_wdt", |
| 310 | − .owner = THIS_MODULE, | |
| 311 | 310 | .of_match_table = gef_wdt_ids, |
| 312 | 311 | }, |
| 313 | 312 | .probe = gef_wdt_probe, |
| @@ -258,7 +258,6 @@ static struct platform_driver geodewdt_driver = { · 257 unmodified lines | ||
| 258 | 258 | .remove = geodewdt_remove, |
| 259 | 259 | .shutdown = geodewdt_shutdown, |
| 260 | 260 | .driver = { |
| 261 | − .owner = THIS_MODULE, | |
| 262 | 261 | .name = DRV_NAME, |
| 263 | 262 | }, |
| 264 | 263 | }; |
| @@ -241,7 +241,6 @@ MODULE_DEVICE_TABLE(of, gpio_wdt_dt_ids); · 240 unmodified lines | ||
| 241 | 241 | static struct platform_driver gpio_wdt_driver = { |
| 242 | 242 | .driver = { |
| 243 | 243 | .name = "gpio-wdt", |
| 244 | − .owner = THIS_MODULE, | |
| 245 | 244 | .of_match_table = gpio_wdt_dt_ids, |
| 246 | 245 | }, |
| 247 | 246 | .probe = gpio_wdt_probe, |
| @@ -576,7 +576,6 @@ static struct platform_driver iTCO_wdt_driver = { · 575 unmodified lines | ||
| 576 | 576 | .remove = iTCO_wdt_remove, |
| 577 | 577 | .shutdown = iTCO_wdt_shutdown, |
| 578 | 578 | .driver = { |
| 579 | − .owner = THIS_MODULE, | |
| 580 | 579 | .name = DRV_NAME, |
| 581 | 580 | }, |
| 582 | 581 | }; |
| @@ -339,7 +339,6 @@ static struct platform_driver ibwdt_driver = { · 338 unmodified lines | ||
| 339 | 339 | .remove = ibwdt_remove, |
| 340 | 340 | .shutdown = ibwdt_shutdown, |
| 341 | 341 | .driver = { |
| 342 | − .owner = THIS_MODULE, | |
| 343 | 342 | .name = DRV_NAME, |
| 344 | 343 | }, |
| 345 | 344 | }; |
| @@ -313,7 +313,6 @@ static struct platform_driver ie6xx_wdt_driver = { · 312 unmodified lines | ||
| 313 | 313 | .remove = ie6xx_wdt_remove, |
| 314 | 314 | .driver = { |
| 315 | 315 | .name = DRIVER_NAME, |
| 316 | − .owner = THIS_MODULE, | |
| 317 | 316 | }, |
| 318 | 317 | }; |
| 319 | 318 | |
| @@ -337,7 +337,6 @@ static struct platform_driver imx2_wdt_driver = { · 336 unmodified lines | ||
| 337 | 337 | .shutdown = imx2_wdt_shutdown, |
| 338 | 338 | .driver = { |
| 339 | 339 | .name = DRIVER_NAME, |
| 340 | − .owner = THIS_MODULE, | |
| 341 | 340 | .of_match_table = imx2_wdt_dt_ids, |
| 342 | 341 | }, |
| 343 | 342 | }; |
| @@ -172,7 +172,6 @@ static struct platform_driver mid_wdt_driver = { · 171 unmodified lines | ||
| 172 | 172 | .probe = mid_wdt_probe, |
| 173 | 173 | .remove = mid_wdt_remove, |
| 174 | 174 | .driver = { |
| 175 | − .owner = THIS_MODULE, | |
| 176 | 175 | .name = "intel_mid_wdt", |
| 177 | 176 | }, |
| 178 | 177 | }; |
| @@ -211,7 +211,6 @@ static struct platform_driver jz4740_wdt_driver = { · 210 unmodified lines | ||
| 211 | 211 | .remove = jz4740_wdt_remove, |
| 212 | 212 | .driver = { |
| 213 | 213 | .name = "jz4740-wdt", |
| 214 | − .owner = THIS_MODULE, | |
| 215 | 214 | }, |
| 216 | 215 | }; |
| 217 | 216 | |
| @@ -563,7 +563,6 @@ static int kempld_wdt_resume(struct platform_device *pdev) · 562 unmodified lines | ||
| 563 | 563 | static struct platform_driver kempld_wdt_driver = { |
| 564 | 564 | .driver = { |
| 565 | 565 | .name = "kempld-wdt", |
| 566 | − .owner = THIS_MODULE, | |
| 567 | 566 | }, |
| 568 | 567 | .probe = kempld_wdt_probe, |
| 569 | 568 | .remove = kempld_wdt_remove, |
| @@ -296,7 +296,6 @@ static struct platform_driver ks8695wdt_driver = { · 295 unmodified lines | ||
| 296 | 296 | .resume = ks8695wdt_resume, |
| 297 | 297 | .driver = { |
| 298 | 298 | .name = "ks8695_wdt", |
| 299 | − .owner = THIS_MODULE, | |
| 300 | 299 | }, |
| 301 | 300 | }; |
| 302 | 301 | |
| @@ -232,7 +232,6 @@ static struct platform_driver ltq_wdt_driver = { · 231 unmodified lines | ||
| 232 | 232 | .remove = ltq_wdt_remove, |
| 233 | 233 | .driver = { |
| 234 | 234 | .name = "wdt", |
| 235 | − .owner = THIS_MODULE, | |
| 236 | 235 | .of_match_table = ltq_wdt_match, |
| 237 | 236 | }, |
| 238 | 237 | }; |
| @@ -231,7 +231,6 @@ static struct platform_driver max63xx_wdt_driver = { · 230 unmodified lines | ||
| 231 | 231 | .id_table = max63xx_id_table, |
| 232 | 232 | .driver = { |
| 233 | 233 | .name = "max63xx_wdt", |
| 234 | − .owner = THIS_MODULE, | |
| 235 | 234 | }, |
| 236 | 235 | }; |
| 237 | 236 | |
| @@ -187,7 +187,6 @@ static void menf21bmc_wdt_shutdown(struct platform_device *pdev) · 186 unmodified lines | ||
| 187 | 187 | |
| 188 | 188 | static struct platform_driver menf21bmc_wdt = { |
| 189 | 189 | .driver = { |
| 190 | − .owner = THIS_MODULE, | |
| 191 | 190 | .name = DEVNAME, |
| 192 | 191 | }, |
| 193 | 192 | .probe = menf21bmc_wdt_probe, |
| @@ -174,7 +174,6 @@ static struct platform_driver moxart_wdt_driver = { · 173 unmodified lines | ||
| 174 | 174 | .remove = moxart_wdt_remove, |
| 175 | 175 | .driver = { |
| 176 | 176 | .name = "moxart-watchdog", |
| 177 | − .owner = THIS_MODULE, | |
| 178 | 177 | .of_match_table = moxart_watchdog_match, |
| 179 | 178 | }, |
| 180 | 179 | }; |
| @@ -249,7 +249,6 @@ static struct platform_driver mpc8xxx_wdt_driver = { · 248 unmodified lines | ||
| 249 | 249 | .remove = mpc8xxx_wdt_remove, |
| 250 | 250 | .driver = { |
| 251 | 251 | .name = "mpc8xxx_wdt", |
| 252 | − .owner = THIS_MODULE, | |
| 253 | 252 | .of_match_table = mpc8xxx_wdt_match, |
| 254 | 253 | }, |
| 255 | 254 | }; |
| @@ -300,7 +300,6 @@ static struct platform_driver mv64x60_wdt_driver = { · 299 unmodified lines | ||
| 300 | 300 | .probe = mv64x60_wdt_probe, |
| 301 | 301 | .remove = mv64x60_wdt_remove, |
| 302 | 302 | .driver = { |
| 303 | − .owner = THIS_MODULE, | |
| 304 | 303 | .name = MV64x60_WDT_NAME, |
| 305 | 304 | }, |
| 306 | 305 | }; |
| @@ -297,7 +297,6 @@ static struct platform_driver nuc900wdt_driver = { · 296 unmodified lines | ||
| 297 | 297 | .remove = nuc900wdt_remove, |
| 298 | 298 | .driver = { |
| 299 | 299 | .name = "nuc900-wdt", |
| 300 | − .owner = THIS_MODULE, | |
| 301 | 300 | }, |
| 302 | 301 | }; |
| 303 | 302 | |
| @@ -471,7 +471,6 @@ static struct platform_driver nv_tco_driver = { · 470 unmodified lines | ||
| 471 | 471 | .remove = nv_tco_remove, |
| 472 | 472 | .shutdown = nv_tco_shutdown, |
| 473 | 473 | .driver = { |
| 474 | − .owner = THIS_MODULE, | |
| 475 | 474 | .name = TCO_MODULE_NAME, |
| 476 | 475 | }, |
| 477 | 476 | }; |
| @@ -353,7 +353,6 @@ static struct platform_driver omap_wdt_driver = { · 352 unmodified lines | ||
| 353 | 353 | .suspend = omap_wdt_suspend, |
| 354 | 354 | .resume = omap_wdt_resume, |
| 355 | 355 | .driver = { |
| 356 | − .owner = THIS_MODULE, | |
| 357 | 356 | .name = "omap_wdt", |
| 358 | 357 | .of_match_table = omap_wdt_of_match, |
| 359 | 358 | }, |
| @@ -633,7 +633,6 @@ static struct platform_driver orion_wdt_driver = { · 632 unmodified lines | ||
| 633 | 633 | .remove = orion_wdt_remove, |
| 634 | 634 | .shutdown = orion_wdt_shutdown, |
| 635 | 635 | .driver = { |
| 636 | − .owner = THIS_MODULE, | |
| 637 | 636 | .name = "orion_wdt", |
| 638 | 637 | .of_match_table = orion_wdt_of_match_table, |
| 639 | 638 | }, |
| @@ -207,7 +207,6 @@ MODULE_DEVICE_TABLE(of, pnx4008_wdt_match); · 206 unmodified lines | ||
| 207 | 207 | static struct platform_driver platform_wdt_driver = { |
| 208 | 208 | .driver = { |
| 209 | 209 | .name = "pnx4008-watchdog", |
| 210 | − .owner = THIS_MODULE, | |
| 211 | 210 | .of_match_table = of_match_ptr(pnx4008_wdt_match), |
| 212 | 211 | }, |
| 213 | 212 | .probe = pnx4008_wdt_probe, |
| @@ -287,7 +287,6 @@ static struct platform_driver rdc321x_wdt_driver = { · 286 unmodified lines | ||
| 287 | 287 | .probe = rdc321x_wdt_probe, |
| 288 | 288 | .remove = rdc321x_wdt_remove, |
| 289 | 289 | .driver = { |
| 290 | − .owner = THIS_MODULE, | |
| 291 | 290 | .name = "rdc321x-wdt", |
| 292 | 291 | }, |
| 293 | 292 | }; |
| @@ -237,7 +237,6 @@ MODULE_DEVICE_TABLE(of, riowd_match); · 236 unmodified lines | ||
| 237 | 237 | static struct platform_driver riowd_driver = { |
| 238 | 238 | .driver = { |
| 239 | 239 | .name = DRIVER_NAME, |
| 240 | − .owner = THIS_MODULE, | |
| 241 | 240 | .of_match_table = riowd_match, |
| 242 | 241 | }, |
| 243 | 242 | .probe = riowd_probe, |
| @@ -194,7 +194,6 @@ static struct platform_driver rt288x_wdt_driver = { · 193 unmodified lines | ||
| 194 | 194 | .shutdown = rt288x_wdt_shutdown, |
| 195 | 195 | .driver = { |
| 196 | 196 | .name = KBUILD_MODNAME, |
| 197 | − .owner = THIS_MODULE, | |
| 198 | 197 | .of_match_table = rt288x_wdt_match, |
| 199 | 198 | }, |
| 200 | 199 | }; |
| @@ -741,7 +741,6 @@ static struct platform_driver s3c2410wdt_driver = { · 740 unmodified lines | ||
| 741 | 741 | .shutdown = s3c2410wdt_shutdown, |
| 742 | 742 | .id_table = s3c2410_wdt_ids, |
| 743 | 743 | .driver = { |
| 744 | − .owner = THIS_MODULE, | |
| 745 | 744 | .name = "s3c2410-wdt", |
| 746 | 745 | .pm = &s3c2410wdt_pm_ops, |
| 747 | 746 | .of_match_table = of_match_ptr(s3c2410_wdt_match), |
| @@ -453,7 +453,6 @@ static struct platform_driver sch311x_wdt_driver = { · 452 unmodified lines | ||
| 453 | 453 | .remove = sch311x_wdt_remove, |
| 454 | 454 | .shutdown = sch311x_wdt_shutdown, |
| 455 | 455 | .driver = { |
| 456 | − .owner = THIS_MODULE, | |
| 457 | 456 | .name = DRV_NAME, |
| 458 | 457 | }, |
| 459 | 458 | }; |
| @@ -303,7 +303,6 @@ static void sh_wdt_shutdown(struct platform_device *pdev) · 302 unmodified lines | ||
| 303 | 303 | static struct platform_driver sh_wdt_driver = { |
| 304 | 304 | .driver = { |
| 305 | 305 | .name = DRV_NAME, |
| 306 | − .owner = THIS_MODULE, | |
| 307 | 306 | }, |
| 308 | 307 | |
| 309 | 308 | .probe = sh_wdt_probe, |
| @@ -210,7 +210,6 @@ MODULE_DEVICE_TABLE(of, sirfsoc_wdt_of_match); · 209 unmodified lines | ||
| 210 | 210 | static struct platform_driver sirfsoc_wdt_driver = { |
| 211 | 211 | .driver = { |
| 212 | 212 | .name = "sirfsoc-wdt", |
| 213 | − .owner = THIS_MODULE, | |
| 214 | 213 | .pm = &sirfsoc_wdt_pm_ops, |
| 215 | 214 | .of_match_table = sirfsoc_wdt_of_match, |
| 216 | 215 | }, |
| @@ -538,7 +538,6 @@ static struct platform_driver sp5100_tco_driver = { · 537 unmodified lines | ||
| 538 | 538 | .remove = sp5100_tco_remove, |
| 539 | 539 | .shutdown = sp5100_tco_shutdown, |
| 540 | 540 | .driver = { |
| 541 | − .owner = THIS_MODULE, | |
| 542 | 541 | .name = TCO_MODULE_NAME, |
| 543 | 542 | }, |
| 544 | 543 | }; |
| @@ -314,7 +314,6 @@ static struct platform_driver sunxi_wdt_driver = { · 313 unmodified lines | ||
| 314 | 314 | .remove = sunxi_wdt_remove, |
| 315 | 315 | .shutdown = sunxi_wdt_shutdown, |
| 316 | 316 | .driver = { |
| 317 | − .owner = THIS_MODULE, | |
| 318 | 317 | .name = DRV_NAME, |
| 319 | 318 | .of_match_table = sunxi_wdt_dt_ids, |
| 320 | 319 | }, |
| @@ -289,7 +289,6 @@ static struct platform_driver tegra_wdt_driver = { · 288 unmodified lines | ||
| 289 | 289 | .probe = tegra_wdt_probe, |
| 290 | 290 | .remove = tegra_wdt_remove, |
| 291 | 291 | .driver = { |
| 292 | − .owner = THIS_MODULE, | |
| 293 | 292 | .name = "tegra-wdt", |
| 294 | 293 | .pm = &tegra_wdt_pm_ops, |
| 295 | 294 | .of_match_table = tegra_wdt_of_match, |
| @@ -436,7 +436,6 @@ static struct platform_driver ts72xx_wdt_driver = { · 435 unmodified lines | ||
| 436 | 436 | .remove = ts72xx_wdt_remove, |
| 437 | 437 | .driver = { |
| 438 | 438 | .name = "ts72xx-wdt", |
| 439 | − .owner = THIS_MODULE, | |
| 440 | 439 | }, |
| 441 | 440 | }; |
| 442 | 441 | |
| @@ -140,7 +140,6 @@ static struct platform_driver twl4030_wdt_driver = { · 139 unmodified lines | ||
| 140 | 140 | .suspend = twl4030_wdt_suspend, |
| 141 | 141 | .resume = twl4030_wdt_resume, |
| 142 | 142 | .driver = { |
| 143 | − .owner = THIS_MODULE, | |
| 144 | 143 | .name = "twl4030_wdt", |
| 145 | 144 | .of_match_table = twl_wdt_of_match, |
| 146 | 145 | }, |
| @@ -167,7 +167,6 @@ static struct platform_driver txx9wdt_driver = { · 166 unmodified lines | ||
| 167 | 167 | .shutdown = txx9wdt_shutdown, |
| 168 | 168 | .driver = { |
| 169 | 169 | .name = "txx9wdt", |
| 170 | − .owner = THIS_MODULE, | |
| 171 | 170 | }, |
| 172 | 171 | }; |
| 173 | 172 | |
| @@ -156,7 +156,6 @@ static struct platform_driver ux500_wdt_driver = { · 155 unmodified lines | ||
| 156 | 156 | .suspend = ux500_wdt_suspend, |
| 157 | 157 | .resume = ux500_wdt_resume, |
| 158 | 158 | .driver = { |
| 159 | − .owner = THIS_MODULE, | |
| 160 | 159 | .name = "ux500_wdt", |
| 161 | 160 | }, |
| 162 | 161 | }; |
| @@ -320,7 +320,6 @@ static struct platform_driver xen_wdt_driver = { · 319 unmodified lines | ||
| 320 | 320 | .suspend = xen_wdt_suspend, |
| 321 | 321 | .resume = xen_wdt_resume, |
| 322 | 322 | .driver = { |
| 323 | − .owner = THIS_MODULE, | |
| 324 | 323 | .name = DRV_NAME, |
| 325 | 324 | }, |
| 326 | 325 | }; |
| @@ -222,7 +222,6 @@ static int __init amiga_zorro_probe(struct platform_device *pdev) · 221 unmodified lines | ||
| 222 | 222 | static struct platform_driver amiga_zorro_driver = { |
| 223 | 223 | .driver = { |
| 224 | 224 | .name = "amiga-zorro", |
| 225 | − .owner = THIS_MODULE, | |
| 226 | 225 | }, |
| 227 | 226 | }; |
| 228 | 227 | |
| @@ -22,6 +22,7 @@ · 21 unmodified lines | ||
| 22 | 22 | #include <linux/io.h> |
| 23 | 23 | #include <linux/slab.h> |
| 24 | 24 | #include <linux/atomic.h> |
| 25 | +#include <linux/device.h> | |
| 25 | 26 | |
| 26 | 27 | static ssize_t default_read_file(struct file *file, char __user *buf, |
| 27 | 28 | size_t count, loff_t *ppos) |
| @@ -762,3 +763,56 @@ struct dentry *debugfs_create_regset32(const char *name, umode_t mode, · 734 unmodified lines | ||
| 762 | 763 | EXPORT_SYMBOL_GPL(debugfs_create_regset32); |
| 763 | 764 | |
| 764 | 765 | #endif /* CONFIG_HAS_IOMEM */ |
| 766 | + | |
| 767 | +struct debugfs_devm_entry { | |
| 768 | + int (*read)(struct seq_file *seq, void *data); | |
| 769 | + struct device *dev; | |
| 770 | +}; | |
| 771 | + | |
| 772 | +static int debugfs_devm_entry_open(struct inode *inode, struct file *f) | |
| 773 | +{ | |
| 774 | + struct debugfs_devm_entry *entry = inode->i_private; | |
| 775 | + | |
| 776 | + return single_open(f, entry->read, entry->dev); | |
| 777 | +} | |
| 778 | + | |
| 779 | +static const struct file_operations debugfs_devm_entry_ops = { | |
| 780 | + .owner = THIS_MODULE, | |
| 781 | + .open = debugfs_devm_entry_open, | |
| 782 | + .release = single_release, | |
| 783 | + .read = seq_read, | |
| 784 | + .llseek = seq_lseek | |
| 785 | +}; | |
| 786 | + | |
| 787 | +/** | |
| 788 | + * debugfs_create_devm_seqfile - create a debugfs file that is bound to device. | |
| 789 | + * | |
| 790 | + * @dev: device related to this debugfs file. | |
| 791 | + * @name: name of the debugfs file. | |
| 792 | + * @parent: a pointer to the parent dentry for this file. This should be a | |
| 793 | + * directory dentry if set. If this parameter is %NULL, then the | |
| 794 | + * file will be created in the root of the debugfs filesystem. | |
| 795 | + * @read_fn: function pointer called to print the seq_file content. | |
| 796 | + */ | |
| 797 | +struct dentry *debugfs_create_devm_seqfile(struct device *dev, const char *name, | |
| 798 | + struct dentry *parent, | |
| 799 | + int (*read_fn)(struct seq_file *s, | |
| 800 | + void *data)) | |
| 801 | +{ | |
| 802 | + struct debugfs_devm_entry *entry; | |
| 803 | + | |
| 804 | + if (IS_ERR(parent)) | |
| 805 | + return ERR_PTR(-ENOENT); | |
| 806 | + | |
| 807 | + entry = devm_kzalloc(dev, sizeof(*entry), GFP_KERNEL); | |
| 808 | + if (!entry) | |
| 809 | + return ERR_PTR(-ENOMEM); | |
| 810 | + | |
| 811 | + entry->read = read_fn; | |
| 812 | + entry->dev = dev; | |
| 813 | + | |
| 814 | + return debugfs_create_file(name, S_IRUGO, parent, entry, | |
| 815 | + &debugfs_devm_entry_ops); | |
| 816 | +} | |
| 817 | +EXPORT_SYMBOL_GPL(debugfs_create_devm_seqfile); | |
| 818 | + | |
| @@ -106,7 +106,7 @@ static void *kernfs_seq_start(struct seq_file *sf, loff_t *ppos) · 105 unmodified lines | ||
| 106 | 106 | const struct kernfs_ops *ops; |
| 107 | 107 | |
| 108 | 108 | /* |
| 109 | − * @of->mutex nests outside active ref and is just to ensure that | |
| 109 | + * @of->mutex nests outside active ref and is primarily to ensure that | |
| 110 | 110 | * the ops aren't called concurrently for the same open file. |
| 111 | 111 | */ |
| 112 | 112 | mutex_lock(&of->mutex); |
| @@ -189,13 +189,16 @@ static ssize_t kernfs_file_direct_read(struct kernfs_open_file *of, · 76 unmodified lines | ||
| 189 | 189 | const struct kernfs_ops *ops; |
| 190 | 190 | char *buf; |
| 191 | 191 | |
| 192 | − buf = kmalloc(len, GFP_KERNEL); | |
| 192 | + buf = of->prealloc_buf; | |
| 193 | + if (!buf) | |
| 194 | + buf = kmalloc(len, GFP_KERNEL); | |
| 193 | 195 | if (!buf) |
| 194 | 196 | return -ENOMEM; |
| 195 | 197 | |
| 196 | 198 | /* |
| 197 | − * @of->mutex nests outside active ref and is just to ensure that | |
| 198 | − * the ops aren't called concurrently for the same open file. | |
| 199 | + * @of->mutex nests outside active ref and is used both to ensure that | |
| 200 | + * the ops aren't called concurrently for the same open file, and | |
| 201 | + * to provide exclusive access to ->prealloc_buf (when that exists). | |
| 199 | 202 | */ |
| 200 | 203 | mutex_lock(&of->mutex); |
| 201 | 204 | if (!kernfs_get_active(of->kn)) { |
| @@ -210,21 +213,22 @@ static ssize_t kernfs_file_direct_read(struct kernfs_open_file *of, · 8 unmodified lines | ||
| 210 | 213 | else |
| 211 | 214 | len = -EINVAL; |
| 212 | 215 | |
| 213 | − kernfs_put_active(of->kn); | |
| 214 | − mutex_unlock(&of->mutex); | |
| 215 | − | |
| 216 | 216 | if (len < 0) |
| 217 | − goto out_free; | |
| 217 | + goto out_unlock; | |
| 218 | 218 | |
| 219 | 219 | if (copy_to_user(user_buf, buf, len)) { |
| 220 | 220 | len = -EFAULT; |
| 221 | − goto out_free; | |
| 221 | + goto out_unlock; | |
| 222 | 222 | } |
| 223 | 223 | |
| 224 | 224 | *ppos += len; |
| 225 | 225 | |
| 226 | + out_unlock: | |
| 227 | + kernfs_put_active(of->kn); | |
| 228 | + mutex_unlock(&of->mutex); | |
| 226 | 229 | out_free: |
| 227 | − kfree(buf); | |
| 230 | + if (buf != of->prealloc_buf) | |
| 231 | + kfree(buf); | |
| 228 | 232 | return len; |
| 229 | 233 | } |
| 230 | 234 | |
| @@ -278,19 +282,16 @@ static ssize_t kernfs_fop_write(struct file *file, const char __user *user_buf, · 47 unmodified lines | ||
| 278 | 282 | len = min_t(size_t, count, PAGE_SIZE); |
| 279 | 283 | } |
| 280 | 284 | |
| 281 | − buf = kmalloc(len + 1, GFP_KERNEL); | |
| 285 | + buf = of->prealloc_buf; | |
| 286 | + if (!buf) | |
| 287 | + buf = kmalloc(len + 1, GFP_KERNEL); | |
| 282 | 288 | if (!buf) |
| 283 | 289 | return -ENOMEM; |
| 284 | 290 | |
| 285 | − if (copy_from_user(buf, user_buf, len)) { | |
| 286 | − len = -EFAULT; | |
| 287 | − goto out_free; | |
| 288 | − } | |
| 289 | − buf[len] = '\0'; /* guarantee string termination */ | |
| 290 | − | |
| 291 | 291 | /* |
| 292 | − * @of->mutex nests outside active ref and is just to ensure that | |
| 293 | − * the ops aren't called concurrently for the same open file. | |
| 292 | + * @of->mutex nests outside active ref and is used both to ensure that | |
| 293 | + * the ops aren't called concurrently for the same open file, and | |
| 294 | + * to provide exclusive access to ->prealloc_buf (when that exists). | |
| 294 | 295 | */ |
| 295 | 296 | mutex_lock(&of->mutex); |
| 296 | 297 | if (!kernfs_get_active(of->kn)) { |
| @@ -299,19 +300,27 @@ static ssize_t kernfs_fop_write(struct file *file, const char __user *user_buf, · 2 unmodified lines | ||
| 299 | 300 | goto out_free; |
| 300 | 301 | } |
| 301 | 302 | |
| 303 | + if (copy_from_user(buf, user_buf, len)) { | |
| 304 | + len = -EFAULT; | |
| 305 | + goto out_unlock; | |
| 306 | + } | |
| 307 | + buf[len] = '\0'; /* guarantee string termination */ | |
| 308 | + | |
| 302 | 309 | ops = kernfs_ops(of->kn); |
| 303 | 310 | if (ops->write) |
| 304 | 311 | len = ops->write(of, buf, len, *ppos); |
| 305 | 312 | else |
| 306 | 313 | len = -EINVAL; |
| 307 | 314 | |
| 308 | − kernfs_put_active(of->kn); | |
| 309 | − mutex_unlock(&of->mutex); | |
| 310 | − | |
| 311 | 315 | if (len > 0) |
| 312 | 316 | *ppos += len; |
| 317 | + | |
| 318 | +out_unlock: | |
| 319 | + kernfs_put_active(of->kn); | |
| 320 | + mutex_unlock(&of->mutex); | |
| 313 | 321 | out_free: |
| 314 | − kfree(buf); | |
| 322 | + if (buf != of->prealloc_buf) | |
| 323 | + kfree(buf); | |
| 315 | 324 | return len; |
| 316 | 325 | } |
| 317 | 326 | |
| @@ -685,6 +694,22 @@ static int kernfs_fop_open(struct inode *inode, struct file *file) · 367 unmodified lines | ||
| 685 | 694 | */ |
| 686 | 695 | of->atomic_write_len = ops->atomic_write_len; |
| 687 | 696 | |
| 697 | + error = -EINVAL; | |
| 698 | + /* | |
| 699 | + * ->seq_show is incompatible with ->prealloc, | |
| 700 | + * as seq_read does its own allocation. | |
| 701 | + * ->read must be used instead. | |
| 702 | + */ | |
| 703 | + if (ops->prealloc && ops->seq_show) | |
| 704 | + goto err_free; | |
| 705 | + if (ops->prealloc) { | |
| 706 | + int len = of->atomic_write_len ?: PAGE_SIZE; | |
| 707 | + of->prealloc_buf = kmalloc(len + 1, GFP_KERNEL); | |
| 708 | + error = -ENOMEM; | |
| 709 | + if (!of->prealloc_buf) | |
| 710 | + goto err_free; | |
| 711 | + } | |
| 712 | + | |
| 688 | 713 | /* |
| 689 | 714 | * Always instantiate seq_file even if read access doesn't use |
| 690 | 715 | * seq_file or is not requested. This unifies private data access |
| @@ -715,6 +740,7 @@ static int kernfs_fop_open(struct inode *inode, struct file *file) · 24 unmodified lines | ||
| 715 | 740 | err_close: |
| 716 | 741 | seq_release(inode, file); |
| 717 | 742 | err_free: |
| 743 | + kfree(of->prealloc_buf); | |
| 718 | 744 | kfree(of); |
| 719 | 745 | err_out: |
| 720 | 746 | kernfs_put_active(kn); |
| @@ -728,6 +754,7 @@ static int kernfs_fop_release(struct inode *inode, struct file *filp) · 7 unmodified lines | ||
| 728 | 754 | |
| 729 | 755 | kernfs_put_open_node(kn, of); |
| 730 | 756 | seq_release(inode, filp); |
| 757 | + kfree(of->prealloc_buf); | |
| 731 | 758 | kfree(of); |
| 732 | 759 | |
| 733 | 760 | return 0; |
| @@ -561,7 +561,6 @@ static struct platform_driver ramoops_driver = { · 560 unmodified lines | ||
| 561 | 561 | .remove = __exit_p(ramoops_remove), |
| 562 | 562 | .driver = { |
| 563 | 563 | .name = "ramoops", |
| 564 | − .owner = THIS_MODULE, | |
| 565 | 564 | }, |
| 566 | 565 | }; |
| 567 | 566 | |
| @@ -102,6 +102,22 @@ static ssize_t sysfs_kf_bin_read(struct kernfs_open_file *of, char *buf, · 101 unmodified lines | ||
| 102 | 102 | return battr->read(of->file, kobj, battr, buf, pos, count); |
| 103 | 103 | } |
| 104 | 104 | |
| 105 | +/* kernfs read callback for regular sysfs files with pre-alloc */ | |
| 106 | +static ssize_t sysfs_kf_read(struct kernfs_open_file *of, char *buf, | |
| 107 | + size_t count, loff_t pos) | |
| 108 | +{ | |
| 109 | + const struct sysfs_ops *ops = sysfs_file_ops(of->kn); | |
| 110 | + struct kobject *kobj = of->kn->parent->priv; | |
| 111 | + | |
| 112 | + /* | |
| 113 | + * If buf != of->prealloc_buf, we don't know how | |
| 114 | + * large it is, so cannot safely pass it to ->show | |
| 115 | + */ | |
| 116 | + if (pos || WARN_ON_ONCE(buf != of->prealloc_buf)) | |
| 117 | + return 0; | |
| 118 | + return ops->show(kobj, of->kn->priv, buf); | |
| 119 | +} | |
| 120 | + | |
| 105 | 121 | /* kernfs write callback for regular sysfs files */ |
| 106 | 122 | static ssize_t sysfs_kf_write(struct kernfs_open_file *of, char *buf, |
| 107 | 123 | size_t count, loff_t pos) |
| @@ -125,7 +141,7 @@ static ssize_t sysfs_kf_bin_write(struct kernfs_open_file *of, char *buf, · 17 unmodified lines | ||
| 125 | 141 | |
| 126 | 142 | if (size) { |
| 127 | 143 | if (size <= pos) |
| 128 | − return 0; | |
| 144 | + return -EFBIG; | |
| 129 | 145 | count = min_t(ssize_t, count, size - pos); |
| 130 | 146 | } |
| 131 | 147 | if (!count) |
| @@ -184,6 +200,22 @@ static const struct kernfs_ops sysfs_file_kfops_rw = { · 52 unmodified lines | ||
| 184 | 200 | .write = sysfs_kf_write, |
| 185 | 201 | }; |
| 186 | 202 | |
| 203 | +static const struct kernfs_ops sysfs_prealloc_kfops_ro = { | |
| 204 | + .read = sysfs_kf_read, | |
| 205 | + .prealloc = true, | |
| 206 | +}; | |
| 207 | + | |
| 208 | +static const struct kernfs_ops sysfs_prealloc_kfops_wo = { | |
| 209 | + .write = sysfs_kf_write, | |
| 210 | + .prealloc = true, | |
| 211 | +}; | |
| 212 | + | |
| 213 | +static const struct kernfs_ops sysfs_prealloc_kfops_rw = { | |
| 214 | + .read = sysfs_kf_read, | |
| 215 | + .write = sysfs_kf_write, | |
| 216 | + .prealloc = true, | |
| 217 | +}; | |
| 218 | + | |
| 187 | 219 | static const struct kernfs_ops sysfs_bin_kfops_ro = { |
| 188 | 220 | .read = sysfs_kf_bin_read, |
| 189 | 221 | }; |
| @@ -222,13 +254,22 @@ int sysfs_add_file_mode_ns(struct kernfs_node *parent, · 32 unmodified lines | ||
| 222 | 254 | kobject_name(kobj))) |
| 223 | 255 | return -EINVAL; |
| 224 | 256 | |
| 225 | − if (sysfs_ops->show && sysfs_ops->store) | |
| 226 | − ops = &sysfs_file_kfops_rw; | |
| 227 | − else if (sysfs_ops->show) | |
| 228 | − ops = &sysfs_file_kfops_ro; | |
| 229 | − else if (sysfs_ops->store) | |
| 230 | − ops = &sysfs_file_kfops_wo; | |
| 231 | − else | |
| 257 | + if (sysfs_ops->show && sysfs_ops->store) { | |
| 258 | + if (mode & SYSFS_PREALLOC) | |
| 259 | + ops = &sysfs_prealloc_kfops_rw; | |
| 260 | + else | |
| 261 | + ops = &sysfs_file_kfops_rw; | |
| 262 | + } else if (sysfs_ops->show) { | |
| 263 | + if (mode & SYSFS_PREALLOC) | |
| 264 | + ops = &sysfs_prealloc_kfops_ro; | |
| 265 | + else | |
| 266 | + ops = &sysfs_file_kfops_ro; | |
| 267 | + } else if (sysfs_ops->store) { | |
| 268 | + if (mode & SYSFS_PREALLOC) | |
| 269 | + ops = &sysfs_prealloc_kfops_wo; | |
| 270 | + else | |
| 271 | + ops = &sysfs_file_kfops_wo; | |
| 272 | + } else | |
| 232 | 273 | ops = &sysfs_file_kfops_empty; |
| 233 | 274 | |
| 234 | 275 | size = PAGE_SIZE; |
| @@ -253,7 +294,7 @@ int sysfs_add_file_mode_ns(struct kernfs_node *parent, · 18 unmodified lines | ||
| 253 | 294 | if (!attr->ignore_lockdep) |
| 254 | 295 | key = attr->key ?: (struct lock_class_key *)&attr->skey; |
| 255 | 296 | #endif |
| 256 | − kn = __kernfs_create_file(parent, attr->name, mode, size, ops, | |
| 297 | + kn = __kernfs_create_file(parent, attr->name, mode & 0777, size, ops, | |
| 257 | 298 | (void *)attr, ns, true, key); |
| 258 | 299 | if (IS_ERR(kn)) { |
| 259 | 300 | if (PTR_ERR(kn) == -EEXIST) |
| @@ -61,6 +61,7 @@ · 60 unmodified lines | ||
| 61 | 61 | * bitmap_find_free_region(bitmap, bits, order) Find and allocate bit region |
| 62 | 62 | * bitmap_release_region(bitmap, pos, order) Free specified bit region |
| 63 | 63 | * bitmap_allocate_region(bitmap, pos, order) Allocate specified bit region |
| 64 | + * bitmap_print_to_pagebuf(list, buf, mask, nbits) Print bitmap src as list/hex | |
| 64 | 65 | */ |
| 65 | 66 | |
| 66 | 67 | /* |
| @@ -171,6 +172,8 @@ extern void bitmap_release_region(unsigned long *bitmap, unsigned int pos, int o · 104 unmodified lines | ||
| 171 | 172 | extern int bitmap_allocate_region(unsigned long *bitmap, unsigned int pos, int order); |
| 172 | 173 | extern void bitmap_copy_le(void *dst, const unsigned long *src, int nbits); |
| 173 | 174 | extern int bitmap_ord_to_pos(const unsigned long *bitmap, int n, int bits); |
| 175 | +extern int bitmap_print_to_pagebuf(bool list, char *buf, | |
| 176 | + const unsigned long *maskp, int nmaskbits); | |
| 174 | 177 | |
| 175 | 178 | #define BITMAP_FIRST_WORD_MASK(start) (~0UL << ((start) % BITS_PER_LONG)) |
| 176 | 179 | #define BITMAP_LAST_WORD_MASK(nbits) \ |
| @@ -0,0 +1,100 @@ | ||
| 1 | +#ifndef _LINUX_CACHEINFO_H | |
| 2 | +#define _LINUX_CACHEINFO_H | |
| 3 | + | |
| 4 | +#include <linux/bitops.h> | |
| 5 | +#include <linux/cpumask.h> | |
| 6 | +#include <linux/smp.h> | |
| 7 | + | |
| 8 | +struct device_node; | |
| 9 | +struct attribute; | |
| 10 | + | |
| 11 | +enum cache_type { | |
| 12 | + CACHE_TYPE_NOCACHE = 0, | |
| 13 | + CACHE_TYPE_INST = BIT(0), | |
| 14 | + CACHE_TYPE_DATA = BIT(1), | |
| 15 | + CACHE_TYPE_SEPARATE = CACHE_TYPE_INST | CACHE_TYPE_DATA, | |
| 16 | + CACHE_TYPE_UNIFIED = BIT(2), | |
| 17 | +}; | |
| 18 | + | |
| 19 | +/** | |
| 20 | + * struct cacheinfo - represent a cache leaf node | |
| 21 | + * @type: type of the cache - data, inst or unified | |
| 22 | + * @level: represents the hierarcy in the multi-level cache | |
| 23 | + * @coherency_line_size: size of each cache line usually representing | |
| 24 | + * the minimum amount of data that gets transferred from memory | |
| 25 | + * @number_of_sets: total number of sets, a set is a collection of cache | |
| 26 | + * lines sharing the same index | |
| 27 | + * @ways_of_associativity: number of ways in which a particular memory | |
| 28 | + * block can be placed in the cache | |
| 29 | + * @physical_line_partition: number of physical cache lines sharing the | |
| 30 | + * same cachetag | |
| 31 | + * @size: Total size of the cache | |
| 32 | + * @shared_cpu_map: logical cpumask representing all the cpus sharing | |
| 33 | + * this cache node | |
| 34 | + * @attributes: bitfield representing various cache attributes | |
| 35 | + * @of_node: if devicetree is used, this represents either the cpu node in | |
| 36 | + * case there's no explicit cache node or the cache node itself in the | |
| 37 | + * device tree | |
| 38 | + * @disable_sysfs: indicates whether this node is visible to the user via | |
| 39 | + * sysfs or not | |
| 40 | + * @priv: pointer to any private data structure specific to particular | |
| 41 | + * cache design | |
| 42 | + * | |
| 43 | + * While @of_node, @disable_sysfs and @priv are used for internal book | |
| 44 | + * keeping, the remaining members form the core properties of the cache | |
| 45 | + */ | |
| 46 | +struct cacheinfo { | |
| 47 | + enum cache_type type; | |
| 48 | + unsigned int level; | |
| 49 | + unsigned int coherency_line_size; | |
| 50 | + unsigned int number_of_sets; | |
| 51 | + unsigned int ways_of_associativity; | |
| 52 | + unsigned int physical_line_partition; | |
| 53 | + unsigned int size; | |
| 54 | + cpumask_t shared_cpu_map; | |
| 55 | + unsigned int attributes; | |
| 56 | +#define CACHE_WRITE_THROUGH BIT(0) | |
| 57 | +#define CACHE_WRITE_BACK BIT(1) | |
| 58 | +#define CACHE_WRITE_POLICY_MASK \ | |
| 59 | + (CACHE_WRITE_THROUGH | CACHE_WRITE_BACK) | |
| 60 | +#define CACHE_READ_ALLOCATE BIT(2) | |
| 61 | +#define CACHE_WRITE_ALLOCATE BIT(3) | |
| 62 | +#define CACHE_ALLOCATE_POLICY_MASK \ | |
| 63 | + (CACHE_READ_ALLOCATE | CACHE_WRITE_ALLOCATE) | |
| 64 | + | |
| 65 | + struct device_node *of_node; | |
| 66 | + bool disable_sysfs; | |
| 67 | + void *priv; | |
| 68 | +}; | |
| 69 | + | |
| 70 | +struct cpu_cacheinfo { | |
| 71 | + struct cacheinfo *info_list; | |
| 72 | + unsigned int num_levels; | |
| 73 | + unsigned int num_leaves; | |
| 74 | +}; | |
| 75 | + | |
| 76 | +/* | |
| 77 | + * Helpers to make sure "func" is executed on the cpu whose cache | |
| 78 | + * attributes are being detected | |
| 79 | + */ | |
| 80 | +#define DEFINE_SMP_CALL_CACHE_FUNCTION(func) \ | |
| 81 | +static inline void _##func(void *ret) \ | |
| 82 | +{ \ | |
| 83 | + int cpu = smp_processor_id(); \ | |
| 84 | + *(int *)ret = __##func(cpu); \ | |
| 85 | +} \ | |
| 86 | + \ | |
| 87 | +int func(unsigned int cpu) \ | |
| 88 | +{ \ | |
| 89 | + int ret; \ | |
| 90 | + smp_call_function_single(cpu, _##func, &ret, true); \ | |
| 91 | + return ret; \ | |
| 92 | +} | |
| 93 | + | |
| 94 | +struct cpu_cacheinfo *get_cpu_cacheinfo(unsigned int cpu); | |
| 95 | +int init_cache_level(unsigned int cpu); | |
| 96 | +int populate_cache_leaves(unsigned int cpu); | |
| 97 | + | |
| 98 | +const struct attribute_group *cache_get_priv_group(struct cacheinfo *this_leaf); | |
| 99 | + | |
| 100 | +#endif /* _LINUX_CACHEINFO_H */ | |
| @@ -19,6 +19,7 @@ · 18 unmodified lines | ||
| 19 | 19 | |
| 20 | 20 | struct device; |
| 21 | 21 | struct device_node; |
| 22 | +struct attribute_group; | |
| 22 | 23 | |
| 23 | 24 | struct cpu { |
| 24 | 25 | int node_id; /* The node which contains the CPU */ |
| @@ -39,6 +40,9 @@ extern void cpu_remove_dev_attr(struct device_attribute *attr); · 14 unmodified lines | ||
| 39 | 40 | extern int cpu_add_dev_attr_group(struct attribute_group *attrs); |
| 40 | 41 | extern void cpu_remove_dev_attr_group(struct attribute_group *attrs); |
| 41 | 42 | |
| 43 | +extern struct device *cpu_device_create(struct device *parent, void *drvdata, | |
| 44 | + const struct attribute_group **groups, | |
| 45 | + const char *fmt, ...); | |
| 42 | 46 | #ifdef CONFIG_HOTPLUG_CPU |
| 43 | 47 | extern void unregister_cpu(struct cpu *cpu); |
| 44 | 48 | extern ssize_t arch_cpu_probe(const char *, size_t); |
| @@ -803,6 +803,23 @@ static inline const struct cpumask *get_cpu_mask(unsigned int cpu) · 802 unmodified lines | ||
| 803 | 803 | } |
| 804 | 804 | #endif /* NR_CPUS > BITS_PER_LONG */ |
| 805 | 805 | |
| 806 | +/** | |
| 807 | + * cpumap_print_to_pagebuf - copies the cpumask into the buffer either | |
| 808 | + * as comma-separated list of cpus or hex values of cpumask | |
| 809 | + * @list: indicates whether the cpumap must be list | |
| 810 | + * @mask: the cpumask to copy | |
| 811 | + * @buf: the buffer to copy into | |
| 812 | + * | |
| 813 | + * Returns the length of the (null-terminated) @buf string, zero if | |
| 814 | + * nothing is copied. | |
| 815 | + */ | |
| 816 | +static inline ssize_t | |
| 817 | +cpumap_print_to_pagebuf(bool list, char *buf, const struct cpumask *mask) | |
| 818 | +{ | |
| 819 | + return bitmap_print_to_pagebuf(list, buf, cpumask_bits(mask), | |
| 820 | + nr_cpumask_bits); | |
| 821 | +} | |
| 822 | + | |
| 806 | 823 | /* |
| 807 | 824 | * |
| 808 | 825 | * From here down, all obsolete. Use cpumask_ variants! |
| @@ -20,6 +20,7 @@ · 19 unmodified lines | ||
| 20 | 20 | |
| 21 | 21 | #include <linux/types.h> |
| 22 | 22 | |
| 23 | +struct device; | |
| 23 | 24 | struct file_operations; |
| 24 | 25 | |
| 25 | 26 | struct debugfs_blob_wrapper { |
| @@ -99,13 +100,18 @@ struct dentry *debugfs_create_u32_array(const char *name, umode_t mode, · 73 unmodified lines | ||
| 99 | 100 | struct dentry *parent, |
| 100 | 101 | u32 *array, u32 elements); |
| 101 | 102 | |
| 103 | +struct dentry *debugfs_create_devm_seqfile(struct device *dev, const char *name, | |
| 104 | + struct dentry *parent, | |
| 105 | + int (*read_fn)(struct seq_file *s, | |
| 106 | + void *data)); | |
| 107 | + | |
| 102 | 108 | bool debugfs_initialized(void); |
| 103 | 109 | |
| 104 | 110 | #else |
| 105 | 111 | |
| 106 | 112 | #include <linux/err.h> |
| 107 | 113 | |
| 108 | −/* | |
| 114 | +/* | |
| 109 | 115 | * We do not return NULL from these functions if CONFIG_DEBUG_FS is not enabled |
| 110 | 116 | * so users have a chance to detect if there was a real error or not. We don't |
| 111 | 117 | * want to duplicate the design decision mistakes of procfs and devfs again. |
| @@ -250,6 +256,15 @@ static inline struct dentry *debugfs_create_u32_array(const char *name, umode_t · 138 unmodified lines | ||
| 250 | 256 | return ERR_PTR(-ENODEV); |
| 251 | 257 | } |
| 252 | 258 | |
| 259 | +static inline struct dentry *debugfs_create_devm_seqfile(struct device *dev, | |
| 260 | + const char *name, | |
| 261 | + struct dentry *parent, | |
| 262 | + int (*read_fn)(struct seq_file *s, | |
| 263 | + void *data)) | |
| 264 | +{ | |
| 265 | + return ERR_PTR(-ENODEV); | |
| 266 | +} | |
| 267 | + | |
| 253 | 268 | #endif |
| 254 | 269 | |
| 255 | 270 | #endif |
| @@ -1123,6 +1123,41 @@ do { \ · 1122 unmodified lines | ||
| 1123 | 1123 | }) |
| 1124 | 1124 | #endif |
| 1125 | 1125 | |
| 1126 | +#ifdef CONFIG_PRINTK | |
| 1127 | +#define dev_level_once(dev_level, dev, fmt, ...) \ | |
| 1128 | +do { \ | |
| 1129 | + static bool __print_once __read_mostly; \ | |
| 1130 | + \ | |
| 1131 | + if (!__print_once) { \ | |
| 1132 | + __print_once = true; \ | |
| 1133 | + dev_level(dev, fmt, ##__VA_ARGS__); \ | |
| 1134 | + } \ | |
| 1135 | +} while (0) | |
| 1136 | +#else | |
| 1137 | +#define dev_level_once(dev_level, dev, fmt, ...) \ | |
| 1138 | +do { \ | |
| 1139 | + if (0) \ | |
| 1140 | + dev_level(dev, fmt, ##__VA_ARGS__); \ | |
| 1141 | +} while (0) | |
| 1142 | +#endif | |
| 1143 | + | |
| 1144 | +#define dev_emerg_once(dev, fmt, ...) \ | |
| 1145 | + dev_level_once(dev_emerg, dev, fmt, ##__VA_ARGS__) | |
| 1146 | +#define dev_alert_once(dev, fmt, ...) \ | |
| 1147 | + dev_level_once(dev_alert, dev, fmt, ##__VA_ARGS__) | |
| 1148 | +#define dev_crit_once(dev, fmt, ...) \ | |
| 1149 | + dev_level_once(dev_crit, dev, fmt, ##__VA_ARGS__) | |
| 1150 | +#define dev_err_once(dev, fmt, ...) \ | |
| 1151 | + dev_level_once(dev_err, dev, fmt, ##__VA_ARGS__) | |
| 1152 | +#define dev_warn_once(dev, fmt, ...) \ | |
| 1153 | + dev_level_once(dev_warn, dev, fmt, ##__VA_ARGS__) | |
| 1154 | +#define dev_notice_once(dev, fmt, ...) \ | |
| 1155 | + dev_level_once(dev_notice, dev, fmt, ##__VA_ARGS__) | |
| 1156 | +#define dev_info_once(dev, fmt, ...) \ | |
| 1157 | + dev_level_once(dev_info, dev, fmt, ##__VA_ARGS__) | |
| 1158 | +#define dev_dbg_once(dev, fmt, ...) \ | |
| 1159 | + dev_level_once(dev_info, dev, fmt, ##__VA_ARGS__) | |
| 1160 | + | |
| 1126 | 1161 | #define dev_level_ratelimited(dev_level, dev, fmt, ...) \ |
| 1127 | 1162 | do { \ |
| 1128 | 1163 | static DEFINE_RATELIMIT_STATE(_rs, \ |
| @@ -179,6 +179,7 @@ struct kernfs_open_file { · 178 unmodified lines | ||
| 179 | 179 | struct mutex mutex; |
| 180 | 180 | int event; |
| 181 | 181 | struct list_head list; |
| 182 | + char *prealloc_buf; | |
| 182 | 183 | |
| 183 | 184 | size_t atomic_write_len; |
| 184 | 185 | bool mmapped; |
| @@ -214,6 +215,13 @@ struct kernfs_ops { · 29 unmodified lines | ||
| 214 | 215 | * larger ones are rejected with -E2BIG. |
| 215 | 216 | */ |
| 216 | 217 | size_t atomic_write_len; |
| 218 | + /* | |
| 219 | + * "prealloc" causes a buffer to be allocated at open for | |
| 220 | + * all read/write requests. As ->seq_show uses seq_read() | |
| 221 | + * which does its own allocation, it is incompatible with | |
| 222 | + * ->prealloc. Provide ->read and ->write with ->prealloc. | |
| 223 | + */ | |
| 224 | + bool prealloc; | |
| 217 | 225 | ssize_t (*write)(struct kernfs_open_file *of, char *buf, size_t bytes, |
| 218 | 226 | loff_t off); |
| 219 | 227 | |
| @@ -197,8 +197,10 @@ extern void platform_driver_unregister(struct platform_driver *); · 196 unmodified lines | ||
| 197 | 197 | /* non-hotpluggable platform devices may use this so that probe() and |
| 198 | 198 | * its support may live in __init sections, conserving runtime memory. |
| 199 | 199 | */ |
| 200 | −extern int platform_driver_probe(struct platform_driver *driver, | |
| 201 | − int (*probe)(struct platform_device *)); | |
| 200 | +#define platform_driver_probe(drv, probe) \ | |
| 201 | + __platform_driver_probe(drv, probe, THIS_MODULE) | |
| 202 | +extern int __platform_driver_probe(struct platform_driver *driver, | |
| 203 | + int (*probe)(struct platform_device *), struct module *module); | |
| 202 | 204 | |
| 203 | 205 | static inline void *platform_get_drvdata(const struct platform_device *pdev) |
| 204 | 206 | { |
| @@ -238,10 +240,12 @@ static void __exit __platform_driver##_exit(void) \ · 33 unmodified lines | ||
| 238 | 240 | } \ |
| 239 | 241 | module_exit(__platform_driver##_exit); |
| 240 | 242 | |
| 241 | −extern struct platform_device *platform_create_bundle( | |
| 243 | +#define platform_create_bundle(driver, probe, res, n_res, data, size) \ | |
| 244 | + __platform_create_bundle(driver, probe, res, n_res, data, size, THIS_MODULE) | |
| 245 | +extern struct platform_device *__platform_create_bundle( | |
| 242 | 246 | struct platform_driver *driver, int (*probe)(struct platform_device *), |
| 243 | 247 | struct resource *res, unsigned int n_res, |
| 244 | − const void *data, size_t size); | |
| 248 | + const void *data, size_t size, struct module *module); | |
| 245 | 249 | |
| 246 | 250 | /* early platform driver interface */ |
| 247 | 251 | struct early_platform_driver { |
| @@ -70,6 +70,8 @@ struct attribute_group { · 69 unmodified lines | ||
| 70 | 70 | * for examples.. |
| 71 | 71 | */ |
| 72 | 72 | |
| 73 | +#define SYSFS_PREALLOC 010000 | |
| 74 | + | |
| 73 | 75 | #define __ATTR(_name, _mode, _show, _store) { \ |
| 74 | 76 | .attr = {.name = __stringify(_name), \ |
| 75 | 77 | .mode = VERIFY_OCTAL_PERMISSIONS(_mode) }, \ |
| @@ -77,6 +79,13 @@ struct attribute_group { · 1 unmodified line | ||
| 77 | 79 | .store = _store, \ |
| 78 | 80 | } |
| 79 | 81 | |
| 82 | +#define __ATTR_PREALLOC(_name, _mode, _show, _store) { \ | |
| 83 | + .attr = {.name = __stringify(_name), \ | |
| 84 | + .mode = SYSFS_PREALLOC | VERIFY_OCTAL_PERMISSIONS(_mode) },\ | |
| 85 | + .show = _show, \ | |
| 86 | + .store = _store, \ | |
| 87 | +} | |
| 88 | + | |
| 80 | 89 | #define __ATTR_RO(_name) { \ |
| 81 | 90 | .attr = { .name = __stringify(_name), .mode = S_IRUGO }, \ |
| 82 | 91 | .show = _name##_show, \ |
| @@ -12,6 +12,8 @@ · 11 unmodified lines | ||
| 12 | 12 | #include <linux/bitmap.h> |
| 13 | 13 | #include <linux/bitops.h> |
| 14 | 14 | #include <linux/bug.h> |
| 15 | + | |
| 16 | +#include <asm/page.h> | |
| 15 | 17 | #include <asm/uaccess.h> |
| 16 | 18 | |
| 17 | 19 | /* |
| @@ -585,6 +587,33 @@ int bitmap_scnlistprintf(char *buf, unsigned int buflen, · 567 unmodified lines | ||
| 585 | 587 | } |
| 586 | 588 | EXPORT_SYMBOL(bitmap_scnlistprintf); |
| 587 | 589 | |
| 590 | +/** | |
| 591 | + * bitmap_print_to_pagebuf - convert bitmap to list or hex format ASCII string | |
| 592 | + * @list: indicates whether the bitmap must be list | |
| 593 | + * @buf: page aligned buffer into which string is placed | |
| 594 | + * @maskp: pointer to bitmap to convert | |
| 595 | + * @nmaskbits: size of bitmap, in bits | |
| 596 | + * | |
| 597 | + * Output format is a comma-separated list of decimal numbers and | |
| 598 | + * ranges if list is specified or hex digits grouped into comma-separated | |
| 599 | + * sets of 8 digits/set. Returns the number of characters written to buf. | |
| 600 | + */ | |
| 601 | +int bitmap_print_to_pagebuf(bool list, char *buf, const unsigned long *maskp, | |
| 602 | + int nmaskbits) | |
| 603 | +{ | |
| 604 | + ptrdiff_t len = PTR_ALIGN(buf + PAGE_SIZE - 1, PAGE_SIZE) - buf - 2; | |
| 605 | + int n = 0; | |
| 606 | + | |
| 607 | + if (len > 1) { | |
| 608 | + n = list ? bitmap_scnlistprintf(buf, len, maskp, nmaskbits) : | |
| 609 | + bitmap_scnprintf(buf, len, maskp, nmaskbits); | |
| 610 | + buf[n++] = '\n'; | |
| 611 | + buf[n] = '\0'; | |
| 612 | + } | |
| 613 | + return n; | |
| 614 | +} | |
| 615 | +EXPORT_SYMBOL(bitmap_print_to_pagebuf); | |
| 616 | + | |
| 588 | 617 | /** |
| 589 | 618 | * __bitmap_parselist - convert list format ASCII string to bitmap |
| 590 | 619 | * @buf: read nul-terminated user string from this buffer |
| @@ -976,7 +976,7 @@ const struct kobj_ns_type_operations *kobj_child_ns_ops(struct kobject *parent) · 975 unmodified lines | ||
| 976 | 976 | { |
| 977 | 977 | const struct kobj_ns_type_operations *ops = NULL; |
| 978 | 978 | |
| 979 | − if (parent && parent->ktype->child_ns_type) | |
| 979 | + if (parent && parent->ktype && parent->ktype->child_ns_type) | |
| 980 | 980 | ops = parent->ktype->child_ns_type(parent); |
| 981 | 981 | |
| 982 | 982 | return ops; |
| @@ -879,7 +879,6 @@ static struct platform_driver dsa_driver = { · 878 unmodified lines | ||
| 879 | 879 | .shutdown = dsa_shutdown, |
| 880 | 880 | .driver = { |
| 881 | 881 | .name = "dsa", |
| 882 | − .owner = THIS_MODULE, | |
| 883 | 882 | .of_match_table = dsa_of_match_table, |
| 884 | 883 | .pm = &dsa_pm_ops, |
| 885 | 884 | }, |
| @@ -183,7 +183,6 @@ static struct platform_driver rfkill_gpio_driver = { · 182 unmodified lines | ||
| 183 | 183 | .remove = rfkill_gpio_remove, |
| 184 | 184 | .driver = { |
| 185 | 185 | .name = "rfkill_gpio", |
| 186 | − .owner = THIS_MODULE, | |
| 187 | 186 | .acpi_match_table = ACPI_PTR(rfkill_acpi_match), |
| 188 | 187 | }, |
| 189 | 188 | }; |
| @@ -142,7 +142,6 @@ static struct platform_driver rfkill_regulator_driver = { · 141 unmodified lines | ||
| 142 | 142 | .remove = rfkill_regulator_remove, |
| 143 | 143 | .driver = { |
| 144 | 144 | .name = "rfkill-regulator", |
| 145 | − .owner = THIS_MODULE, | |
| 146 | 145 | }, |
| 147 | 146 | }; |
| 148 | 147 | |
| @@ -0,0 +1,106 @@ | ||
| 1 | +/// Remove .owner field if calls are used which set it automatically | |
| 2 | +/// | |
| 3 | +// Confidence: High | |
| 4 | +// Copyright: (C) 2014 Wolfram Sang. GPL v2. | |
| 5 | + | |
| 6 | +virtual patch | |
| 7 | +virtual context | |
| 8 | +virtual org | |
| 9 | +virtual report | |
| 10 | + | |
| 11 | +@match1@ | |
| 12 | +declarer name module_platform_driver; | |
| 13 | +declarer name module_platform_driver_probe; | |
| 14 | +identifier __driver; | |
| 15 | +@@ | |
| 16 | +( | |
| 17 | + module_platform_driver(__driver); | |
| 18 | +| | |
| 19 | + module_platform_driver_probe(__driver, ...); | |
| 20 | +) | |
| 21 | + | |
| 22 | +@fix1 depends on match1 && patch && !context && !org && !report@ | |
| 23 | +identifier match1.__driver; | |
| 24 | +@@ | |
| 25 | + static struct platform_driver __driver = { | |
| 26 | + .driver = { | |
| 27 | +- .owner = THIS_MODULE, | |
| 28 | + } | |
| 29 | + }; | |
| 30 | + | |
| 31 | +@match2@ | |
| 32 | +identifier __driver; | |
| 33 | +@@ | |
| 34 | +( | |
| 35 | + platform_driver_register(&__driver) | |
| 36 | +| | |
| 37 | + platform_driver_probe(&__driver, ...) | |
| 38 | +| | |
| 39 | + platform_create_bundle(&__driver, ...) | |
| 40 | +) | |
| 41 | + | |
| 42 | +@fix2 depends on match2 && patch && !context && !org && !report@ | |
| 43 | +identifier match2.__driver; | |
| 44 | +@@ | |
| 45 | + static struct platform_driver __driver = { | |
| 46 | + .driver = { | |
| 47 | +- .owner = THIS_MODULE, | |
| 48 | + } | |
| 49 | + }; | |
| 50 | + | |
| 51 | +// ---------------------------------------------------------------------------- | |
| 52 | + | |
| 53 | +@fix1_context depends on match1 && !patch && (context || org || report)@ | |
| 54 | +identifier match1.__driver; | |
| 55 | +position j0; | |
| 56 | +@@ | |
| 57 | + | |
| 58 | + static struct platform_driver __driver = { | |
| 59 | + .driver = { | |
| 60 | +* .owner@j0 = THIS_MODULE, | |
| 61 | + } | |
| 62 | + }; | |
| 63 | + | |
| 64 | +@fix2_context depends on match2 && !patch && (context || org || report)@ | |
| 65 | +identifier match2.__driver; | |
| 66 | +position j0; | |
| 67 | +@@ | |
| 68 | + | |
| 69 | + static struct platform_driver __driver = { | |
| 70 | + .driver = { | |
| 71 | +* .owner@j0 = THIS_MODULE, | |
| 72 | + } | |
| 73 | + }; | |
| 74 | + | |
| 75 | +// ---------------------------------------------------------------------------- | |
| 76 | + | |
| 77 | +@script:python fix1_org depends on org@ | |
| 78 | +j0 << fix1_context.j0; | |
| 79 | +@@ | |
| 80 | + | |
| 81 | +msg = "No need to set .owner here. The core will do it." | |
| 82 | +coccilib.org.print_todo(j0[0], msg) | |
| 83 | + | |
| 84 | +@script:python fix2_org depends on org@ | |
| 85 | +j0 << fix2_context.j0; | |
| 86 | +@@ | |
| 87 | + | |
| 88 | +msg = "No need to set .owner here. The core will do it." | |
| 89 | +coccilib.org.print_todo(j0[0], msg) | |
| 90 | + | |
| 91 | +// ---------------------------------------------------------------------------- | |
| 92 | + | |
| 93 | +@script:python fix1_report depends on report@ | |
| 94 | +j0 << fix1_context.j0; | |
| 95 | +@@ | |
| 96 | + | |
| 97 | +msg = "No need to set .owner here. The core will do it." | |
| 98 | +coccilib.report.print_report(j0[0], msg) | |
| 99 | + | |
| 100 | +@script:python fix2_report depends on report@ | |
| 101 | +j0 << fix2_context.j0; | |
| 102 | +@@ | |
| 103 | + | |
| 104 | +msg = "No need to set .owner here. The core will do it." | |
| 105 | +coccilib.report.print_report(j0[0], msg) | |
| 106 | + | |
| @@ -241,7 +241,6 @@ static struct platform_driver pxa2xx_ac97_driver = { · 240 unmodified lines | ||
| 241 | 241 | .remove = pxa2xx_ac97_remove, |
| 242 | 242 | .driver = { |
| 243 | 243 | .name = "pxa2xx-ac97", |
| 244 | − .owner = THIS_MODULE, | |
| 245 | 244 | #ifdef CONFIG_PM_SLEEP |
| 246 | 245 | .pm = &pxa2xx_ac97_pm_ops, |
| 247 | 246 | #endif |
| @@ -588,7 +588,6 @@ static struct platform_driver atmel_abdac_driver = { · 587 unmodified lines | ||
| 588 | 588 | .remove = atmel_abdac_remove, |
| 589 | 589 | .driver = { |
| 590 | 590 | .name = "atmel_abdac", |
| 591 | − .owner = THIS_MODULE, | |
| 592 | 591 | .pm = ATMEL_ABDAC_PM_OPS, |
| 593 | 592 | }, |
| 594 | 593 | }; |
| @@ -1203,7 +1203,6 @@ static struct platform_driver atmel_ac97c_driver = { · 1202 unmodified lines | ||
| 1203 | 1203 | .remove = atmel_ac97c_remove, |
| 1204 | 1204 | .driver = { |
| 1205 | 1205 | .name = "atmel_ac97c", |
| 1206 | − .owner = THIS_MODULE, | |
| 1207 | 1206 | .pm = ATMEL_AC97C_PM_OPS, |
| 1208 | 1207 | }, |
| 1209 | 1208 | }; |
| @@ -1220,7 +1220,6 @@ static struct platform_driver loopback_driver = { · 1219 unmodified lines | ||
| 1220 | 1220 | .remove = loopback_remove, |
| 1221 | 1221 | .driver = { |
| 1222 | 1222 | .name = SND_LOOPBACK_DRIVER, |
| 1223 | − .owner = THIS_MODULE, | |
| 1224 | 1223 | .pm = LOOPBACK_PM_OPS, |
| 1225 | 1224 | }, |
| 1226 | 1225 | }; |
| @@ -1162,7 +1162,6 @@ static struct platform_driver snd_dummy_driver = { · 1161 unmodified lines | ||
| 1162 | 1162 | .remove = snd_dummy_remove, |
| 1163 | 1163 | .driver = { |
| 1164 | 1164 | .name = SND_DUMMY_DRIVER, |
| 1165 | − .owner = THIS_MODULE, | |
| 1166 | 1165 | .pm = SND_DUMMY_PM_OPS, |
| 1167 | 1166 | }, |
| 1168 | 1167 | }; |
| @@ -1335,7 +1335,6 @@ static struct platform_driver snd_ml403_ac97cr_driver = { · 1334 unmodified lines | ||
| 1335 | 1335 | .remove = snd_ml403_ac97cr_remove, |
| 1336 | 1336 | .driver = { |
| 1337 | 1337 | .name = SND_ML403_AC97CR_DRIVER, |
| 1338 | − .owner = THIS_MODULE, | |
| 1339 | 1338 | }, |
| 1340 | 1339 | }; |
| 1341 | 1340 | |
| @@ -140,7 +140,6 @@ static struct platform_driver snd_mpu401_driver = { · 139 unmodified lines | ||
| 140 | 140 | .remove = snd_mpu401_remove, |
| 141 | 141 | .driver = { |
| 142 | 142 | .name = SND_MPU401_DRIVER, |
| 143 | − .owner = THIS_MODULE, | |
| 144 | 143 | }, |
| 145 | 144 | }; |
| 146 | 145 | |
| @@ -759,7 +759,6 @@ static struct platform_driver snd_mtpav_driver = { · 758 unmodified lines | ||
| 759 | 759 | .remove = snd_mtpav_remove, |
| 760 | 760 | .driver = { |
| 761 | 761 | .name = SND_MTPAV_DRIVER, |
| 762 | − .owner = THIS_MODULE, | |
| 763 | 762 | }, |
| 764 | 763 | }; |
| 765 | 764 | |
| @@ -1030,7 +1030,6 @@ static struct platform_driver snd_mts64_driver = { · 1029 unmodified lines | ||
| 1030 | 1030 | .remove = snd_mts64_remove, |
| 1031 | 1031 | .driver = { |
| 1032 | 1032 | .name = PLATFORM_DRIVER, |
| 1033 | − .owner = THIS_MODULE, | |
| 1034 | 1033 | } |
| 1035 | 1034 | }; |
| 1036 | 1035 | |
| @@ -221,7 +221,6 @@ static void pcsp_shutdown(struct platform_device *dev) · 220 unmodified lines | ||
| 221 | 221 | static struct platform_driver pcsp_platform_driver = { |
| 222 | 222 | .driver = { |
| 223 | 223 | .name = "pcspkr", |
| 224 | − .owner = THIS_MODULE, | |
| 225 | 224 | .pm = PCSP_PM_OPS, |
| 226 | 225 | }, |
| 227 | 226 | .probe = pcsp_probe, |
| @@ -829,7 +829,6 @@ static struct platform_driver snd_portman_driver = { · 828 unmodified lines | ||
| 829 | 829 | .remove = snd_portman_remove, |
| 830 | 830 | .driver = { |
| 831 | 831 | .name = PLATFORM_DRIVER, |
| 832 | − .owner = THIS_MODULE, | |
| 833 | 832 | } |
| 834 | 833 | }; |
| 835 | 834 | |
| @@ -994,7 +994,6 @@ static struct platform_driver snd_serial_driver = { · 993 unmodified lines | ||
| 994 | 994 | .remove = snd_serial_remove, |
| 995 | 995 | .driver = { |
| 996 | 996 | .name = SND_SERIAL_DRIVER, |
| 997 | − .owner = THIS_MODULE, | |
| 998 | 997 | }, |
| 999 | 998 | }; |
| 1000 | 999 | |
| @@ -143,7 +143,6 @@ static struct platform_driver snd_virmidi_driver = { · 142 unmodified lines | ||
| 143 | 143 | .remove = snd_virmidi_remove, |
| 144 | 144 | .driver = { |
| 145 | 145 | .name = SND_VIRMIDI_DRIVER, |
| 146 | − .owner = THIS_MODULE, | |
| 147 | 146 | }, |
| 148 | 147 | }; |
| 149 | 148 | |
| @@ -929,7 +929,6 @@ static struct platform_driver hal2_driver = { · 928 unmodified lines | ||
| 929 | 929 | .remove = hal2_remove, |
| 930 | 930 | .driver = { |
| 931 | 931 | .name = "sgihal2", |
| 932 | − .owner = THIS_MODULE, | |
| 933 | 932 | } |
| 934 | 933 | }; |
| 935 | 934 | |
| @@ -963,7 +963,6 @@ static struct platform_driver sgio2audio_driver = { · 962 unmodified lines | ||
| 963 | 963 | .remove = snd_sgio2audio_remove, |
| 964 | 964 | .driver = { |
| 965 | 965 | .name = "sgio2audio", |
| 966 | − .owner = THIS_MODULE, | |
| 967 | 966 | } |
| 968 | 967 | }; |
| 969 | 968 | |
| @@ -729,7 +729,6 @@ static struct platform_driver amiga_audio_driver = { · 728 unmodified lines | ||
| 729 | 729 | .remove = __exit_p(amiga_audio_remove), |
| 730 | 730 | .driver = { |
| 731 | 731 | .name = "amiga-audio", |
| 732 | − .owner = THIS_MODULE, | |
| 733 | 732 | }, |
| 734 | 733 | }; |
| 735 | 734 | |
| @@ -168,7 +168,6 @@ static struct platform_driver snd_pmac_driver = { · 167 unmodified lines | ||
| 168 | 168 | .remove = snd_pmac_remove, |
| 169 | 169 | .driver = { |
| 170 | 170 | .name = SND_PMAC_DRIVER, |
| 171 | − .owner = THIS_MODULE, | |
| 172 | 171 | .pm = SND_PMAC_PM_OPS, |
| 173 | 172 | }, |
| 174 | 173 | }; |
| @@ -652,7 +652,6 @@ static struct platform_driver snd_aica_driver = { · 651 unmodified lines | ||
| 652 | 652 | .remove = snd_aica_remove, |
| 653 | 653 | .driver = { |
| 654 | 654 | .name = SND_AICA_DRIVER, |
| 655 | − .owner = THIS_MODULE, | |
| 656 | 655 | }, |
| 657 | 656 | }; |
| 658 | 657 | |
| @@ -436,7 +436,6 @@ static struct platform_driver sh_dac_driver = { · 435 unmodified lines | ||
| 436 | 436 | .remove = snd_sh_dac_remove, |
| 437 | 437 | .driver = { |
| 438 | 438 | .name = "dac_audio", |
| 439 | − .owner = THIS_MODULE, | |
| 440 | 439 | }, |
| 441 | 440 | }; |
| 442 | 441 | |
| @@ -263,7 +263,6 @@ MODULE_DEVICE_TABLE(of, axi_i2s_of_match); · 262 unmodified lines | ||
| 263 | 263 | static struct platform_driver axi_i2s_driver = { |
| 264 | 264 | .driver = { |
| 265 | 265 | .name = "axi-i2s", |
| 266 | − .owner = THIS_MODULE, | |
| 267 | 266 | .of_match_table = axi_i2s_of_match, |
| 268 | 267 | }, |
| 269 | 268 | .probe = axi_i2s_probe, |
| @@ -258,7 +258,6 @@ MODULE_DEVICE_TABLE(of, axi_spdif_of_match); · 257 unmodified lines | ||
| 258 | 258 | static struct platform_driver axi_spdif_driver = { |
| 259 | 259 | .driver = { |
| 260 | 260 | .name = "axi-spdif", |
| 261 | − .owner = THIS_MODULE, | |
| 262 | 261 | .of_match_table = axi_spdif_of_match, |
| 263 | 262 | }, |
| 264 | 263 | .probe = axi_spdif_probe, |
| @@ -181,7 +181,6 @@ static const struct of_device_id atmel_asoc_wm8904_dt_ids[] = { · 180 unmodified lines | ||
| 181 | 181 | static struct platform_driver atmel_asoc_wm8904_driver = { |
| 182 | 182 | .driver = { |
| 183 | 183 | .name = "atmel-wm8904-audio", |
| 184 | − .owner = THIS_MODULE, | |
| 185 | 184 | .of_match_table = of_match_ptr(atmel_asoc_wm8904_dt_ids), |
| 186 | 185 | }, |
| 187 | 186 | .probe = atmel_asoc_wm8904_probe, |
| @@ -309,7 +309,6 @@ MODULE_DEVICE_TABLE(of, at91sam9g20ek_wm8731_dt_ids); · 308 unmodified lines | ||
| 309 | 309 | static struct platform_driver at91sam9g20ek_audio_driver = { |
| 310 | 310 | .driver = { |
| 311 | 311 | .name = "at91sam9g20ek-audio", |
| 312 | − .owner = THIS_MODULE, | |
| 313 | 312 | .of_match_table = of_match_ptr(at91sam9g20ek_wm8731_dt_ids), |
| 314 | 313 | }, |
| 315 | 314 | .probe = at91sam9g20ek_audio_probe, |
| @@ -192,7 +192,6 @@ MODULE_DEVICE_TABLE(of, sam9x5_wm8731_of_match); · 191 unmodified lines | ||
| 192 | 192 | static struct platform_driver sam9x5_wm8731_driver = { |
| 193 | 193 | .driver = { |
| 194 | 194 | .name = DRV_NAME, |
| 195 | − .owner = THIS_MODULE, | |
| 196 | 195 | .of_match_table = of_match_ptr(sam9x5_wm8731_of_match), |
| 197 | 196 | }, |
| 198 | 197 | .probe = sam9x5_wm8731_driver_probe, |
| @@ -334,7 +334,6 @@ static const struct dev_pm_ops au1xpscac97_pmops = { · 333 unmodified lines | ||
| 334 | 334 | static struct platform_driver au1xac97c_driver = { |
| 335 | 335 | .driver = { |
| 336 | 336 | .name = "alchemy-ac97c", |
| 337 | − .owner = THIS_MODULE, | |
| 338 | 337 | .pm = AU1XPSCAC97_PMOPS, |
| 339 | 338 | }, |
| 340 | 339 | .probe = au1xac97c_drvprobe, |
| @@ -51,7 +51,6 @@ static int db1000_audio_remove(struct platform_device *pdev) · 50 unmodified lines | ||
| 51 | 51 | static struct platform_driver db1000_audio_driver = { |
| 52 | 52 | .driver = { |
| 53 | 53 | .name = "db1000-audio", |
| 54 | − .owner = THIS_MODULE, | |
| 55 | 54 | .pm = &snd_soc_pm_ops, |
| 56 | 55 | }, |
| 57 | 56 | .probe = db1000_audio_probe, |
| @@ -200,7 +200,6 @@ static int db1200_audio_remove(struct platform_device *pdev) · 199 unmodified lines | ||
| 200 | 200 | static struct platform_driver db1200_audio_driver = { |
| 201 | 201 | .driver = { |
| 202 | 202 | .name = "db1200-ac97", |
| 203 | − .owner = THIS_MODULE, | |
| 204 | 203 | .pm = &snd_soc_pm_ops, |
| 205 | 204 | }, |
| 206 | 205 | .id_table = db1200_pids, |
| @@ -363,7 +363,6 @@ static int au1xpsc_pcm_drvremove(struct platform_device *pdev) · 362 unmodified lines | ||
| 363 | 363 | static struct platform_driver au1xpsc_pcm_driver = { |
| 364 | 364 | .driver = { |
| 365 | 365 | .name = "au1xpsc-pcm", |
| 366 | − .owner = THIS_MODULE, | |
| 367 | 366 | }, |
| 368 | 367 | .probe = au1xpsc_pcm_drvprobe, |
| 369 | 368 | .remove = au1xpsc_pcm_drvremove, |
| @@ -331,7 +331,6 @@ static int alchemy_pcm_drvremove(struct platform_device *pdev) · 330 unmodified lines | ||
| 331 | 331 | static struct platform_driver alchemy_pcmdma_driver = { |
| 332 | 332 | .driver = { |
| 333 | 333 | .name = "alchemy-pcm-dma", |
| 334 | − .owner = THIS_MODULE, | |
| 335 | 334 | }, |
| 336 | 335 | .probe = alchemy_pcm_drvprobe, |
| 337 | 336 | .remove = alchemy_pcm_drvremove, |
| @@ -310,7 +310,6 @@ static const struct dev_pm_ops au1xi2sc_pmops = { · 309 unmodified lines | ||
| 310 | 310 | static struct platform_driver au1xi2s_driver = { |
| 311 | 311 | .driver = { |
| 312 | 312 | .name = "alchemy-i2sc", |
| 313 | − .owner = THIS_MODULE, | |
| 314 | 313 | .pm = AU1XI2SC_PMOPS, |
| 315 | 314 | }, |
| 316 | 315 | .probe = au1xi2s_drvprobe, |
| @@ -490,7 +490,6 @@ static struct dev_pm_ops au1xpscac97_pmops = { · 489 unmodified lines | ||
| 490 | 490 | static struct platform_driver au1xpsc_ac97_driver = { |
| 491 | 491 | .driver = { |
| 492 | 492 | .name = "au1xpsc_ac97", |
| 493 | − .owner = THIS_MODULE, | |
| 494 | 493 | .pm = AU1XPSCAC97_PMOPS, |
| 495 | 494 | }, |
| 496 | 495 | .probe = au1xpsc_ac97_drvprobe, |
| @@ -419,7 +419,6 @@ static struct dev_pm_ops au1xpsci2s_pmops = { · 418 unmodified lines | ||
| 419 | 419 | static struct platform_driver au1xpsc_i2s_driver = { |
| 420 | 420 | .driver = { |
| 421 | 421 | .name = "au1xpsc_i2s", |
| 422 | − .owner = THIS_MODULE, | |
| 423 | 422 | .pm = AU1XPSCI2S_PMOPS, |
| 424 | 423 | }, |
| 425 | 424 | .probe = au1xpsc_i2s_drvprobe, |
| @@ -866,7 +866,6 @@ static struct platform_driver bcm2835_i2s_driver = { · 865 unmodified lines | ||
| 866 | 866 | .probe = bcm2835_i2s_probe, |
| 867 | 867 | .driver = { |
| 868 | 868 | .name = "bcm2835-i2s", |
| 869 | − .owner = THIS_MODULE, | |
| 870 | 869 | .of_match_table = bcm2835_i2s_of_match, |
| 871 | 870 | }, |
| 872 | 871 | }; |
| @@ -462,7 +462,6 @@ static int bf5xx_soc_platform_remove(struct platform_device *pdev) · 461 unmodified lines | ||
| 462 | 462 | static struct platform_driver bf5xx_pcm_driver = { |
| 463 | 463 | .driver = { |
| 464 | 464 | .name = "bfin-ac97-pcm-audio", |
| 465 | − .owner = THIS_MODULE, | |
| 466 | 465 | }, |
| 467 | 466 | |
| 468 | 467 | .probe = bf5xx_soc_platform_probe, |
| @@ -375,7 +375,6 @@ static int asoc_bfin_ac97_remove(struct platform_device *pdev) · 374 unmodified lines | ||
| 375 | 375 | static struct platform_driver asoc_bfin_ac97_driver = { |
| 376 | 376 | .driver = { |
| 377 | 377 | .name = "bfin-ac97", |
| 378 | − .owner = THIS_MODULE, | |
| 379 | 378 | }, |
| 380 | 379 | |
| 381 | 380 | .probe = asoc_bfin_ac97_probe, |
| @@ -104,7 +104,6 @@ static int bf5xx_ad1836_driver_remove(struct platform_device *pdev) · 103 unmodified lines | ||
| 104 | 104 | static struct platform_driver bf5xx_ad1836_driver = { |
| 105 | 105 | .driver = { |
| 106 | 106 | .name = "bfin-snd-ad1836", |
| 107 | − .owner = THIS_MODULE, | |
| 108 | 107 | .pm = &snd_soc_pm_ops, |
| 109 | 108 | }, |
| 110 | 109 | .probe = bf5xx_ad1836_driver_probe, |
| @@ -354,7 +354,6 @@ static int bfin_i2s_soc_platform_remove(struct platform_device *pdev) · 353 unmodified lines | ||
| 354 | 354 | static struct platform_driver bfin_i2s_pcm_driver = { |
| 355 | 355 | .driver = { |
| 356 | 356 | .name = "bfin-i2s-pcm-audio", |
| 357 | − .owner = THIS_MODULE, | |
| 358 | 357 | }, |
| 359 | 358 | |
| 360 | 359 | .probe = bfin_i2s_soc_platform_probe, |
| @@ -379,7 +379,6 @@ static struct platform_driver bfin_i2s_driver = { · 378 unmodified lines | ||
| 379 | 379 | .remove = bf5xx_i2s_remove, |
| 380 | 380 | .driver = { |
| 381 | 381 | .name = "bfin-i2s", |
| 382 | − .owner = THIS_MODULE, | |
| 383 | 382 | }, |
| 384 | 383 | }; |
| 385 | 384 | |
| @@ -229,7 +229,6 @@ static struct platform_driver bfin_i2s_driver = { · 228 unmodified lines | ||
| 229 | 229 | .remove = bfin_i2s_remove, |
| 230 | 230 | .driver = { |
| 231 | 231 | .name = "bfin-i2s", |
| 232 | − .owner = THIS_MODULE, | |
| 233 | 232 | }, |
| 234 | 233 | }; |
| 235 | 234 | |
| @@ -169,7 +169,6 @@ static int bfin_eval_adau1373_remove(struct platform_device *pdev) · 168 unmodified lines | ||
| 169 | 169 | static struct platform_driver bfin_eval_adau1373_driver = { |
| 170 | 170 | .driver = { |
| 171 | 171 | .name = "bfin-eval-adau1373", |
| 172 | − .owner = THIS_MODULE, | |
| 173 | 172 | .pm = &snd_soc_pm_ops, |
| 174 | 173 | }, |
| 175 | 174 | .probe = bfin_eval_adau1373_probe, |
| @@ -109,7 +109,6 @@ static int bfin_eval_adau1701_remove(struct platform_device *pdev) · 108 unmodified lines | ||
| 109 | 109 | static struct platform_driver bfin_eval_adau1701_driver = { |
| 110 | 110 | .driver = { |
| 111 | 111 | .name = "bfin-eval-adau1701", |
| 112 | − .owner = THIS_MODULE, | |
| 113 | 112 | .pm = &snd_soc_pm_ops, |
| 114 | 113 | }, |
| 115 | 114 | .probe = bfin_eval_adau1701_probe, |
| @@ -129,7 +129,6 @@ static int bfin_eval_adau1x61_probe(struct platform_device *pdev) · 128 unmodified lines | ||
| 129 | 129 | static struct platform_driver bfin_eval_adau1x61_driver = { |
| 130 | 130 | .driver = { |
| 131 | 131 | .name = "bfin-eval-adau1x61", |
| 132 | − .owner = THIS_MODULE, | |
| 133 | 132 | .pm = &snd_soc_pm_ops, |
| 134 | 133 | }, |
| 135 | 134 | .probe = bfin_eval_adau1x61_probe, |
| @@ -117,7 +117,6 @@ static int bfin_eval_adau1x81_probe(struct platform_device *pdev) · 116 unmodified lines | ||
| 117 | 117 | static struct platform_driver bfin_eval_adau1x81_driver = { |
| 118 | 118 | .driver = { |
| 119 | 119 | .name = "bfin-eval-adau1x81", |
| 120 | − .owner = THIS_MODULE, | |
| 121 | 120 | .pm = &snd_soc_pm_ops, |
| 122 | 121 | }, |
| 123 | 122 | .probe = bfin_eval_adau1x81_probe, |
| @@ -141,7 +141,6 @@ MODULE_DEVICE_TABLE(platform, bfin_eval_adav80x_ids); · 140 unmodified lines | ||
| 141 | 141 | static struct platform_driver bfin_eval_adav80x_driver = { |
| 142 | 142 | .driver = { |
| 143 | 143 | .name = "bfin-eval-adav80x", |
| 144 | − .owner = THIS_MODULE, | |
| 145 | 144 | .pm = &snd_soc_pm_ops, |
| 146 | 145 | }, |
| 147 | 146 | .probe = bfin_eval_adav80x_probe, |
| @@ -113,7 +113,6 @@ static int edb93xx_remove(struct platform_device *pdev) · 112 unmodified lines | ||
| 113 | 113 | static struct platform_driver edb93xx_driver = { |
| 114 | 114 | .driver = { |
| 115 | 115 | .name = "edb93xx-audio", |
| 116 | − .owner = THIS_MODULE, | |
| 117 | 116 | }, |
| 118 | 117 | .probe = edb93xx_probe, |
| 119 | 118 | .remove = edb93xx_remove, |
| @@ -439,7 +439,6 @@ static struct platform_driver ep93xx_ac97_driver = { · 438 unmodified lines | ||
| 439 | 439 | .remove = ep93xx_ac97_remove, |
| 440 | 440 | .driver = { |
| 441 | 441 | .name = "ep93xx-ac97", |
| 442 | − .owner = THIS_MODULE, | |
| 443 | 442 | }, |
| 444 | 443 | }; |
| 445 | 444 | |
| @@ -451,7 +451,6 @@ static struct platform_driver ep93xx_i2s_driver = { · 450 unmodified lines | ||
| 451 | 451 | .remove = ep93xx_i2s_remove, |
| 452 | 452 | .driver = { |
| 453 | 453 | .name = "ep93xx-i2s", |
| 454 | − .owner = THIS_MODULE, | |
| 455 | 454 | }, |
| 456 | 455 | }; |
| 457 | 456 | |
| @@ -74,7 +74,6 @@ static int simone_remove(struct platform_device *pdev) · 73 unmodified lines | ||
| 74 | 74 | static struct platform_driver simone_driver = { |
| 75 | 75 | .driver = { |
| 76 | 76 | .name = "simone-audio", |
| 77 | − .owner = THIS_MODULE, | |
| 78 | 77 | }, |
| 79 | 78 | .probe = simone_probe, |
| 80 | 79 | .remove = simone_remove, |
| @@ -123,7 +123,6 @@ static int snappercl15_remove(struct platform_device *pdev) · 122 unmodified lines | ||
| 123 | 123 | static struct platform_driver snappercl15_driver = { |
| 124 | 124 | .driver = { |
| 125 | 125 | .name = "snappercl15-audio", |
| 126 | − .owner = THIS_MODULE, | |
| 127 | 126 | }, |
| 128 | 127 | .probe = snappercl15_probe, |
| 129 | 128 | .remove = snappercl15_remove, |
| @@ -1423,7 +1423,6 @@ static int pm860x_codec_remove(struct platform_device *pdev) · 1422 unmodified lines | ||
| 1423 | 1423 | static struct platform_driver pm860x_codec_driver = { |
| 1424 | 1424 | .driver = { |
| 1425 | 1425 | .name = "88pm860x-codec", |
| 1426 | − .owner = THIS_MODULE, | |
| 1427 | 1426 | }, |
| 1428 | 1427 | .probe = pm860x_codec_probe, |
| 1429 | 1428 | .remove = pm860x_codec_remove, |
| @@ -2609,7 +2609,6 @@ static int ab8500_codec_driver_remove(struct platform_device *pdev) · 2608 unmodified lines | ||
| 2609 | 2609 | static struct platform_driver ab8500_codec_platform_driver = { |
| 2610 | 2610 | .driver = { |
| 2611 | 2611 | .name = "ab8500-codec", |
| 2612 | − .owner = THIS_MODULE, | |
| 2613 | 2612 | }, |
| 2614 | 2613 | .probe = ab8500_codec_driver_probe, |
| 2615 | 2614 | .remove = ab8500_codec_driver_remove, |
| @@ -142,7 +142,6 @@ static int ac97_remove(struct platform_device *pdev) · 141 unmodified lines | ||
| 142 | 142 | static struct platform_driver ac97_codec_driver = { |
| 143 | 143 | .driver = { |
| 144 | 144 | .name = "ac97-codec", |
| 145 | − .owner = THIS_MODULE, | |
| 146 | 145 | }, |
| 147 | 146 | |
| 148 | 147 | .probe = ac97_probe, |
| @@ -334,7 +334,6 @@ static int ad1980_remove(struct platform_device *pdev) · 333 unmodified lines | ||
| 334 | 334 | static struct platform_driver ad1980_codec_driver = { |
| 335 | 335 | .driver = { |
| 336 | 336 | .name = "ad1980", |
| 337 | − .owner = THIS_MODULE, | |
| 338 | 337 | }, |
| 339 | 338 | |
| 340 | 339 | .probe = ad1980_probe, |
| @@ -76,7 +76,6 @@ static int ad73311_remove(struct platform_device *pdev) · 75 unmodified lines | ||
| 76 | 76 | static struct platform_driver ad73311_codec_driver = { |
| 77 | 77 | .driver = { |
| 78 | 78 | .name = "ad73311", |
| 79 | − .owner = THIS_MODULE, | |
| 80 | 79 | }, |
| 81 | 80 | |
| 82 | 81 | .probe = ad73311_probe, |
| @@ -78,7 +78,6 @@ static int ads117x_remove(struct platform_device *pdev) · 77 unmodified lines | ||
| 78 | 78 | static struct platform_driver ads117x_codec_driver = { |
| 79 | 79 | .driver = { |
| 80 | 80 | .name = "ads117x-codec", |
| 81 | − .owner = THIS_MODULE, | |
| 82 | 81 | }, |
| 83 | 82 | |
| 84 | 83 | .probe = ads117x_probe, |
| @@ -93,7 +93,6 @@ MODULE_DEVICE_TABLE(of, ak4554_of_match); · 92 unmodified lines | ||
| 93 | 93 | static struct platform_driver ak4554_driver = { |
| 94 | 94 | .driver = { |
| 95 | 95 | .name = "ak4554-adc-dac", |
| 96 | − .owner = THIS_MODULE, | |
| 97 | 96 | .of_match_table = ak4554_of_match, |
| 98 | 97 | }, |
| 99 | 98 | .probe = ak4554_soc_probe, |
| @@ -205,7 +205,6 @@ static struct platform_driver ak5386_driver = { · 204 unmodified lines | ||
| 205 | 205 | .remove = ak5386_remove, |
| 206 | 206 | .driver = { |
| 207 | 207 | .name = "ak5386", |
| 208 | − .owner = THIS_MODULE, | |
| 209 | 208 | .of_match_table = of_match_ptr(ak5386_dt_ids), |
| 210 | 209 | }, |
| 211 | 210 | }; |
| @@ -77,7 +77,6 @@ MODULE_DEVICE_TABLE(platform, bt_sco_driver_ids); · 76 unmodified lines | ||
| 77 | 77 | static struct platform_driver bt_sco_driver = { |
| 78 | 78 | .driver = { |
| 79 | 79 | .name = "bt-sco", |
| 80 | − .owner = THIS_MODULE, | |
| 81 | 80 | }, |
| 82 | 81 | .probe = bt_sco_probe, |
| 83 | 82 | .remove = bt_sco_remove, |
| @@ -151,7 +151,6 @@ static int cq93vc_platform_remove(struct platform_device *pdev) · 150 unmodified lines | ||
| 151 | 151 | static struct platform_driver cq93vc_codec_driver = { |
| 152 | 152 | .driver = { |
| 153 | 153 | .name = "cq93vc-codec", |
| 154 | − .owner = THIS_MODULE, | |
| 155 | 154 | }, |
| 156 | 155 | |
| 157 | 156 | .probe = cq93vc_platform_probe, |
| @@ -429,7 +429,6 @@ static int __exit cx20442_platform_remove(struct platform_device *pdev) · 428 unmodified lines | ||
| 429 | 429 | static struct platform_driver cx20442_platform_driver = { |
| 430 | 430 | .driver = { |
| 431 | 431 | .name = "cx20442-codec", |
| 432 | − .owner = THIS_MODULE, | |
| 433 | 432 | }, |
| 434 | 433 | .probe = cx20442_platform_probe, |
| 435 | 434 | .remove = __exit_p(cx20442_platform_remove), |
| @@ -74,7 +74,6 @@ MODULE_ALIAS("platform:dmic-codec"); · 73 unmodified lines | ||
| 74 | 74 | static struct platform_driver dmic_driver = { |
| 75 | 75 | .driver = { |
| 76 | 76 | .name = "dmic-codec", |
| 77 | − .owner = THIS_MODULE, | |
| 78 | 77 | }, |
| 79 | 78 | .probe = dmic_dev_probe, |
| 80 | 79 | .remove = dmic_dev_remove, |
| @@ -94,7 +94,6 @@ static int hdmi_codec_remove(struct platform_device *pdev) · 93 unmodified lines | ||
| 94 | 94 | static struct platform_driver hdmi_codec_driver = { |
| 95 | 95 | .driver = { |
| 96 | 96 | .name = DRV_NAME, |
| 97 | − .owner = THIS_MODULE, | |
| 98 | 97 | .of_match_table = of_match_ptr(hdmi_audio_codec_ids), |
| 99 | 98 | }, |
| 100 | 99 | |
| @@ -364,7 +364,6 @@ static struct platform_driver jz4740_codec_driver = { · 363 unmodified lines | ||
| 364 | 364 | .remove = jz4740_codec_remove, |
| 365 | 365 | .driver = { |
| 366 | 366 | .name = "jz4740-codec", |
| 367 | − .owner = THIS_MODULE, | |
| 368 | 367 | }, |
| 369 | 368 | }; |
| 370 | 369 | |
| @@ -802,7 +802,6 @@ static int mc13783_codec_remove(struct platform_device *pdev) · 801 unmodified lines | ||
| 802 | 802 | static struct platform_driver mc13783_codec_driver = { |
| 803 | 803 | .driver = { |
| 804 | 804 | .name = "mc13783-codec", |
| 805 | − .owner = THIS_MODULE, | |
| 806 | 805 | }, |
| 807 | 806 | .remove = mc13783_codec_remove, |
| 808 | 807 | }; |
| @@ -162,7 +162,6 @@ static struct platform_driver pcm3008_codec_driver = { · 161 unmodified lines | ||
| 162 | 162 | .remove = pcm3008_codec_remove, |
| 163 | 163 | .driver = { |
| 164 | 164 | .name = "pcm3008-codec", |
| 165 | − .owner = THIS_MODULE, | |
| 166 | 165 | }, |
| 167 | 166 | }; |
| 168 | 167 | |
| @@ -261,7 +261,6 @@ MODULE_ALIAS("platform:si476x-codec"); · 260 unmodified lines | ||
| 261 | 261 | static struct platform_driver si476x_platform_driver = { |
| 262 | 262 | .driver = { |
| 263 | 263 | .name = "si476x-codec", |
| 264 | − .owner = THIS_MODULE, | |
| 265 | 264 | }, |
| 266 | 265 | .probe = si476x_platform_probe, |
| 267 | 266 | .remove = si476x_platform_remove, |
| @@ -567,7 +567,6 @@ static const struct dev_pm_ops sirf_audio_codec_pm_ops = { · 566 unmodified lines | ||
| 567 | 567 | static struct platform_driver sirf_audio_codec_driver = { |
| 568 | 568 | .driver = { |
| 569 | 569 | .name = "sirf-audio-codec", |
| 570 | − .owner = THIS_MODULE, | |
| 571 | 570 | .of_match_table = sirf_audio_codec_of_match, |
| 572 | 571 | .pm = &sirf_audio_codec_pm_ops, |
| 573 | 572 | }, |
| @@ -907,7 +907,6 @@ static int sn95031_device_remove(struct platform_device *pdev) · 906 unmodified lines | ||
| 907 | 907 | static struct platform_driver sn95031_codec_driver = { |
| 908 | 908 | .driver = { |
| 909 | 909 | .name = "sn95031", |
| 910 | − .owner = THIS_MODULE, | |
| 911 | 910 | }, |
| 912 | 911 | .probe = sn95031_device_probe, |
| 913 | 912 | .remove = sn95031_device_remove, |
| @@ -80,7 +80,6 @@ static struct platform_driver spdif_dir_driver = { · 79 unmodified lines | ||
| 80 | 80 | .remove = spdif_dir_remove, |
| 81 | 81 | .driver = { |
| 82 | 82 | .name = "spdif-dir", |
| 83 | − .owner = THIS_MODULE, | |
| 84 | 83 | .of_match_table = of_match_ptr(spdif_dir_dt_ids), |
| 85 | 84 | }, |
| 86 | 85 | }; |
| @@ -80,7 +80,6 @@ static struct platform_driver spdif_dit_driver = { · 79 unmodified lines | ||
| 80 | 80 | .remove = spdif_dit_remove, |
| 81 | 81 | .driver = { |
| 82 | 82 | .name = DRV_NAME, |
| 83 | − .owner = THIS_MODULE, | |
| 84 | 83 | .of_match_table = of_match_ptr(spdif_dit_dt_ids), |
| 85 | 84 | }, |
| 86 | 85 | }; |
| @@ -394,7 +394,6 @@ static int stac9766_remove(struct platform_device *pdev) · 393 unmodified lines | ||
| 394 | 394 | static struct platform_driver stac9766_codec_driver = { |
| 395 | 395 | .driver = { |
| 396 | 396 | .name = "stac9766-codec", |
| 397 | − .owner = THIS_MODULE, | |
| 398 | 397 | }, |
| 399 | 398 | |
| 400 | 399 | .probe = stac9766_probe, |
| @@ -2218,7 +2218,6 @@ static struct platform_driver twl4030_codec_driver = { · 2217 unmodified lines | ||
| 2218 | 2218 | .remove = twl4030_codec_remove, |
| 2219 | 2219 | .driver = { |
| 2220 | 2220 | .name = "twl4030-codec", |
| 2221 | − .owner = THIS_MODULE, | |
| 2222 | 2221 | }, |
| 2223 | 2222 | }; |
| 2224 | 2223 | |
| @@ -1177,7 +1177,6 @@ static int twl6040_codec_remove(struct platform_device *pdev) · 1176 unmodified lines | ||
| 1177 | 1177 | static struct platform_driver twl6040_codec_driver = { |
| 1178 | 1178 | .driver = { |
| 1179 | 1179 | .name = "twl6040-codec", |
| 1180 | − .owner = THIS_MODULE, | |
| 1181 | 1180 | }, |
| 1182 | 1181 | .probe = twl6040_codec_probe, |
| 1183 | 1182 | .remove = twl6040_codec_remove, |
| @@ -605,7 +605,6 @@ static int uda134x_codec_remove(struct platform_device *pdev) · 604 unmodified lines | ||
| 605 | 605 | static struct platform_driver uda134x_codec_driver = { |
| 606 | 606 | .driver = { |
| 607 | 607 | .name = "uda134x-codec", |
| 608 | − .owner = THIS_MODULE, | |
| 609 | 608 | }, |
| 610 | 609 | .probe = uda134x_codec_probe, |
| 611 | 610 | .remove = uda134x_codec_remove, |
| @@ -511,7 +511,6 @@ MODULE_ALIAS("platform:wl1273-codec"); · 510 unmodified lines | ||
| 511 | 511 | static struct platform_driver wl1273_platform_driver = { |
| 512 | 512 | .driver = { |
| 513 | 513 | .name = "wl1273-codec", |
| 514 | − .owner = THIS_MODULE, | |
| 515 | 514 | }, |
| 516 | 515 | .probe = wl1273_platform_probe, |
| 517 | 516 | .remove = wl1273_platform_remove, |
| @@ -1960,7 +1960,6 @@ static int wm5102_remove(struct platform_device *pdev) · 1959 unmodified lines | ||
| 1960 | 1960 | static struct platform_driver wm5102_codec_driver = { |
| 1961 | 1961 | .driver = { |
| 1962 | 1962 | .name = "wm5102-codec", |
| 1963 | − .owner = THIS_MODULE, | |
| 1964 | 1963 | }, |
| 1965 | 1964 | .probe = wm5102_probe, |
| 1966 | 1965 | .remove = wm5102_remove, |
| @@ -1738,7 +1738,6 @@ static int wm5110_remove(struct platform_device *pdev) · 1737 unmodified lines | ||
| 1738 | 1738 | static struct platform_driver wm5110_codec_driver = { |
| 1739 | 1739 | .driver = { |
| 1740 | 1740 | .name = "wm5110-codec", |
| 1741 | − .owner = THIS_MODULE, | |
| 1742 | 1741 | }, |
| 1743 | 1742 | .probe = wm5110_probe, |
| 1744 | 1743 | .remove = wm5110_remove, |
| @@ -1622,7 +1622,6 @@ static int wm8350_remove(struct platform_device *pdev) · 1621 unmodified lines | ||
| 1622 | 1622 | static struct platform_driver wm8350_codec_driver = { |
| 1623 | 1623 | .driver = { |
| 1624 | 1624 | .name = "wm8350-codec", |
| 1625 | − .owner = THIS_MODULE, | |
| 1626 | 1625 | }, |
| 1627 | 1626 | .probe = wm8350_probe, |
| 1628 | 1627 | .remove = wm8350_remove, |
| @@ -1365,7 +1365,6 @@ static int wm8400_remove(struct platform_device *pdev) · 1364 unmodified lines | ||
| 1365 | 1365 | static struct platform_driver wm8400_codec_driver = { |
| 1366 | 1366 | .driver = { |
| 1367 | 1367 | .name = "wm8400-codec", |
| 1368 | − .owner = THIS_MODULE, | |
| 1369 | 1368 | }, |
| 1370 | 1369 | .probe = wm8400_probe, |
| 1371 | 1370 | .remove = wm8400_remove, |
| @@ -75,7 +75,6 @@ static int wm8727_remove(struct platform_device *pdev) · 74 unmodified lines | ||
| 75 | 75 | static struct platform_driver wm8727_codec_driver = { |
| 76 | 76 | .driver = { |
| 77 | 77 | .name = "wm8727", |
| 78 | − .owner = THIS_MODULE, | |
| 79 | 78 | }, |
| 80 | 79 | |
| 81 | 80 | .probe = wm8727_probe, |
| @@ -72,7 +72,6 @@ static int wm8782_remove(struct platform_device *pdev) · 71 unmodified lines | ||
| 72 | 72 | static struct platform_driver wm8782_codec_driver = { |
| 73 | 73 | .driver = { |
| 74 | 74 | .name = "wm8782", |
| 75 | − .owner = THIS_MODULE, | |
| 76 | 75 | }, |
| 77 | 76 | .probe = wm8782_probe, |
| 78 | 77 | .remove = wm8782_remove, |
| @@ -4508,7 +4508,6 @@ static const struct dev_pm_ops wm8994_pm_ops = { · 4507 unmodified lines | ||
| 4508 | 4508 | static struct platform_driver wm8994_codec_driver = { |
| 4509 | 4509 | .driver = { |
| 4510 | 4510 | .name = "wm8994-codec", |
| 4511 | − .owner = THIS_MODULE, | |
| 4512 | 4511 | .pm = &wm8994_pm_ops, |
| 4513 | 4512 | }, |
| 4514 | 4513 | .probe = wm8994_probe, |
| @@ -1165,7 +1165,6 @@ static int wm8997_remove(struct platform_device *pdev) · 1164 unmodified lines | ||
| 1165 | 1165 | static struct platform_driver wm8997_codec_driver = { |
| 1166 | 1166 | .driver = { |
| 1167 | 1167 | .name = "wm8997-codec", |
| 1168 | − .owner = THIS_MODULE, | |
| 1169 | 1168 | }, |
| 1170 | 1169 | .probe = wm8997_probe, |
| 1171 | 1170 | .remove = wm8997_remove, |
| @@ -407,7 +407,6 @@ static int wm9705_remove(struct platform_device *pdev) · 406 unmodified lines | ||
| 407 | 407 | static struct platform_driver wm9705_codec_driver = { |
| 408 | 408 | .driver = { |
| 409 | 409 | .name = "wm9705-codec", |
| 410 | − .owner = THIS_MODULE, | |
| 411 | 410 | }, |
| 412 | 411 | |
| 413 | 412 | .probe = wm9705_probe, |
| @@ -741,7 +741,6 @@ static int wm9712_remove(struct platform_device *pdev) · 740 unmodified lines | ||
| 741 | 741 | static struct platform_driver wm9712_codec_driver = { |
| 742 | 742 | .driver = { |
| 743 | 743 | .name = "wm9712-codec", |
| 744 | − .owner = THIS_MODULE, | |
| 745 | 744 | }, |
| 746 | 745 | |
| 747 | 746 | .probe = wm9712_probe, |
| @@ -1301,7 +1301,6 @@ static int wm9713_remove(struct platform_device *pdev) · 1300 unmodified lines | ||
| 1301 | 1301 | static struct platform_driver wm9713_codec_driver = { |
| 1302 | 1302 | .driver = { |
| 1303 | 1303 | .name = "wm9713-codec", |
| 1304 | − .owner = THIS_MODULE, | |
| 1305 | 1304 | }, |
| 1306 | 1305 | |
| 1307 | 1306 | .probe = wm9713_probe, |
| @@ -445,7 +445,6 @@ static struct platform_driver davinci_evm_driver = { · 444 unmodified lines | ||
| 445 | 445 | .remove = davinci_evm_remove, |
| 446 | 446 | .driver = { |
| 447 | 447 | .name = "davinci_evm", |
| 448 | − .owner = THIS_MODULE, | |
| 449 | 448 | .pm = &snd_soc_pm_ops, |
| 450 | 449 | .of_match_table = of_match_ptr(davinci_evm_dt_ids), |
| 451 | 450 | }, |
| @@ -770,7 +770,6 @@ static struct platform_driver davinci_mcbsp_driver = { · 769 unmodified lines | ||
| 770 | 770 | .remove = davinci_i2s_remove, |
| 771 | 771 | .driver = { |
| 772 | 772 | .name = "davinci-mcbsp", |
| 773 | − .owner = THIS_MODULE, | |
| 774 | 773 | }, |
| 775 | 774 | }; |
| 776 | 775 | |
| @@ -1602,7 +1602,6 @@ static struct platform_driver davinci_mcasp_driver = { · 1601 unmodified lines | ||
| 1602 | 1602 | .remove = davinci_mcasp_remove, |
| 1603 | 1603 | .driver = { |
| 1604 | 1604 | .name = "davinci-mcasp", |
| 1605 | − .owner = THIS_MODULE, | |
| 1606 | 1605 | .of_match_table = mcasp_dt_ids, |
| 1607 | 1606 | }, |
| 1608 | 1607 | }; |
| @@ -267,7 +267,6 @@ static struct platform_driver davinci_vcif_driver = { · 266 unmodified lines | ||
| 267 | 267 | .remove = davinci_vcif_remove, |
| 268 | 268 | .driver = { |
| 269 | 269 | .name = "davinci-vcif", |
| 270 | − .owner = THIS_MODULE, | |
| 271 | 270 | }, |
| 272 | 271 | }; |
| 273 | 272 | |
| @@ -441,7 +441,6 @@ static struct platform_driver dw_i2s_driver = { · 440 unmodified lines | ||
| 441 | 441 | .remove = dw_i2s_remove, |
| 442 | 442 | .driver = { |
| 443 | 443 | .name = "designware-i2s", |
| 444 | − .owner = THIS_MODULE, | |
| 445 | 444 | }, |
| 446 | 445 | }; |
| 447 | 446 | |
| @@ -238,7 +238,6 @@ MODULE_DEVICE_TABLE(of, imx_tlv320_dt_ids); · 237 unmodified lines | ||
| 238 | 238 | static struct platform_driver eukrea_tlv320_driver = { |
| 239 | 239 | .driver = { |
| 240 | 240 | .name = "eukrea_tlv320", |
| 241 | − .owner = THIS_MODULE, | |
| 242 | 241 | .of_match_table = imx_tlv320_dt_ids, |
| 243 | 242 | }, |
| 244 | 243 | .probe = eukrea_tlv320_probe, |
| @@ -964,7 +964,6 @@ MODULE_DEVICE_TABLE(of, fsl_soc_dma_ids); · 963 unmodified lines | ||
| 964 | 964 | static struct platform_driver fsl_soc_dma_driver = { |
| 965 | 965 | .driver = { |
| 966 | 966 | .name = "fsl-pcm-audio", |
| 967 | − .owner = THIS_MODULE, | |
| 968 | 967 | .of_match_table = fsl_soc_dma_ids, |
| 969 | 968 | }, |
| 970 | 969 | .probe = fsl_soc_dma_probe, |
| @@ -857,7 +857,6 @@ static struct platform_driver fsl_esai_driver = { · 856 unmodified lines | ||
| 857 | 857 | .probe = fsl_esai_probe, |
| 858 | 858 | .driver = { |
| 859 | 859 | .name = "fsl-esai-dai", |
| 860 | − .owner = THIS_MODULE, | |
| 861 | 860 | .of_match_table = fsl_esai_dt_ids, |
| 862 | 861 | }, |
| 863 | 862 | }; |
| @@ -678,7 +678,6 @@ static struct platform_driver fsl_sai_driver = { · 677 unmodified lines | ||
| 678 | 678 | .probe = fsl_sai_probe, |
| 679 | 679 | .driver = { |
| 680 | 680 | .name = "fsl-sai", |
| 681 | − .owner = THIS_MODULE, | |
| 682 | 681 | .of_match_table = fsl_sai_ids, |
| 683 | 682 | }, |
| 684 | 683 | }; |
| @@ -1283,7 +1283,6 @@ MODULE_DEVICE_TABLE(of, fsl_spdif_dt_ids); · 1282 unmodified lines | ||
| 1283 | 1283 | static struct platform_driver fsl_spdif_driver = { |
| 1284 | 1284 | .driver = { |
| 1285 | 1285 | .name = "fsl-spdif-dai", |
| 1286 | − .owner = THIS_MODULE, | |
| 1287 | 1286 | .of_match_table = fsl_spdif_dt_ids, |
| 1288 | 1287 | }, |
| 1289 | 1288 | .probe = fsl_spdif_probe, |
| @@ -1480,7 +1480,6 @@ static int fsl_ssi_remove(struct platform_device *pdev) · 1479 unmodified lines | ||
| 1480 | 1480 | static struct platform_driver fsl_ssi_driver = { |
| 1481 | 1481 | .driver = { |
| 1482 | 1482 | .name = "fsl-ssi-dai", |
| 1483 | − .owner = THIS_MODULE, | |
| 1484 | 1483 | .of_match_table = fsl_ssi_ids, |
| 1485 | 1484 | }, |
| 1486 | 1485 | .probe = fsl_ssi_probe, |
| @@ -356,7 +356,6 @@ static struct platform_driver imx_audmux_driver = { · 355 unmodified lines | ||
| 356 | 356 | .id_table = imx_audmux_ids, |
| 357 | 357 | .driver = { |
| 358 | 358 | .name = DRIVER_NAME, |
| 359 | − .owner = THIS_MODULE, | |
| 360 | 359 | .of_match_table = imx_audmux_dt_ids, |
| 361 | 360 | } |
| 362 | 361 | }; |
| @@ -159,7 +159,6 @@ static int imx_mc13783_remove(struct platform_device *pdev) · 158 unmodified lines | ||
| 159 | 159 | static struct platform_driver imx_mc13783_audio_driver = { |
| 160 | 160 | .driver = { |
| 161 | 161 | .name = "imx_mc13783", |
| 162 | − .owner = THIS_MODULE, | |
| 163 | 162 | }, |
| 164 | 163 | .probe = imx_mc13783_probe, |
| 165 | 164 | .remove = imx_mc13783_remove |
| @@ -200,7 +200,6 @@ MODULE_DEVICE_TABLE(of, imx_sgtl5000_dt_ids); · 199 unmodified lines | ||
| 200 | 200 | static struct platform_driver imx_sgtl5000_driver = { |
| 201 | 201 | .driver = { |
| 202 | 202 | .name = "imx-sgtl5000", |
| 203 | − .owner = THIS_MODULE, | |
| 204 | 203 | .pm = &snd_soc_pm_ops, |
| 205 | 204 | .of_match_table = imx_sgtl5000_dt_ids, |
| 206 | 205 | }, |
| @@ -88,7 +88,6 @@ MODULE_DEVICE_TABLE(of, imx_spdif_dt_ids); · 87 unmodified lines | ||
| 88 | 88 | static struct platform_driver imx_spdif_driver = { |
| 89 | 89 | .driver = { |
| 90 | 90 | .name = "imx-spdif", |
| 91 | − .owner = THIS_MODULE, | |
| 92 | 91 | .of_match_table = imx_spdif_dt_ids, |
| 93 | 92 | }, |
| 94 | 93 | .probe = imx_spdif_audio_probe, |
| @@ -647,7 +647,6 @@ static struct platform_driver imx_ssi_driver = { · 646 unmodified lines | ||
| 647 | 647 | |
| 648 | 648 | .driver = { |
| 649 | 649 | .name = "imx-ssi", |
| 650 | − .owner = THIS_MODULE, | |
| 651 | 650 | }, |
| 652 | 651 | }; |
| 653 | 652 | |
| @@ -307,7 +307,6 @@ MODULE_DEVICE_TABLE(of, imx_wm8962_dt_ids); · 306 unmodified lines | ||
| 307 | 307 | static struct platform_driver imx_wm8962_driver = { |
| 308 | 308 | .driver = { |
| 309 | 309 | .name = "imx-wm8962", |
| 310 | − .owner = THIS_MODULE, | |
| 311 | 310 | .pm = &snd_soc_pm_ops, |
| 312 | 311 | .of_match_table = imx_wm8962_dt_ids, |
| 313 | 312 | }, |
| @@ -338,7 +338,6 @@ static struct platform_driver psc_ac97_driver = { · 337 unmodified lines | ||
| 338 | 338 | .remove = psc_ac97_of_remove, |
| 339 | 339 | .driver = { |
| 340 | 340 | .name = "mpc5200-psc-ac97", |
| 341 | − .owner = THIS_MODULE, | |
| 342 | 341 | .of_match_table = psc_ac97_match, |
| 343 | 342 | }, |
| 344 | 343 | }; |
| @@ -229,7 +229,6 @@ static struct platform_driver psc_i2s_driver = { · 228 unmodified lines | ||
| 229 | 229 | .remove = psc_i2s_of_remove, |
| 230 | 230 | .driver = { |
| 231 | 231 | .name = "mpc5200-psc-i2s", |
| 232 | − .owner = THIS_MODULE, | |
| 233 | 232 | .of_match_table = psc_i2s_match, |
| 234 | 233 | }, |
| 235 | 234 | }; |
| @@ -389,7 +389,6 @@ static struct platform_driver mpc8610_hpcd_driver = { · 388 unmodified lines | ||
| 389 | 389 | * in lowercase letters. |
| 390 | 390 | */ |
| 391 | 391 | .name = "snd-soc-mpc8610hpcd", |
| 392 | − .owner = THIS_MODULE, | |
| 393 | 392 | }, |
| 394 | 393 | }; |
| 395 | 394 | |
| @@ -229,7 +229,6 @@ static int mx27vis_aic32x4_remove(struct platform_device *pdev) · 228 unmodified lines | ||
| 229 | 229 | static struct platform_driver mx27vis_aic32x4_audio_driver = { |
| 230 | 230 | .driver = { |
| 231 | 231 | .name = "mx27vis", |
| 232 | − .owner = THIS_MODULE, | |
| 233 | 232 | }, |
| 234 | 233 | .probe = mx27vis_aic32x4_probe, |
| 235 | 234 | .remove = mx27vis_aic32x4_remove, |
| @@ -398,7 +398,6 @@ static struct platform_driver p1022_ds_driver = { · 397 unmodified lines | ||
| 398 | 398 | * in lowercase letters. |
| 399 | 399 | */ |
| 400 | 400 | .name = "snd-soc-p1022ds", |
| 401 | − .owner = THIS_MODULE, | |
| 402 | 401 | }, |
| 403 | 402 | }; |
| 404 | 403 | |
| @@ -348,7 +348,6 @@ static struct platform_driver p1022_rdk_driver = { · 347 unmodified lines | ||
| 348 | 348 | * in lowercase letters. |
| 349 | 349 | */ |
| 350 | 350 | .name = "snd-soc-p1022rdk", |
| 351 | − .owner = THIS_MODULE, | |
| 352 | 351 | }, |
| 353 | 352 | }; |
| 354 | 353 | |
| @@ -124,7 +124,6 @@ static struct platform_driver pcm030_fabric_driver = { · 123 unmodified lines | ||
| 124 | 124 | .remove = pcm030_fabric_remove, |
| 125 | 125 | .driver = { |
| 126 | 126 | .name = DRV_NAME, |
| 127 | − .owner = THIS_MODULE, | |
| 128 | 127 | .of_match_table = pcm030_audio_match, |
| 129 | 128 | }, |
| 130 | 129 | }; |
| @@ -584,7 +584,6 @@ MODULE_DEVICE_TABLE(of, asoc_simple_of_match); · 583 unmodified lines | ||
| 584 | 584 | static struct platform_driver asoc_simple_card = { |
| 585 | 585 | .driver = { |
| 586 | 586 | .name = "asoc-simple-card", |
| 587 | − .owner = THIS_MODULE, | |
| 588 | 587 | .of_match_table = asoc_simple_of_match, |
| 589 | 588 | }, |
| 590 | 589 | .probe = asoc_simple_card_probe, |
| @@ -270,7 +270,6 @@ static struct platform_driver broadwell_audio = { · 269 unmodified lines | ||
| 270 | 270 | .remove = broadwell_audio_remove, |
| 271 | 271 | .driver = { |
| 272 | 272 | .name = "broadwell-audio", |
| 273 | − .owner = THIS_MODULE, | |
| 274 | 273 | }, |
| 275 | 274 | }; |
| 276 | 275 | |
| @@ -181,7 +181,6 @@ static struct platform_driver byt_max98090_driver = { · 180 unmodified lines | ||
| 181 | 181 | .remove = byt_max98090_remove, |
| 182 | 182 | .driver = { |
| 183 | 183 | .name = "byt-max98090", |
| 184 | − .owner = THIS_MODULE, | |
| 185 | 184 | .pm = &snd_soc_pm_ops, |
| 186 | 185 | }, |
| 187 | 186 | }; |
| @@ -224,7 +224,6 @@ static struct platform_driver byt_rt5640_audio = { · 223 unmodified lines | ||
| 224 | 224 | .probe = byt_rt5640_probe, |
| 225 | 225 | .driver = { |
| 226 | 226 | .name = "byt-rt5640", |
| 227 | − .owner = THIS_MODULE, | |
| 228 | 227 | .pm = &snd_soc_pm_ops, |
| 229 | 228 | }, |
| 230 | 229 | }; |
| @@ -199,7 +199,6 @@ static struct platform_driver haswell_audio = { · 198 unmodified lines | ||
| 199 | 199 | .probe = haswell_audio_probe, |
| 200 | 200 | .driver = { |
| 201 | 201 | .name = "haswell-audio", |
| 202 | − .owner = THIS_MODULE, | |
| 203 | 202 | }, |
| 204 | 203 | }; |
| 205 | 204 | |
| @@ -420,7 +420,6 @@ static int snd_mfld_mc_probe(struct platform_device *pdev) · 419 unmodified lines | ||
| 420 | 420 | |
| 421 | 421 | static struct platform_driver snd_mfld_mc_driver = { |
| 422 | 422 | .driver = { |
| 423 | − .owner = THIS_MODULE, | |
| 424 | 423 | .name = "msic_audio", |
| 425 | 424 | }, |
| 426 | 425 | .probe = snd_mfld_mc_probe, |
| @@ -275,7 +275,6 @@ static struct platform_driver sst_acpi_driver = { · 274 unmodified lines | ||
| 275 | 275 | .remove = sst_acpi_remove, |
| 276 | 276 | .driver = { |
| 277 | 277 | .name = "sst-acpi", |
| 278 | − .owner = THIS_MODULE, | |
| 279 | 278 | .acpi_match_table = ACPI_PTR(sst_acpi_match), |
| 280 | 279 | }, |
| 281 | 280 | }; |
| @@ -497,7 +497,6 @@ static int sst_byt_pcm_dev_remove(struct platform_device *pdev) · 496 unmodified lines | ||
| 497 | 497 | static struct platform_driver sst_byt_pcm_driver = { |
| 498 | 498 | .driver = { |
| 499 | 499 | .name = "baytrail-pcm-audio", |
| 500 | − .owner = THIS_MODULE, | |
| 501 | 500 | .pm = SST_BYT_PM_OPS, |
| 502 | 501 | }, |
| 503 | 502 | |
| @@ -1170,9 +1170,7 @@ static const struct dev_pm_ops hsw_pcm_pm = { · 1169 unmodified lines | ||
| 1170 | 1170 | static struct platform_driver hsw_pcm_driver = { |
| 1171 | 1171 | .driver = { |
| 1172 | 1172 | .name = "haswell-pcm-audio", |
| 1173 | − .owner = THIS_MODULE, | |
| 1174 | 1173 | .pm = &hsw_pcm_pm, |
| 1175 | − | |
| 1176 | 1174 | }, |
| 1177 | 1175 | |
| 1178 | 1176 | .probe = hsw_pcm_dev_probe, |
| @@ -737,7 +737,6 @@ static int sst_platform_remove(struct platform_device *pdev) · 736 unmodified lines | ||
| 737 | 737 | static struct platform_driver sst_platform_driver = { |
| 738 | 738 | .driver = { |
| 739 | 739 | .name = "sst-mfld-platform", |
| 740 | − .owner = THIS_MODULE, | |
| 741 | 740 | }, |
| 742 | 741 | .probe = sst_platform_probe, |
| 743 | 742 | .remove = sst_platform_remove, |
| @@ -455,7 +455,6 @@ static struct platform_driver jz4740_i2s_driver = { · 454 unmodified lines | ||
| 455 | 455 | .probe = jz4740_i2s_dev_probe, |
| 456 | 456 | .driver = { |
| 457 | 457 | .name = "jz4740-i2s", |
| 458 | − .owner = THIS_MODULE, | |
| 459 | 458 | }, |
| 460 | 459 | }; |
| 461 | 460 | |
| @@ -100,7 +100,6 @@ static int qi_lb60_probe(struct platform_device *pdev) · 99 unmodified lines | ||
| 100 | 100 | static struct platform_driver qi_lb60_driver = { |
| 101 | 101 | .driver = { |
| 102 | 102 | .name = "qi-lb60-audio", |
| 103 | − .owner = THIS_MODULE, | |
| 104 | 103 | }, |
| 105 | 104 | .probe = qi_lb60_probe, |
| 106 | 105 | }; |
| @@ -134,7 +134,6 @@ static const struct of_device_id a370db_dt_ids[] = { · 133 unmodified lines | ||
| 134 | 134 | static struct platform_driver a370db_driver = { |
| 135 | 135 | .driver = { |
| 136 | 136 | .name = "a370db-audio", |
| 137 | − .owner = THIS_MODULE, | |
| 138 | 137 | .of_match_table = of_match_ptr(a370db_dt_ids), |
| 139 | 138 | }, |
| 140 | 139 | .probe = a370db_probe, |
| @@ -657,7 +657,6 @@ static struct platform_driver kirkwood_i2s_driver = { · 656 unmodified lines | ||
| 657 | 657 | .remove = kirkwood_i2s_dev_remove, |
| 658 | 658 | .driver = { |
| 659 | 659 | .name = DRV_NAME, |
| 660 | − .owner = THIS_MODULE, | |
| 661 | 660 | .of_match_table = of_match_ptr(mvebu_audio_of_match), |
| 662 | 661 | }, |
| 663 | 662 | }; |
| @@ -815,7 +815,6 @@ static struct platform_driver mxs_saif_driver = { · 814 unmodified lines | ||
| 815 | 815 | |
| 816 | 816 | .driver = { |
| 817 | 817 | .name = "mxs-saif", |
| 818 | − .owner = THIS_MODULE, | |
| 819 | 818 | .of_match_table = mxs_saif_dt_ids, |
| 820 | 819 | }, |
| 821 | 820 | }; |
| @@ -187,7 +187,6 @@ MODULE_DEVICE_TABLE(of, mxs_sgtl5000_dt_ids); · 186 unmodified lines | ||
| 187 | 187 | static struct platform_driver mxs_sgtl5000_audio_driver = { |
| 188 | 188 | .driver = { |
| 189 | 189 | .name = "mxs-sgtl5000", |
| 190 | − .owner = THIS_MODULE, | |
| 191 | 190 | .of_match_table = mxs_sgtl5000_dt_ids, |
| 192 | 191 | }, |
| 193 | 192 | .probe = mxs_sgtl5000_probe, |
| @@ -385,7 +385,6 @@ static int nuc900_ac97_drvremove(struct platform_device *pdev) · 384 unmodified lines | ||
| 385 | 385 | static struct platform_driver nuc900_ac97_driver = { |
| 386 | 386 | .driver = { |
| 387 | 387 | .name = "nuc900-ac97", |
| 388 | − .owner = THIS_MODULE, | |
| 389 | 388 | }, |
| 390 | 389 | .probe = nuc900_ac97_drvprobe, |
| 391 | 390 | .remove = nuc900_ac97_drvremove, |
| @@ -347,7 +347,6 @@ static int nuc900_soc_platform_remove(struct platform_device *pdev) · 346 unmodified lines | ||
| 347 | 347 | static struct platform_driver nuc900_pcm_driver = { |
| 348 | 348 | .driver = { |
| 349 | 349 | .name = "nuc900-pcm-audio", |
| 350 | − .owner = THIS_MODULE, | |
| 351 | 350 | }, |
| 352 | 351 | |
| 353 | 352 | .probe = nuc900_soc_platform_probe, |
| @@ -599,7 +599,6 @@ static int ams_delta_remove(struct platform_device *pdev) · 598 unmodified lines | ||
| 599 | 599 | static struct platform_driver ams_delta_driver = { |
| 600 | 600 | .driver = { |
| 601 | 601 | .name = DRV_NAME, |
| 602 | − .owner = THIS_MODULE, | |
| 603 | 602 | }, |
| 604 | 603 | .probe = ams_delta_probe, |
| 605 | 604 | .remove = ams_delta_remove, |
| @@ -354,7 +354,6 @@ MODULE_DEVICE_TABLE(of, omap_abe_of_match); · 353 unmodified lines | ||
| 354 | 354 | static struct platform_driver omap_abe_driver = { |
| 355 | 355 | .driver = { |
| 356 | 356 | .name = "omap-abe-twl6040", |
| 357 | − .owner = THIS_MODULE, | |
| 358 | 357 | .pm = &snd_soc_pm_ops, |
| 359 | 358 | .of_match_table = omap_abe_of_match, |
| 360 | 359 | }, |
| @@ -509,7 +509,6 @@ MODULE_DEVICE_TABLE(of, omap_dmic_of_match); · 508 unmodified lines | ||
| 509 | 509 | static struct platform_driver asoc_dmic_driver = { |
| 510 | 510 | .driver = { |
| 511 | 511 | .name = "omap-dmic", |
| 512 | − .owner = THIS_MODULE, | |
| 513 | 512 | .of_match_table = omap_dmic_of_match, |
| 514 | 513 | }, |
| 515 | 514 | .probe = asoc_dmic_probe, |
| @@ -831,7 +831,6 @@ static int asoc_mcbsp_remove(struct platform_device *pdev) · 830 unmodified lines | ||
| 831 | 831 | static struct platform_driver asoc_mcbsp_driver = { |
| 832 | 832 | .driver = { |
| 833 | 833 | .name = "omap-mcbsp", |
| 834 | − .owner = THIS_MODULE, | |
| 835 | 834 | .of_match_table = omap_mcbsp_of_match, |
| 836 | 835 | }, |
| 837 | 836 | |
| @@ -512,7 +512,6 @@ MODULE_DEVICE_TABLE(of, omap_mcpdm_of_match); · 511 unmodified lines | ||
| 512 | 512 | static struct platform_driver asoc_mcpdm_driver = { |
| 513 | 513 | .driver = { |
| 514 | 514 | .name = "omap-mcpdm", |
| 515 | − .owner = THIS_MODULE, | |
| 516 | 515 | .of_match_table = omap_mcpdm_of_match, |
| 517 | 516 | }, |
| 518 | 517 | |
| @@ -375,7 +375,6 @@ MODULE_DEVICE_TABLE(of, omap_twl4030_of_match); · 374 unmodified lines | ||
| 375 | 375 | static struct platform_driver omap_twl4030_driver = { |
| 376 | 376 | .driver = { |
| 377 | 377 | .name = "omap-twl4030", |
| 378 | − .owner = THIS_MODULE, | |
| 379 | 378 | .pm = &snd_soc_pm_ops, |
| 380 | 379 | .of_match_table = omap_twl4030_of_match, |
| 381 | 380 | }, |
| @@ -519,7 +519,6 @@ MODULE_DEVICE_TABLE(of, rx51_audio_of_match); · 518 unmodified lines | ||
| 519 | 519 | static struct platform_driver rx51_soc_driver = { |
| 520 | 520 | .driver = { |
| 521 | 521 | .name = "rx51-audio", |
| 522 | − .owner = THIS_MODULE, | |
| 523 | 522 | .of_match_table = of_match_ptr(rx51_audio_of_match), |
| 524 | 523 | }, |
| 525 | 524 | .probe = rx51_soc_probe, |
| @@ -155,7 +155,6 @@ static int brownstone_remove(struct platform_device *pdev) · 154 unmodified lines | ||
| 155 | 155 | static struct platform_driver mmp_driver = { |
| 156 | 156 | .driver = { |
| 157 | 157 | .name = "brownstone-audio", |
| 158 | − .owner = THIS_MODULE, | |
| 159 | 158 | .pm = &snd_soc_pm_ops, |
| 160 | 159 | }, |
| 161 | 160 | .probe = brownstone_probe, |
| @@ -327,7 +327,6 @@ static int corgi_remove(struct platform_device *pdev) · 326 unmodified lines | ||
| 327 | 327 | static struct platform_driver corgi_driver = { |
| 328 | 328 | .driver = { |
| 329 | 329 | .name = "corgi-audio", |
| 330 | − .owner = THIS_MODULE, | |
| 331 | 330 | .pm = &snd_soc_pm_ops, |
| 332 | 331 | }, |
| 333 | 332 | .probe = corgi_probe, |
| @@ -177,7 +177,6 @@ static int e740_remove(struct platform_device *pdev) · 176 unmodified lines | ||
| 177 | 177 | static struct platform_driver e740_driver = { |
| 178 | 178 | .driver = { |
| 179 | 179 | .name = "e740-audio", |
| 180 | − .owner = THIS_MODULE, | |
| 181 | 180 | .pm = &snd_soc_pm_ops, |
| 182 | 181 | }, |
| 183 | 182 | .probe = e740_probe, |
| @@ -159,7 +159,6 @@ static int e750_remove(struct platform_device *pdev) · 158 unmodified lines | ||
| 159 | 159 | static struct platform_driver e750_driver = { |
| 160 | 160 | .driver = { |
| 161 | 161 | .name = "e750-audio", |
| 162 | − .owner = THIS_MODULE, | |
| 163 | 162 | .pm = &snd_soc_pm_ops, |
| 164 | 163 | }, |
| 165 | 164 | .probe = e750_probe, |
| @@ -140,7 +140,6 @@ static int e800_remove(struct platform_device *pdev) · 139 unmodified lines | ||
| 140 | 140 | static struct platform_driver e800_driver = { |
| 141 | 141 | .driver = { |
| 142 | 142 | .name = "e800-audio", |
| 143 | − .owner = THIS_MODULE, | |
| 144 | 143 | .pm = &snd_soc_pm_ops, |
| 145 | 144 | }, |
| 146 | 145 | .probe = e800_probe, |
| @@ -226,7 +226,6 @@ static int hx4700_audio_remove(struct platform_device *pdev) · 225 unmodified lines | ||
| 226 | 226 | static struct platform_driver hx4700_audio_driver = { |
| 227 | 227 | .driver = { |
| 228 | 228 | .name = "hx4700-audio", |
| 229 | − .owner = THIS_MODULE, | |
| 230 | 229 | .pm = &snd_soc_pm_ops, |
| 231 | 230 | }, |
| 232 | 231 | .probe = hx4700_audio_probe, |
| @@ -90,7 +90,6 @@ static int imote2_remove(struct platform_device *pdev) · 89 unmodified lines | ||
| 90 | 90 | static struct platform_driver imote2_driver = { |
| 91 | 91 | .driver = { |
| 92 | 92 | .name = "imote2-audio", |
| 93 | − .owner = THIS_MODULE, | |
| 94 | 93 | .pm = &snd_soc_pm_ops, |
| 95 | 94 | }, |
| 96 | 95 | .probe = imote2_probe, |
| @@ -202,7 +202,6 @@ static struct platform_driver mioa701_wm9713_driver = { · 201 unmodified lines | ||
| 202 | 202 | .remove = mioa701_wm9713_remove, |
| 203 | 203 | .driver = { |
| 204 | 204 | .name = "mioa701-wm9713", |
| 205 | − .owner = THIS_MODULE, | |
| 206 | 205 | .pm = &snd_soc_pm_ops, |
| 207 | 206 | }, |
| 208 | 207 | }; |
| @@ -244,7 +244,6 @@ static int mmp_pcm_remove(struct platform_device *pdev) · 243 unmodified lines | ||
| 244 | 244 | static struct platform_driver mmp_pcm_driver = { |
| 245 | 245 | .driver = { |
| 246 | 246 | .name = "mmp-pcm-audio", |
| 247 | − .owner = THIS_MODULE, | |
| 248 | 247 | }, |
| 249 | 248 | |
| 250 | 249 | .probe = mmp_pcm_probe, |
| @@ -472,7 +472,6 @@ static int asoc_mmp_sspa_remove(struct platform_device *pdev) · 471 unmodified lines | ||
| 472 | 472 | static struct platform_driver asoc_mmp_sspa_driver = { |
| 473 | 473 | .driver = { |
| 474 | 474 | .name = "mmp-sspa-dai", |
| 475 | − .owner = THIS_MODULE, | |
| 476 | 475 | }, |
| 477 | 476 | .probe = asoc_mmp_sspa_probe, |
| 478 | 477 | .remove = asoc_mmp_sspa_remove, |
| @@ -172,7 +172,6 @@ static struct platform_driver palm27x_wm9712_driver = { · 171 unmodified lines | ||
| 172 | 172 | .remove = palm27x_asoc_remove, |
| 173 | 173 | .driver = { |
| 174 | 174 | .name = "palm27x-asoc", |
| 175 | − .owner = THIS_MODULE, | |
| 176 | 175 | .pm = &snd_soc_pm_ops, |
| 177 | 176 | }, |
| 178 | 177 | }; |
| @@ -296,7 +296,6 @@ static int poodle_remove(struct platform_device *pdev) · 295 unmodified lines | ||
| 296 | 296 | static struct platform_driver poodle_driver = { |
| 297 | 297 | .driver = { |
| 298 | 298 | .name = "poodle-audio", |
| 299 | − .owner = THIS_MODULE, | |
| 300 | 299 | .pm = &snd_soc_pm_ops, |
| 301 | 300 | }, |
| 302 | 301 | .probe = poodle_probe, |
| @@ -826,7 +826,6 @@ static int asoc_ssp_remove(struct platform_device *pdev) · 825 unmodified lines | ||
| 826 | 826 | static struct platform_driver asoc_ssp_driver = { |
| 827 | 827 | .driver = { |
| 828 | 828 | .name = "pxa-ssp-dai", |
| 829 | − .owner = THIS_MODULE, | |
| 830 | 829 | .of_match_table = of_match_ptr(pxa_ssp_of_ids), |
| 831 | 830 | }, |
| 832 | 831 | |
| @@ -261,7 +261,6 @@ static struct platform_driver pxa2xx_ac97_driver = { · 260 unmodified lines | ||
| 261 | 261 | .remove = pxa2xx_ac97_dev_remove, |
| 262 | 262 | .driver = { |
| 263 | 263 | .name = "pxa2xx-ac97", |
| 264 | − .owner = THIS_MODULE, | |
| 265 | 264 | #ifdef CONFIG_PM_SLEEP |
| 266 | 265 | .pm = &pxa2xx_ac97_pm_ops, |
| 267 | 266 | #endif |
| @@ -383,7 +383,6 @@ static struct platform_driver pxa2xx_i2s_driver = { · 382 unmodified lines | ||
| 383 | 383 | |
| 384 | 384 | .driver = { |
| 385 | 385 | .name = "pxa2xx-i2s", |
| 386 | − .owner = THIS_MODULE, | |
| 387 | 386 | }, |
| 388 | 387 | }; |
| 389 | 388 | |
| @@ -143,7 +143,6 @@ static const struct of_device_id snd_soc_pxa_audio_match[] = { · 142 unmodified lines | ||
| 143 | 143 | static struct platform_driver pxa_pcm_driver = { |
| 144 | 144 | .driver = { |
| 145 | 145 | .name = "pxa-pcm-audio", |
| 146 | − .owner = THIS_MODULE, | |
| 147 | 146 | .of_match_table = of_match_ptr(snd_soc_pxa_audio_match), |
| 148 | 147 | }, |
| 149 | 148 | |
| @@ -265,7 +265,6 @@ static int tosa_remove(struct platform_device *pdev) · 264 unmodified lines | ||
| 265 | 265 | static struct platform_driver tosa_driver = { |
| 266 | 266 | .driver = { |
| 267 | 267 | .name = "tosa-audio", |
| 268 | − .owner = THIS_MODULE, | |
| 269 | 268 | .pm = &snd_soc_pm_ops, |
| 270 | 269 | }, |
| 271 | 270 | .probe = tosa_probe, |
| @@ -155,7 +155,6 @@ static int ttc_dkb_remove(struct platform_device *pdev) · 154 unmodified lines | ||
| 155 | 155 | static struct platform_driver ttc_dkb_driver = { |
| 156 | 156 | .driver = { |
| 157 | 157 | .name = "ttc-dkb-audio", |
| 158 | − .owner = THIS_MODULE, | |
| 159 | 158 | .pm = &snd_soc_pm_ops, |
| 160 | 159 | }, |
| 161 | 160 | .probe = ttc_dkb_probe, |
| @@ -528,7 +528,6 @@ static struct platform_driver rockchip_i2s_driver = { · 527 unmodified lines | ||
| 528 | 528 | .remove = rockchip_i2s_remove, |
| 529 | 529 | .driver = { |
| 530 | 530 | .name = DRV_NAME, |
| 531 | − .owner = THIS_MODULE, | |
| 532 | 531 | .of_match_table = of_match_ptr(rockchip_i2s_match), |
| 533 | 532 | .pm = &rockchip_i2s_pm_ops, |
| 534 | 533 | }, |
| @@ -442,7 +442,6 @@ static struct platform_driver s3c_ac97_driver = { · 441 unmodified lines | ||
| 442 | 442 | .remove = s3c_ac97_remove, |
| 443 | 443 | .driver = { |
| 444 | 444 | .name = "samsung-ac97", |
| 445 | − .owner = THIS_MODULE, | |
| 446 | 445 | }, |
| 447 | 446 | }; |
| 448 | 447 | |
| @@ -445,7 +445,6 @@ static int bells_probe(struct platform_device *pdev) · 444 unmodified lines | ||
| 445 | 445 | static struct platform_driver bells_driver = { |
| 446 | 446 | .driver = { |
| 447 | 447 | .name = "bells", |
| 448 | − .owner = THIS_MODULE, | |
| 449 | 448 | .pm = &snd_soc_pm_ops, |
| 450 | 449 | }, |
| 451 | 450 | .probe = bells_probe, |
| @@ -1470,7 +1470,6 @@ static struct platform_driver samsung_i2s_driver = { · 1469 unmodified lines | ||
| 1470 | 1470 | .id_table = samsung_i2s_driver_ids, |
| 1471 | 1471 | .driver = { |
| 1472 | 1472 | .name = "samsung-i2s", |
| 1473 | − .owner = THIS_MODULE, | |
| 1474 | 1473 | .of_match_table = of_match_ptr(exynos_i2s_match), |
| 1475 | 1474 | .pm = &samsung_i2s_pm, |
| 1476 | 1475 | }, |
| @@ -418,7 +418,6 @@ static int asoc_idma_platform_probe(struct platform_device *pdev) · 417 unmodified lines | ||
| 418 | 418 | static struct platform_driver asoc_idma_driver = { |
| 419 | 419 | .driver = { |
| 420 | 420 | .name = "samsung-idma", |
| 421 | − .owner = THIS_MODULE, | |
| 422 | 421 | }, |
| 423 | 422 | |
| 424 | 423 | .probe = asoc_idma_platform_probe, |
| @@ -315,7 +315,6 @@ static int littlemill_probe(struct platform_device *pdev) · 314 unmodified lines | ||
| 315 | 315 | static struct platform_driver littlemill_driver = { |
| 316 | 316 | .driver = { |
| 317 | 317 | .name = "littlemill", |
| 318 | − .owner = THIS_MODULE, | |
| 319 | 318 | .pm = &snd_soc_pm_ops, |
| 320 | 319 | }, |
| 321 | 320 | .probe = littlemill_probe, |
| @@ -198,7 +198,6 @@ static int lowland_probe(struct platform_device *pdev) · 197 unmodified lines | ||
| 198 | 198 | static struct platform_driver lowland_driver = { |
| 199 | 199 | .driver = { |
| 200 | 200 | .name = "lowland", |
| 201 | − .owner = THIS_MODULE, | |
| 202 | 201 | .pm = &snd_soc_pm_ops, |
| 203 | 202 | }, |
| 204 | 203 | .probe = lowland_probe, |
| @@ -162,7 +162,6 @@ static int odroidx2_audio_remove(struct platform_device *pdev) · 161 unmodified lines | ||
| 162 | 162 | static struct platform_driver odroidx2_audio_driver = { |
| 163 | 163 | .driver = { |
| 164 | 164 | .name = "odroidx2-audio", |
| 165 | − .owner = THIS_MODULE, | |
| 166 | 165 | .of_match_table = odroidx2_audio_of_match, |
| 167 | 166 | .pm = &snd_soc_pm_ops, |
| 168 | 167 | }, |
| @@ -626,7 +626,6 @@ static struct platform_driver s3c_pcm_driver = { · 625 unmodified lines | ||
| 626 | 626 | .remove = s3c_pcm_dev_remove, |
| 627 | 627 | .driver = { |
| 628 | 628 | .name = "samsung-pcm", |
| 629 | − .owner = THIS_MODULE, | |
| 630 | 629 | }, |
| 631 | 630 | }; |
| 632 | 631 | |
| @@ -180,7 +180,6 @@ static struct platform_driver s3c2412_iis_driver = { · 179 unmodified lines | ||
| 180 | 180 | .probe = s3c2412_iis_dev_probe, |
| 181 | 181 | .driver = { |
| 182 | 182 | .name = "s3c2412-iis", |
| 183 | − .owner = THIS_MODULE, | |
| 184 | 183 | }, |
| 185 | 184 | }; |
| 186 | 185 | |
| @@ -485,7 +485,6 @@ static struct platform_driver s3c24xx_iis_driver = { · 484 unmodified lines | ||
| 485 | 485 | .probe = s3c24xx_iis_dev_probe, |
| 486 | 486 | .driver = { |
| 487 | 487 | .name = "s3c24xx-iis", |
| 488 | − .owner = THIS_MODULE, | |
| 489 | 488 | }, |
| 490 | 489 | }; |
| 491 | 490 | |
| @@ -99,7 +99,6 @@ static int simtec_audio_hermes_probe(struct platform_device *pd) · 98 unmodified lines | ||
| 99 | 99 | |
| 100 | 100 | static struct platform_driver simtec_audio_hermes_platdrv = { |
| 101 | 101 | .driver = { |
| 102 | − .owner = THIS_MODULE, | |
| 103 | 102 | .name = "s3c24xx-simtec-hermes-snd", |
| 104 | 103 | .pm = simtec_audio_pm, |
| 105 | 104 | }, |
| @@ -87,7 +87,6 @@ static int simtec_audio_tlv320aic23_probe(struct platform_device *pd) · 86 unmodified lines | ||
| 87 | 87 | |
| 88 | 88 | static struct platform_driver simtec_audio_tlv320aic23_driver = { |
| 89 | 89 | .driver = { |
| 90 | − .owner = THIS_MODULE, | |
| 91 | 90 | .name = "s3c24xx-simtec-tlv320aic23", |
| 92 | 91 | .pm = simtec_audio_pm, |
| 93 | 92 | }, |
| @@ -340,7 +340,6 @@ static struct platform_driver s3c24xx_uda134x_driver = { · 339 unmodified lines | ||
| 340 | 340 | .remove = s3c24xx_uda134x_remove, |
| 341 | 341 | .driver = { |
| 342 | 342 | .name = "s3c24xx_uda134x", |
| 343 | − .owner = THIS_MODULE, | |
| 344 | 343 | }, |
| 345 | 344 | }; |
| 346 | 345 | |
| @@ -173,7 +173,6 @@ static int snd_smdk_probe(struct platform_device *pdev) · 172 unmodified lines | ||
| 173 | 173 | |
| 174 | 174 | static struct platform_driver snd_smdk_driver = { |
| 175 | 175 | .driver = { |
| 176 | − .owner = THIS_MODULE, | |
| 177 | 176 | .name = "samsung-smdk-pcm", |
| 178 | 177 | }, |
| 179 | 178 | .probe = snd_smdk_probe, |
| @@ -191,7 +191,6 @@ static int smdk_audio_probe(struct platform_device *pdev) · 190 unmodified lines | ||
| 191 | 191 | static struct platform_driver smdk_audio_driver = { |
| 192 | 192 | .driver = { |
| 193 | 193 | .name = "smdk-audio-wm8994", |
| 194 | − .owner = THIS_MODULE, | |
| 195 | 194 | .of_match_table = of_match_ptr(samsung_wm8994_of_match), |
| 196 | 195 | .pm = &snd_soc_pm_ops, |
| 197 | 196 | }, |
| @@ -143,7 +143,6 @@ static int snd_smdk_probe(struct platform_device *pdev) · 142 unmodified lines | ||
| 143 | 143 | |
| 144 | 144 | static struct platform_driver snd_smdk_driver = { |
| 145 | 145 | .driver = { |
| 146 | − .owner = THIS_MODULE, | |
| 147 | 146 | .name = "samsung-smdk-pcm", |
| 148 | 147 | }, |
| 149 | 148 | .probe = snd_smdk_probe, |
| @@ -115,7 +115,6 @@ MODULE_DEVICE_TABLE(of, snow_of_match); · 114 unmodified lines | ||
| 115 | 115 | static struct platform_driver snow_driver = { |
| 116 | 116 | .driver = { |
| 117 | 117 | .name = "snow-audio", |
| 118 | − .owner = THIS_MODULE, | |
| 119 | 118 | .pm = &snd_soc_pm_ops, |
| 120 | 119 | .of_match_table = snow_of_match, |
| 121 | 120 | }, |
| @@ -477,7 +477,6 @@ static struct platform_driver samsung_spdif_driver = { · 476 unmodified lines | ||
| 477 | 477 | .remove = spdif_remove, |
| 478 | 478 | .driver = { |
| 479 | 479 | .name = "samsung-spdif", |
| 480 | − .owner = THIS_MODULE, | |
| 481 | 480 | }, |
| 482 | 481 | }; |
| 483 | 482 | |
| @@ -340,7 +340,6 @@ static int speyside_probe(struct platform_device *pdev) · 339 unmodified lines | ||
| 340 | 340 | static struct platform_driver speyside_driver = { |
| 341 | 341 | .driver = { |
| 342 | 342 | .name = "speyside", |
| 343 | − .owner = THIS_MODULE, | |
| 344 | 343 | .pm = &snd_soc_pm_ops, |
| 345 | 344 | }, |
| 346 | 345 | .probe = speyside_probe, |
| @@ -234,7 +234,6 @@ static int tobermory_probe(struct platform_device *pdev) · 233 unmodified lines | ||
| 234 | 234 | static struct platform_driver tobermory_driver = { |
| 235 | 235 | .driver = { |
| 236 | 236 | .name = "tobermory", |
| 237 | − .owner = THIS_MODULE, | |
| 238 | 237 | .pm = &snd_soc_pm_ops, |
| 239 | 238 | }, |
| 240 | 239 | .probe = tobermory_probe, |
| @@ -345,7 +345,6 @@ static int sh7760_soc_platform_remove(struct platform_device *pdev) · 344 unmodified lines | ||
| 345 | 345 | static struct platform_driver sh7760_pcm_driver = { |
| 346 | 346 | .driver = { |
| 347 | 347 | .name = "sh7760-pcm-audio", |
| 348 | − .owner = THIS_MODULE, | |
| 349 | 348 | }, |
| 350 | 349 | |
| 351 | 350 | .probe = sh7760_soc_platform_probe, |
| @@ -333,7 +333,6 @@ static int hac_soc_platform_remove(struct platform_device *pdev) · 332 unmodified lines | ||
| 333 | 333 | static struct platform_driver hac_pcm_driver = { |
| 334 | 334 | .driver = { |
| 335 | 335 | .name = "hac-pcm-audio", |
| 336 | − .owner = THIS_MODULE, | |
| 337 | 336 | }, |
| 338 | 337 | |
| 339 | 338 | .probe = hac_soc_platform_probe, |
| @@ -845,7 +845,6 @@ static int siu_remove(struct platform_device *pdev) · 844 unmodified lines | ||
| 845 | 845 | |
| 846 | 846 | static struct platform_driver siu_driver = { |
| 847 | 847 | .driver = { |
| 848 | − .owner = THIS_MODULE, | |
| 849 | 848 | .name = "siu-pcm-audio", |
| 850 | 849 | }, |
| 851 | 850 | .probe = siu_probe, |
| @@ -398,7 +398,6 @@ static int sh4_soc_dai_remove(struct platform_device *pdev) · 397 unmodified lines | ||
| 398 | 398 | static struct platform_driver sh4_ssi_driver = { |
| 399 | 399 | .driver = { |
| 400 | 400 | .name = "sh4-ssi-dai", |
| 401 | − .owner = THIS_MODULE, | |
| 402 | 401 | }, |
| 403 | 402 | |
| 404 | 403 | .probe = sh4_soc_dai_probe, |
| @@ -74,7 +74,6 @@ MODULE_DEVICE_TABLE(of, sirf_audio_port_of_match); · 73 unmodified lines | ||
| 74 | 74 | static struct platform_driver sirf_audio_port_driver = { |
| 75 | 75 | .driver = { |
| 76 | 76 | .name = "sirf-audio-port", |
| 77 | − .owner = THIS_MODULE, | |
| 78 | 77 | .of_match_table = sirf_audio_port_of_match, |
| 79 | 78 | }, |
| 80 | 79 | .probe = sirf_audio_port_probe, |
| @@ -143,7 +143,6 @@ MODULE_DEVICE_TABLE(of, sirf_audio_of_match); · 142 unmodified lines | ||
| 143 | 143 | static struct platform_driver sirf_audio_driver = { |
| 144 | 144 | .driver = { |
| 145 | 145 | .name = "sirf-audio-card", |
| 146 | − .owner = THIS_MODULE, | |
| 147 | 146 | .pm = &snd_soc_pm_ops, |
| 148 | 147 | .of_match_table = sirf_audio_of_match, |
| 149 | 148 | }, |
| @@ -422,7 +422,6 @@ static const struct dev_pm_ops sirf_usp_pcm_pm_ops = { · 421 unmodified lines | ||
| 422 | 422 | static struct platform_driver sirf_usp_pcm_driver = { |
| 423 | 423 | .driver = { |
| 424 | 424 | .name = "sirf-usp-pcm", |
| 425 | − .owner = THIS_MODULE, | |
| 426 | 425 | .of_match_table = sirf_usp_pcm_of_match, |
| 427 | 426 | .pm = &sirf_usp_pcm_pm_ops, |
| 428 | 427 | }, |
| @@ -1772,7 +1772,6 @@ EXPORT_SYMBOL_GPL(snd_soc_pm_ops); · 1771 unmodified lines | ||
| 1772 | 1772 | static struct platform_driver soc_driver = { |
| 1773 | 1773 | .driver = { |
| 1774 | 1774 | .name = "soc-audio", |
| 1775 | − .owner = THIS_MODULE, | |
| 1776 | 1775 | .pm = &snd_soc_pm_ops, |
| 1777 | 1776 | }, |
| 1778 | 1777 | .probe = soc_probe, |
| @@ -154,7 +154,6 @@ static int snd_soc_dummy_remove(struct platform_device *pdev) · 153 unmodified lines | ||
| 154 | 154 | static struct platform_driver soc_dummy_driver = { |
| 155 | 155 | .driver = { |
| 156 | 156 | .name = "snd-soc-dummy", |
| 157 | − .owner = THIS_MODULE, | |
| 158 | 157 | }, |
| 159 | 158 | .probe = snd_soc_dummy_probe, |
| 160 | 159 | .remove = snd_soc_dummy_remove, |
| @@ -274,7 +274,6 @@ static struct platform_driver spdif_in_driver = { · 273 unmodified lines | ||
| 274 | 274 | .probe = spdif_in_probe, |
| 275 | 275 | .driver = { |
| 276 | 276 | .name = "spdif-in", |
| 277 | − .owner = THIS_MODULE, | |
| 278 | 277 | }, |
| 279 | 278 | }; |
| 280 | 279 | |
| @@ -354,7 +354,6 @@ static struct platform_driver spdif_out_driver = { · 353 unmodified lines | ||
| 354 | 354 | .probe = spdif_out_probe, |
| 355 | 355 | .driver = { |
| 356 | 356 | .name = "spdif-out", |
| 357 | − .owner = THIS_MODULE, | |
| 358 | 357 | .pm = SPDIF_OUT_DEV_PM_OPS, |
| 359 | 358 | }, |
| 360 | 359 | }; |
| @@ -438,7 +438,6 @@ static const struct of_device_id tegra20_ac97_of_match[] = { · 437 unmodified lines | ||
| 438 | 438 | static struct platform_driver tegra20_ac97_driver = { |
| 439 | 439 | .driver = { |
| 440 | 440 | .name = DRV_NAME, |
| 441 | − .owner = THIS_MODULE, | |
| 442 | 441 | .of_match_table = tegra20_ac97_of_match, |
| 443 | 442 | }, |
| 444 | 443 | .probe = tegra20_ac97_platform_probe, |
| @@ -233,7 +233,6 @@ static struct platform_driver tegra20_das_driver = { · 232 unmodified lines | ||
| 233 | 233 | .remove = tegra20_das_remove, |
| 234 | 234 | .driver = { |
| 235 | 235 | .name = DRV_NAME, |
| 236 | − .owner = THIS_MODULE, | |
| 237 | 236 | .of_match_table = tegra20_das_of_match, |
| 238 | 237 | }, |
| 239 | 238 | }; |
| @@ -464,7 +464,6 @@ static const struct dev_pm_ops tegra20_i2s_pm_ops = { · 463 unmodified lines | ||
| 464 | 464 | static struct platform_driver tegra20_i2s_driver = { |
| 465 | 465 | .driver = { |
| 466 | 466 | .name = DRV_NAME, |
| 467 | − .owner = THIS_MODULE, | |
| 468 | 467 | .of_match_table = tegra20_i2s_of_match, |
| 469 | 468 | .pm = &tegra20_i2s_pm_ops, |
| 470 | 469 | }, |
| @@ -387,7 +387,6 @@ static const struct dev_pm_ops tegra20_spdif_pm_ops = { · 386 unmodified lines | ||
| 387 | 387 | static struct platform_driver tegra20_spdif_driver = { |
| 388 | 388 | .driver = { |
| 389 | 389 | .name = DRV_NAME, |
| 390 | − .owner = THIS_MODULE, | |
| 391 | 390 | .pm = &tegra20_spdif_pm_ops, |
| 392 | 391 | }, |
| 393 | 392 | .probe = tegra20_spdif_platform_probe, |
| @@ -723,7 +723,6 @@ static struct platform_driver tegra30_ahub_driver = { · 722 unmodified lines | ||
| 723 | 723 | .remove = tegra30_ahub_remove, |
| 724 | 724 | .driver = { |
| 725 | 725 | .name = DRV_NAME, |
| 726 | − .owner = THIS_MODULE, | |
| 727 | 726 | .of_match_table = tegra30_ahub_of_match, |
| 728 | 727 | .pm = &tegra30_ahub_pm_ops, |
| 729 | 728 | }, |
| @@ -585,7 +585,6 @@ static const struct dev_pm_ops tegra30_i2s_pm_ops = { · 584 unmodified lines | ||
| 585 | 585 | static struct platform_driver tegra30_i2s_driver = { |
| 586 | 586 | .driver = { |
| 587 | 587 | .name = DRV_NAME, |
| 588 | − .owner = THIS_MODULE, | |
| 589 | 588 | .of_match_table = tegra30_i2s_of_match, |
| 590 | 589 | .pm = &tegra30_i2s_pm_ops, |
| 591 | 590 | }, |
| @@ -250,7 +250,6 @@ static const struct of_device_id tegra_alc5632_of_match[] = { · 249 unmodified lines | ||
| 250 | 250 | static struct platform_driver tegra_alc5632_driver = { |
| 251 | 251 | .driver = { |
| 252 | 252 | .name = DRV_NAME, |
| 253 | − .owner = THIS_MODULE, | |
| 254 | 253 | .pm = &snd_soc_pm_ops, |
| 255 | 254 | .of_match_table = tegra_alc5632_of_match, |
| 256 | 255 | }, |
| @@ -308,7 +308,6 @@ static const struct of_device_id tegra_max98090_of_match[] = { · 307 unmodified lines | ||
| 308 | 308 | static struct platform_driver tegra_max98090_driver = { |
| 309 | 309 | .driver = { |
| 310 | 310 | .name = DRV_NAME, |
| 311 | − .owner = THIS_MODULE, | |
| 312 | 311 | .pm = &snd_soc_pm_ops, |
| 313 | 312 | .of_match_table = tegra_max98090_of_match, |
| 314 | 313 | }, |
| @@ -255,7 +255,6 @@ static const struct of_device_id tegra_rt5640_of_match[] = { · 254 unmodified lines | ||
| 255 | 255 | static struct platform_driver tegra_rt5640_driver = { |
| 256 | 256 | .driver = { |
| 257 | 257 | .name = DRV_NAME, |
| 258 | − .owner = THIS_MODULE, | |
| 259 | 258 | .pm = &snd_soc_pm_ops, |
| 260 | 259 | .of_match_table = tegra_rt5640_of_match, |
| 261 | 260 | }, |
| @@ -204,7 +204,6 @@ static const struct of_device_id tegra_wm8753_of_match[] = { · 203 unmodified lines | ||
| 204 | 204 | static struct platform_driver tegra_wm8753_driver = { |
| 205 | 205 | .driver = { |
| 206 | 206 | .name = DRV_NAME, |
| 207 | − .owner = THIS_MODULE, | |
| 208 | 207 | .pm = &snd_soc_pm_ops, |
| 209 | 208 | .of_match_table = tegra_wm8753_of_match, |
| 210 | 209 | }, |
| @@ -386,7 +386,6 @@ static const struct of_device_id tegra_wm8903_of_match[] = { · 385 unmodified lines | ||
| 386 | 386 | static struct platform_driver tegra_wm8903_driver = { |
| 387 | 387 | .driver = { |
| 388 | 388 | .name = DRV_NAME, |
| 389 | − .owner = THIS_MODULE, | |
| 390 | 389 | .pm = &snd_soc_pm_ops, |
| 391 | 390 | .of_match_table = tegra_wm8903_of_match, |
| 392 | 391 | }, |
| @@ -167,7 +167,6 @@ static const struct of_device_id tegra_wm9712_of_match[] = { · 166 unmodified lines | ||
| 167 | 167 | static struct platform_driver tegra_wm9712_driver = { |
| 168 | 168 | .driver = { |
| 169 | 169 | .name = DRV_NAME, |
| 170 | − .owner = THIS_MODULE, | |
| 171 | 170 | .pm = &snd_soc_pm_ops, |
| 172 | 171 | .of_match_table = tegra_wm9712_of_match, |
| 173 | 172 | }, |
| @@ -193,7 +193,6 @@ MODULE_DEVICE_TABLE(of, trimslice_of_match); · 192 unmodified lines | ||
| 193 | 193 | static struct platform_driver tegra_snd_trimslice_driver = { |
| 194 | 194 | .driver = { |
| 195 | 195 | .name = DRV_NAME, |
| 196 | − .owner = THIS_MODULE, | |
| 197 | 196 | .of_match_table = trimslice_of_match, |
| 198 | 197 | }, |
| 199 | 198 | .probe = tegra_snd_trimslice_probe, |
| @@ -224,7 +224,6 @@ static struct platform_driver txx9aclc_ac97_driver = { · 223 unmodified lines | ||
| 224 | 224 | .remove = txx9aclc_ac97_dev_remove, |
| 225 | 225 | .driver = { |
| 226 | 226 | .name = "txx9aclc-ac97", |
| 227 | − .owner = THIS_MODULE, | |
| 228 | 227 | }, |
| 229 | 228 | }; |
| 230 | 229 | |
| @@ -66,7 +66,6 @@ static struct platform_driver txx9aclc_generic_driver = { · 65 unmodified lines | ||
| 66 | 66 | .remove = __exit_p(txx9aclc_generic_remove), |
| 67 | 67 | .driver = { |
| 68 | 68 | .name = "txx9aclc-generic", |
| 69 | − .owner = THIS_MODULE, | |
| 70 | 69 | }, |
| 71 | 70 | }; |
| 72 | 71 | |
| @@ -429,7 +429,6 @@ static int txx9aclc_soc_platform_remove(struct platform_device *pdev) · 428 unmodified lines | ||
| 429 | 429 | static struct platform_driver txx9aclc_pcm_driver = { |
| 430 | 430 | .driver = { |
| 431 | 431 | .name = "txx9aclc-pcm-audio", |
| 432 | − .owner = THIS_MODULE, | |
| 433 | 432 | }, |
| 434 | 433 | |
| 435 | 434 | .probe = txx9aclc_soc_platform_probe, |
| @@ -155,7 +155,6 @@ static const struct of_device_id snd_soc_mop500_match[] = { · 154 unmodified lines | ||
| 155 | 155 | |
| 156 | 156 | static struct platform_driver snd_soc_mop500_driver = { |
| 157 | 157 | .driver = { |
| 158 | − .owner = THIS_MODULE, | |
| 159 | 158 | .name = "snd-soc-mop500", |
| 160 | 159 | .of_match_table = snd_soc_mop500_match, |
| 161 | 160 | }, |
| @@ -856,7 +856,6 @@ static const struct of_device_id ux500_msp_i2s_match[] = { · 855 unmodified lines | ||
| 856 | 856 | static struct platform_driver msp_i2s_driver = { |
| 857 | 857 | .driver = { |
| 858 | 858 | .name = "ux500-msp-i2s", |
| 859 | − .owner = THIS_MODULE, | |
| 860 | 859 | .of_match_table = ux500_msp_i2s_match, |
| 861 | 860 | }, |
| 862 | 861 | .probe = ux500_msp_drv_probe, |
| @@ -1067,7 +1067,6 @@ static const struct of_device_id amd7930_match[] = { · 1066 unmodified lines | ||
| 1067 | 1067 | static struct platform_driver amd7930_sbus_driver = { |
| 1068 | 1068 | .driver = { |
| 1069 | 1069 | .name = "audio", |
| 1070 | − .owner = THIS_MODULE, | |
| 1071 | 1070 | .of_match_table = amd7930_match, |
| 1072 | 1071 | }, |
| 1073 | 1072 | .probe = amd7930_sbus_probe, |
| @@ -2111,7 +2111,6 @@ MODULE_DEVICE_TABLE(of, cs4231_match); · 2110 unmodified lines | ||
| 2111 | 2111 | static struct platform_driver cs4231_driver = { |
| 2112 | 2112 | .driver = { |
| 2113 | 2113 | .name = "audio", |
| 2114 | − .owner = THIS_MODULE, | |
| 2115 | 2114 | .of_match_table = cs4231_match, |
| 2116 | 2115 | }, |
| 2117 | 2116 | .probe = cs4231_probe, |
| @@ -2686,7 +2686,6 @@ MODULE_DEVICE_TABLE(of, dbri_match); · 2685 unmodified lines | ||
| 2686 | 2686 | static struct platform_driver dbri_sbus_driver = { |
| 2687 | 2687 | .driver = { |
| 2688 | 2688 | .name = "dbri", |
| 2689 | − .owner = THIS_MODULE, | |
| 2690 | 2689 | .of_match_table = dbri_match, |
| 2691 | 2690 | }, |
| 2692 | 2691 | .probe = dbri_probe, |