setup-common.c (292dd876ee765c478b27c93cc51e93a558ed58bf) | setup-common.c (e5c6c8e457d16c7cbc12f849ad18d4d508950de2) |
---|---|
1/* 2 * Common boot and setup code for both 32-bit and 64-bit. 3 * Extracted from arch/powerpc/kernel/setup_64.c. 4 * 5 * Copyright (C) 2001 PPC64 Team, IBM Corp 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License --- 4 unchanged lines hidden (view full) --- 13#include <linux/module.h> 14#include <linux/string.h> 15#include <linux/sched.h> 16#include <linux/init.h> 17#include <linux/kernel.h> 18#include <linux/reboot.h> 19#include <linux/delay.h> 20#include <linux/initrd.h> | 1/* 2 * Common boot and setup code for both 32-bit and 64-bit. 3 * Extracted from arch/powerpc/kernel/setup_64.c. 4 * 5 * Copyright (C) 2001 PPC64 Team, IBM Corp 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License --- 4 unchanged lines hidden (view full) --- 13#include <linux/module.h> 14#include <linux/string.h> 15#include <linux/sched.h> 16#include <linux/init.h> 17#include <linux/kernel.h> 18#include <linux/reboot.h> 19#include <linux/delay.h> 20#include <linux/initrd.h> |
21#include <linux/platform_device.h> |
|
21#include <linux/ide.h> 22#include <linux/seq_file.h> 23#include <linux/ioport.h> 24#include <linux/console.h> 25#include <linux/utsname.h> 26#include <linux/tty.h> 27#include <linux/root_dev.h> 28#include <linux/notifier.h> --- 435 unchanged lines hidden (view full) --- 464 } 465 xmon_init(1); 466 debugger(NULL); 467 468 return 0; 469} 470early_param("xmon", early_xmon); 471#endif | 22#include <linux/ide.h> 23#include <linux/seq_file.h> 24#include <linux/ioport.h> 25#include <linux/console.h> 26#include <linux/utsname.h> 27#include <linux/tty.h> 28#include <linux/root_dev.h> 29#include <linux/notifier.h> --- 435 unchanged lines hidden (view full) --- 465 } 466 xmon_init(1); 467 debugger(NULL); 468 469 return 0; 470} 471early_param("xmon", early_xmon); 472#endif |
473 474static __init int add_pcspkr(void) 475{ 476 struct device_node *np; 477 struct platform_device *pd; 478 int ret; 479 480 np = of_find_compatible_node(NULL, NULL, "pnpPNP,100"); 481 of_node_put(np); 482 if (!np) 483 return -ENODEV; 484 485 pd = platform_device_alloc("pcspkr", -1); 486 if (!pd) 487 return -ENOMEM; 488 489 ret = platform_device_add(pd); 490 if (ret) 491 platform_device_put(pd); 492 493 return ret; 494} 495device_initcall(add_pcspkr); |
|