mirror of
https://github.com/torvalds/linux.git
synced 2024-11-30 08:01:59 +00:00
0e9a2a228a
The DT of_device.h and of_platform.h date back to the separate of_platform_bus_type before it as merged into the regular platform bus. As part of that merge prepping Arm DT support 13 years ago, they "temporarily" include each other. They also include platform_device.h and of.h. As a result, there's a pretty much random mix of those include files used throughout the tree. In order to detangle these headers and replace the implicit includes with struct declarations, users need to explicitly include the correct includes. Signed-off-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20230714174023.4039938-1-robh@kernel.org Signed-off-by: Michal Simek <michal.simek@amd.com>
43 lines
778 B
C
43 lines
778 B
C
/*
|
|
* Copyright (C) 2009 Michal Simek <monstr@monstr.eu>
|
|
* Copyright (C) 2009 PetaLogix
|
|
*
|
|
* This file is subject to the terms and conditions of the GNU General Public
|
|
* License. See the file "COPYING" in the main directory of this archive
|
|
* for more details.
|
|
*/
|
|
|
|
#include <linux/init.h>
|
|
#include <linux/delay.h>
|
|
#include <linux/reboot.h>
|
|
|
|
void machine_shutdown(void)
|
|
{
|
|
pr_notice("Machine shutdown...\n");
|
|
while (1)
|
|
;
|
|
}
|
|
|
|
void machine_halt(void)
|
|
{
|
|
pr_notice("Machine halt...\n");
|
|
while (1)
|
|
;
|
|
}
|
|
|
|
void machine_power_off(void)
|
|
{
|
|
pr_notice("Machine power off...\n");
|
|
while (1)
|
|
;
|
|
}
|
|
|
|
void machine_restart(char *cmd)
|
|
{
|
|
do_kernel_restart(cmd);
|
|
/* Give the restart hook 1 s to take us down */
|
|
mdelay(1000);
|
|
pr_emerg("Reboot failed -- System halted\n");
|
|
while (1);
|
|
}
|