]> xenbits.xensource.com Git - people/pauldu/xen.git/commitdiff
xen/arm: platform: Drop the quirks callback
authorJulien Grall <julien.grall@citrix.com>
Thu, 8 Oct 2015 18:23:54 +0000 (19:23 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 23 Oct 2015 13:28:26 +0000 (14:28 +0100)
All the quirks have been replaced by proper detection. Lets drop the
callback and hope that no one will need new quirks.

At the same time, remove the definition of platform_dom0_evtchn_ppi
which is not used any more.

Signed-off-by: Julien Grall <julien.grall@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
[ ijc -- typos ]

xen/arch/arm/platform.c
xen/include/asm-arm/platform.h

index 0af6d57bfe04e5319071b156060bd9eb98afcdd5..b0bfaa9ea0857e440e97f2ad3a18f738b3aa40eb 100644 (file)
@@ -127,16 +127,6 @@ void platform_poweroff(void)
         platform->poweroff();
 }
 
-bool_t platform_has_quirk(uint32_t quirk)
-{
-    uint32_t quirks = 0;
-
-    if ( platform && platform->quirks )
-        quirks = platform->quirks();
-
-    return !!(quirks & quirk);
-}
-
 bool_t platform_device_is_blacklisted(const struct dt_device_node *node)
 {
     const struct dt_device_match *blacklist = NULL;
index 5e462ac78cf317e3c98d301e0522c438d3df873f..f97315db84367869b36cb76ef3c3da02cf04ec89 100644 (file)
@@ -26,12 +26,6 @@ struct platform_desc {
     void (*reset)(void);
     /* Platform power-off */
     void (*poweroff)(void);
-    /*
-     * Platform quirks
-     * Defined has a function because a platform can support multiple
-     * board with different quirk on each
-     */
-    uint32_t (*quirks)(void);
     /*
      * Platform blacklist devices
      * List of devices which must not pass-through to a guest
@@ -48,9 +42,7 @@ int platform_cpu_up(int cpu);
 #endif
 void platform_reset(void);
 void platform_poweroff(void);
-bool_t platform_has_quirk(uint32_t quirk);
 bool_t platform_device_is_blacklisted(const struct dt_device_node *node);
-unsigned int platform_dom0_evtchn_ppi(void);
 
 #define PLATFORM_START(_name, _namestr)                         \
 static const struct platform_desc  __plat_desc_##_name __used   \