sparcspkr.c (19fdb9eefb21b72edbc365b838502780c392bad6) | sparcspkr.c (4018294b53d1dae026880e45f174c1cc63b5d435) |
---|---|
1/* 2 * Driver for PC-speaker like devices found on various Sparc systems. 3 * 4 * Copyright (c) 2002 Vojtech Pavlik 5 * Copyright (c) 2002, 2006, 2008 David S. Miller (davem@davemloft.net) 6 */ 7#include <linux/kernel.h> 8#include <linux/module.h> --- 245 unchanged lines hidden (view full) --- 254 { 255 .name = "beep", 256 .compatible = "SUNW,bbc-beep", 257 }, 258 {}, 259}; 260 261static struct of_platform_driver bbc_beep_driver = { | 1/* 2 * Driver for PC-speaker like devices found on various Sparc systems. 3 * 4 * Copyright (c) 2002 Vojtech Pavlik 5 * Copyright (c) 2002, 2006, 2008 David S. Miller (davem@davemloft.net) 6 */ 7#include <linux/kernel.h> 8#include <linux/module.h> --- 245 unchanged lines hidden (view full) --- 254 { 255 .name = "beep", 256 .compatible = "SUNW,bbc-beep", 257 }, 258 {}, 259}; 260 261static struct of_platform_driver bbc_beep_driver = { |
262 .name = "bbcbeep", 263 .match_table = bbc_beep_match, | 262 .driver = { 263 .name = "bbcbeep", 264 .owner = THIS_MODULE, 265 .of_match_table = bbc_beep_match, 266 }, |
264 .probe = bbc_beep_probe, 265 .remove = __devexit_p(bbc_remove), 266 .shutdown = sparcspkr_shutdown, 267}; 268 269static int __devinit grover_beep_probe(struct of_device *op, const struct of_device_id *match) 270{ 271 struct sparcspkr_state *state; --- 61 unchanged lines hidden (view full) --- 333 { 334 .name = "beep", 335 .compatible = "SUNW,smbus-beep", 336 }, 337 {}, 338}; 339 340static struct of_platform_driver grover_beep_driver = { | 267 .probe = bbc_beep_probe, 268 .remove = __devexit_p(bbc_remove), 269 .shutdown = sparcspkr_shutdown, 270}; 271 272static int __devinit grover_beep_probe(struct of_device *op, const struct of_device_id *match) 273{ 274 struct sparcspkr_state *state; --- 61 unchanged lines hidden (view full) --- 336 { 337 .name = "beep", 338 .compatible = "SUNW,smbus-beep", 339 }, 340 {}, 341}; 342 343static struct of_platform_driver grover_beep_driver = { |
341 .name = "groverbeep", 342 .match_table = grover_beep_match, | 344 .driver = { 345 .name = "groverbeep", 346 .owner = THIS_MODULE, 347 .of_match_table = grover_beep_match, 348 }, |
343 .probe = grover_beep_probe, 344 .remove = __devexit_p(grover_remove), 345 .shutdown = sparcspkr_shutdown, 346}; 347 348static int __init sparcspkr_init(void) 349{ 350 int err = of_register_driver(&bbc_beep_driver, --- 20 unchanged lines hidden --- | 349 .probe = grover_beep_probe, 350 .remove = __devexit_p(grover_remove), 351 .shutdown = sparcspkr_shutdown, 352}; 353 354static int __init sparcspkr_init(void) 355{ 356 int err = of_register_driver(&bbc_beep_driver, --- 20 unchanged lines hidden --- |