]> Git Repo - J-u-boot.git/commitdiff
video: sm501.c: add weak default functions
authorAnatolij Gustschin <[email protected]>
Wed, 26 May 2010 08:38:58 +0000 (10:38 +0200)
committerAnatolij Gustschin <[email protected]>
Mon, 14 Jun 2010 10:29:34 +0000 (12:29 +0200)
For boards using sm501/sm502 on PCI bus some driver
functions normaly defined in the board code are not
needed and empty. Provide weak default functions for
them and do not enforce board code to define empty
functions.

Signed-off-by: Anatolij Gustschin <[email protected]>
drivers/video/sm501.c

index f55bf3cb11e991f1c3b58bc33ebb95a71da7e648..6a1e0109b3832bd4c662fb95b1cfaa43b6cde97c 100644 (file)
@@ -95,6 +95,34 @@ static struct pci_device_id sm501_pci_tbl[] = {
 };
 #endif
 
+/*
+ * We do not enforce board code to provide empty/unused
+ * functions for this driver and define weak default
+ * functions here.
+ */
+unsigned int __board_video_init (void)
+{
+       return 0;
+}
+
+unsigned int board_video_init (void)
+                       __attribute__((weak, alias("__board_video_init")));
+
+unsigned int __board_video_get_fb (void)
+{
+       return 0;
+}
+
+unsigned int board_video_get_fb (void)
+                       __attribute__((weak, alias("__board_video_get_fb")));
+
+void __board_validate_screen (unsigned int base)
+{
+}
+
+void board_validate_screen (unsigned int base)
+                       __attribute__((weak, alias("__board_validate_screen")));
+
 /*-----------------------------------------------------------------------------
  * video_hw_init --
  *-----------------------------------------------------------------------------
This page took 0.03648 seconds and 4 git commands to generate.